summaryrefslogtreecommitdiff
path: root/arch/m68k/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/cpu')
-rw-r--r--arch/m68k/cpu/mcf5227x/config.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/m68k/cpu/mcf5227x/config.mk b/arch/m68k/cpu/mcf5227x/config.mk
index b5c26e4e5b..a6814d8895 100644
--- a/arch/m68k/cpu/mcf5227x/config.mk
+++ b/arch/m68k/cpu/mcf5227x/config.mk
@@ -7,4 +7,6 @@
# SPDX-License-Identifier: GPL-2.0+
#
-PLATFORM_CPPFLAGS += -mcpu=52277 -fPIC
+cpuflags-$(CONFIG_M52277) := -mcpu=52277 -fPIC
+
+PLATFORM_CPPFLAGS += $(cpuflags-y)