diff --git a/core/arch/arm/cpu/cortex-armv8-0.mk b/core/arch/arm/cpu/cortex-armv8-0.mk index eb43c2445b3..42ebd375780 100644 --- a/core/arch/arm/cpu/cortex-armv8-0.mk +++ b/core/arch/arm/cpu/cortex-armv8-0.mk @@ -1,5 +1,6 @@ $(call force,CFG_HWSUPP_MEM_PERM_WXN,y) $(call force,CFG_HWSUPP_MEM_PERM_PXN,y) +# cortex-a53 and cortex-a57 complies on arm32 architectures arm32-platform-cpuarch := cortex-a53 arm32-platform-cflags += -mcpu=$(arm32-platform-cpuarch) arm32-platform-aflags += -mcpu=$(arm32-platform-cpuarch) diff --git a/core/arch/arm/plat-mediatek/conf.mk b/core/arch/arm/plat-mediatek/conf.mk index 1664278dfcc..1a6271807ff 100644 --- a/core/arch/arm/plat-mediatek/conf.mk +++ b/core/arch/arm/plat-mediatek/conf.mk @@ -1,6 +1,6 @@ PLATFORM_FLAVOR ?= mt8173 -include core/arch/arm/cpu/cortex-a15.mk +include core/arch/arm/cpu/cortex-armv8-0.mk # 32-bit flags arm32-platform-aflags += -mfpu=neon diff --git a/core/arch/arm/plat-sprd/conf.mk b/core/arch/arm/plat-sprd/conf.mk index 1f4c4e10198..e1c4b988d22 100644 --- a/core/arch/arm/plat-sprd/conf.mk +++ b/core/arch/arm/plat-sprd/conf.mk @@ -1,6 +1,6 @@ PLATFORM_FLAVOR ?= sc9860 -include core/arch/arm/cpu/cortex-a15.mk +include core/arch/arm/cpu/cortex-armv8-0.mk # 32-bit flags arm32-platform-aflags += -mfpu=neon