greenhills: fix the file build path error

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
guoshichao
2024-07-23 19:28:10 +08:00
committed by Xiang Xiao
parent e5f40db601
commit 3bb30231a9
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -288,6 +288,7 @@ config ARCH_TOOLCHAIN_TASKING
config ARCH_TOOLCHAIN_GHS
bool
select ARCH_TOOLCHAIN_GNU
default n
config ARCH_GNU_NO_WEAKFUNCTIONS
+4 -2
View File
@@ -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