libc/newlib:Declaration of adding depth
Resolve the issue of inability to compile when opening newlib Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
This commit is contained in:
parent
101b147a24
commit
1c65fbf15a
|
@ -63,6 +63,8 @@ CSRCS += $(wildcard newlib/newlib/newlib/libm/complex/*.c)
|
||||||
|
|
||||||
VPATH += :newlib/newlib/newlib/libm/common
|
VPATH += :newlib/newlib/newlib/libm/common
|
||||||
VPATH += :newlib/newlib/newlib/libm/complex
|
VPATH += :newlib/newlib/newlib/libm/complex
|
||||||
|
DEPPATH += --dep-path newlib/newlib/newlib/libm/common
|
||||||
|
DEPPATH += --dep-path newlib/newlib/newlib/libm/complex
|
||||||
|
|
||||||
ifeq ($(CONFIG_ARCH_ARM),y)
|
ifeq ($(CONFIG_ARCH_ARM),y)
|
||||||
ARCH = arm
|
ARCH = arm
|
||||||
|
@ -84,10 +86,14 @@ endif
|
||||||
|
|
||||||
CSRCS += $(wildcard newlib/newlib/newlib/libm/machine/$(ARCH)/*.c)
|
CSRCS += $(wildcard newlib/newlib/newlib/libm/machine/$(ARCH)/*.c)
|
||||||
VPATH += :newlib/newlib/newlib/libm/machine/$(ARCH)
|
VPATH += :newlib/newlib/newlib/libm/machine/$(ARCH)
|
||||||
|
DEPPATH += --dep-path newlib/newlib/newlib/libm/machine/$(ARCH)
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_ARCH_X86_64),y)
|
ifeq ($(CONFIG_ARCH_X86_64),y)
|
||||||
CSRCS += $(wildcard newlib/newlib/newlib/libm/fenv/*.c)
|
CSRCS += $(wildcard newlib/newlib/newlib/libm/fenv/*.c)
|
||||||
VPATH += :newlib/newlib/newlib/libm/fenv
|
VPATH += :newlib/newlib/newlib/libm/fenv
|
||||||
|
DEPPATH += --dep-path newlib/newlib/newlib/libm/fenv
|
||||||
|
|
||||||
|
|
||||||
CFLAGS += ${INCDIR_PREFIX}newlib/newlib/newlib/libc/machine/shared_x86/sys
|
CFLAGS += ${INCDIR_PREFIX}newlib/newlib/newlib/libc/machine/shared_x86/sys
|
||||||
endif
|
endif
|
||||||
|
@ -98,10 +104,13 @@ endif
|
||||||
|
|
||||||
CSRCS += newlib/sincosl.c
|
CSRCS += newlib/sincosl.c
|
||||||
VPATH += :newlib
|
VPATH += :newlib
|
||||||
|
DEPPATH += --dep-path newlib
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_LIBM_NEWLIB_HW_FP),y)
|
ifeq ($(CONFIG_LIBM_NEWLIB_HW_FP),y)
|
||||||
CSRCS += $(wildcard newlib/newlib/newlib/libm/mathfp/*.c)
|
CSRCS += $(wildcard newlib/newlib/newlib/libm/mathfp/*.c)
|
||||||
VPATH += :newlib/newlib/newlib/libm/mathfp
|
VPATH += :newlib/newlib/newlib/libm/mathfp
|
||||||
|
DEPPATH += --dep-path newlib/newlib/newlib/libm/mathfp
|
||||||
CFLAGS += -Wno-dangling-else
|
CFLAGS += -Wno-dangling-else
|
||||||
CFLAGS += -Wno-endif-labels
|
CFLAGS += -Wno-endif-labels
|
||||||
CFLAGS += -Wno-implicit-function-declaration
|
CFLAGS += -Wno-implicit-function-declaration
|
||||||
|
@ -112,6 +121,7 @@ ifeq ($(CONFIG_LIBM_NEWLIB_HW_FP),y)
|
||||||
else
|
else
|
||||||
CSRCS += $(wildcard newlib/newlib/newlib/libm/math/*.c)
|
CSRCS += $(wildcard newlib/newlib/newlib/libm/math/*.c)
|
||||||
VPATH += :newlib/newlib/newlib/libm/math
|
VPATH += :newlib/newlib/newlib/libm/math
|
||||||
|
DEPPATH += --dep-path newlib/newlib/newlib/libm/math
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CSRCS := $(shell echo $(notdir $(CSRCS) | tr " " "\n" | sort | uniq))
|
CSRCS := $(shell echo $(notdir $(CSRCS) | tr " " "\n" | sort | uniq))
|
||||||
|
|
Loading…
Reference in New Issue