From 729e9fc8e3a66c1da7190fead6c50c133ed25e8f Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Thu, 4 Apr 2024 13:16:41 +0300 Subject: [PATCH] arch/arm64/src/Toolchain.defs: Add -mcpu=cortex-a55 if CONFIG_ARCH_CORTEX_A55 is defined Signed-off-by: Jukka Laitinen --- arch/arm64/src/Toolchain.defs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/arch/arm64/src/Toolchain.defs b/arch/arm64/src/Toolchain.defs index ca1ddb09d1..4de3fa6732 100644 --- a/arch/arm64/src/Toolchain.defs +++ b/arch/arm64/src/Toolchain.defs @@ -30,22 +30,20 @@ # reliable code generation. # -ifeq ($(CONFIG_ARCH_ARMV8A),y) - ARCHCPUFLAGS += -march=armv8-a -endif - -ifeq ($(CONFIG_ARCH_ARMV8R),y) - ARCHCPUFLAGS += -march=armv8-r -endif - ifeq ($(CONFIG_ARCH_CORTEX_A53),y) ARCHCPUFLAGS += -mcpu=cortex-a53 +else ifeq ($(CONFIG_ARCH_CORTEX_A55),y) + ARCHCPUFLAGS += -mcpu=cortex-a55 else ifeq ($(CONFIG_ARCH_CORTEX_A57),y) ARCHCPUFLAGS += -mcpu=cortex-a57 else ifeq ($(CONFIG_ARCH_CORTEX_A72),y) ARCHCPUFLAGS += -mcpu=cortex-a72 else ifeq ($(CONFIG_ARCH_CORTEX_R82),y) ARCHCPUFLAGS += -mcpu=cortex-r82 +else ifeq ($(CONFIG_ARCH_ARMV8A),y) + ARCHCPUFLAGS += -march=armv8-a +else ifeq ($(CONFIG_ARCH_ARMV8R),y) + ARCHCPUFLAGS += -march=armv8-r endif ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)