x86/Toolchain.defs: Add LLVM target definitions

Summary:
- Added LLVM target definitions (`LLVM_ARCHTYPE`, `LLVM_CPUTYPE`, `LLVM_ABITYPE`) to the x86 toolchain configuration file
- These definitions are necessary for compatibility with LLVM-based toolchains

Impact:
- Enables support for LLVM toolchains when building for x86 targets
- No functional changes for existing GCC-based toolchains
- Improves cross-compilation flexibility by supporting additional toolchain options

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi
2025-01-26 20:53:02 +08:00
committed by Xiang Xiao
parent d13b745be4
commit 7ffea386e6
+5
View File
@@ -32,6 +32,11 @@ ARCHCPUFLAGS = -march=i486 -mtune=i486 -fno-stack-protector
ARCHPICFLAGS = -fpic
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
# LLVM target definitions
LLVM_ARCHTYPE := x86
LLVM_CPUTYPE := i486
LLVM_ABITYPE := sysv
# Check if building a 32-bit target with a 64-bit toolchain
ifeq ($(CONFIG_ARCH_X86_M32),y)