mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +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
|
config ARCH_TOOLCHAIN_GHS
|
||||||
bool
|
bool
|
||||||
|
select ARCH_TOOLCHAIN_GNU
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config ARCH_GNU_NO_WEAKFUNCTIONS
|
config ARCH_GNU_NO_WEAKFUNCTIONS
|
||||||
|
|||||||
@@ -366,8 +366,10 @@ ZIGFLAGS = -target $(ZARCH)-freestanding-$(ZEABI) $(ZARCHCPUFLAGS)
|
|||||||
|
|
||||||
ifeq ($(CONFIG_ARM_TOOLCHAIN_ARMCLANG),)
|
ifeq ($(CONFIG_ARM_TOOLCHAIN_ARMCLANG),)
|
||||||
ifeq ($(CONFIG_DEBUG_OPT_UNUSED_SECTIONS),y)
|
ifeq ($(CONFIG_DEBUG_OPT_UNUSED_SECTIONS),y)
|
||||||
LDFLAGS += --gc-sections
|
ifeq ($(CONFIG_ARCH_TOOLCHAIN_GHS),)
|
||||||
ARCHOPTIMIZATION += -ffunction-sections -fdata-sections
|
LDFLAGS += --gc-sections
|
||||||
|
ARCHOPTIMIZATION += -ffunction-sections -fdata-sections
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user