summaryrefslogtreecommitdiffstats
path: root/arch/m68k/cpu/mcf523x/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/cpu/mcf523x/config.mk')
-rw-r--r--arch/m68k/cpu/mcf523x/config.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/m68k/cpu/mcf523x/config.mk b/arch/m68k/cpu/mcf523x/config.mk
index c9435ab99b..4795f6ab8a 100644
--- a/arch/m68k/cpu/mcf523x/config.mk
+++ b/arch/m68k/cpu/mcf523x/config.mk
@@ -7,4 +7,6 @@
# SPDX-License-Identifier: GPL-2.0+
#
-PLATFORM_CPPFLAGS += -mcpu=5235 -fPIC
+cpuflags-$(CONFIG_M5235) := -mcpu=5235 -fPIC
+
+PLATFORM_CPPFLAGS += $(cpuflags-y)
OpenPOWER on IntegriCloud