arm/llvm/clang: add support for LLVMEmbeddedToolchainForArm release-15.0.2

Upstream:
https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/releases/tag/release-15.0.2

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2022-11-22 14:05:11 +08:00 committed by Petro Karashchenko
parent f8a6ec2cdf
commit fc65e6969d
4 changed files with 14 additions and 14 deletions

View File

@ -26,7 +26,7 @@ TOOLCHAIN_MFLOAT := -mfloat-abi=soft
# Clang Configuration files
ifeq ($(CONFIG_ARM_TOOLCHAIN_CLANG),y)
TOOLCHAIN_MARCH := --config armv6m_soft_nofp_nosys
TOOLCHAIN_MARCH := --config armv6m_soft_nofp
else ifeq ($(CONFIG_ARM_TOOLCHAIN_ARMCLANG),y)
LDFLAGS += --cpu=Cortex-M0
endif

View File

@ -61,18 +61,18 @@ ifeq ($(CONFIG_ARM_TOOLCHAIN_CLANG),y)
ifeq ($(CONFIG_ARCH_CORTEXM4),y)
ifeq ($(CONFIG_ARCH_FPU),y)
TOOLCHAIN_MARCH += --config armv7em_hard_fpv4_sp_d16_nosys
TOOLCHAIN_MARCH += --config armv7em_hard_fpv4_sp_d16
else
TOOLCHAIN_MARCH += --config armv7em_soft_nofp_nosys
TOOLCHAIN_MARCH += --config armv7em_soft_nofp
endif
else ifeq ($(CONFIG_ARCH_CORTEXM7),y)
ifeq ($(CONFIG_ARCH_FPU),y)
TOOLCHAIN_MARCH += --config armv7em_hard_fpv5_d16_nosys
TOOLCHAIN_MARCH += --config armv7em_hard_fpv5_d16
else
TOOLCHAIN_MARCH += --config armv7em_soft_nofp_nosys
TOOLCHAIN_MARCH += --config armv7em_soft_nofp
endif
else # ifeq ($(CONFIG_ARCH_CORTEXM3),y)
TOOLCHAIN_MARCH += --config armv7m_soft_nofp_nosys
TOOLCHAIN_MARCH += --config armv7m_soft_nofp
endif
else ifeq ($(CONFIG_ARM_TOOLCHAIN_ARMCLANG),y)

View File

@ -63,24 +63,24 @@ endif
ifeq ($(CONFIG_ARM_TOOLCHAIN_CLANG),y)
ifeq ($(CONFIG_ARCH_CORTEXM23),y)
TOOLCHAIN_MARCH += --config armv8m.main_soft_nofp_nosys
TOOLCHAIN_MARCH += --config armv8m.main_soft_nofp
else ifeq ($(CONFIG_ARCH_CORTEXM33),y)
ifeq ($(CONFIG_ARCH_FPU),y)
TOOLCHAIN_MARCH += --config armv8m.main_hard_fp_nosys
TOOLCHAIN_MARCH += --config armv8m.main_hard_fp
else
TOOLCHAIN_MARCH += --config armv8m.main_soft_nofp_nosys
TOOLCHAIN_MARCH += --config armv8m.main_soft_nofp
endif
else ifeq ($(CONFIG_ARCH_CORTEXM35P),y)
ifeq ($(CONFIG_ARCH_FPU),y)
TOOLCHAIN_MARCH += --config armv8m.main_hard_fp_nosys
TOOLCHAIN_MARCH += --config armv8m.main_hard_fp
else
TOOLCHAIN_MARCH += --config armv8m.main_soft_nofp_nosys
TOOLCHAIN_MARCH += --config armv8m.main_soft_nofp
endif
else ifeq ($(CONFIG_ARCH_CORTEXM55),y)
ifeq ($(CONFIG_ARCH_FPU),y)
TOOLCHAIN_MARCH += --config armv8.1m.main_hard_fp_nosys
TOOLCHAIN_MARCH += --config armv8.1m.main_hard_fp
else
TOOLCHAIN_MARCH += --config armv8.1m.main_soft_nofp_nomve_nosys
TOOLCHAIN_MARCH += --config armv8.1m.main_soft_nofp_nomve
endif
endif

View File

@ -21,7 +21,7 @@
# Clang Configuration files
ifeq ($(CONFIG_ARM_TOOLCHAIN_CLANG),y)
TOOLCHAIN_MARCH := --config armv6m_soft_nofp_nosys
TOOLCHAIN_MARCH := --config armv6m_soft_nofp
endif
# Generic GNU EABI toolchain