greenhills: fix the file build path error
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
parent
e5f40db601
commit
3bb30231a9
@ -288,6 +288,7 @@ config ARCH_TOOLCHAIN_TASKING
|
||||
|
||||
config ARCH_TOOLCHAIN_GHS
|
||||
bool
|
||||
select ARCH_TOOLCHAIN_GNU
|
||||
default n
|
||||
|
||||
config ARCH_GNU_NO_WEAKFUNCTIONS
|
||||
|
@ -366,8 +366,10 @@ ZIGFLAGS = -target $(ZARCH)-freestanding-$(ZEABI) $(ZARCHCPUFLAGS)
|
||||
|
||||
ifeq ($(CONFIG_ARM_TOOLCHAIN_ARMCLANG),)
|
||||
ifeq ($(CONFIG_DEBUG_OPT_UNUSED_SECTIONS),y)
|
||||
LDFLAGS += --gc-sections
|
||||
ARCHOPTIMIZATION += -ffunction-sections -fdata-sections
|
||||
ifeq ($(CONFIG_ARCH_TOOLCHAIN_GHS),)
|
||||
LDFLAGS += --gc-sections
|
||||
ARCHOPTIMIZATION += -ffunction-sections -fdata-sections
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user