arm64/toolchain.defs: clang should specify target

If not specified, the corresponding libgcc. a cannot be found

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
wangmingrong1 2025-06-27 17:23:41 +08:00 committed by Xiang Xiao
parent 3314201f64
commit 6b8bcd673b

View file

@ -60,6 +60,10 @@ else ifeq ($(CONFIG_ARCH_CORTEX_R82),y)
ARCHCPUFLAGS += -mcpu=cortex-r82
endif
ifeq ($(CONFIG_ARM_TOOLCHAIN_CLANG),y)
ARCHCPUFLAGS += --target=aarch64-none-elf
endif
ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
ARCHOPTIMIZATION += $(CONFIG_DEBUG_OPTLEVEL)
else ifeq ($(CONFIG_DEBUG_FULLOPT),y)