mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
greenhills: fix the file build path error
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user