]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/m68k/cpu/mcf547x_8x/config.mk
m68k: mcf547x_8x: move CPU type to Kconfig and refactor config.mk
[karo-tx-uboot.git] / arch / m68k / cpu / mcf547x_8x / config.mk
index 825f6ccebe160a834ccea7d2ce9b84bbdf319176..240dd27b932b713416bbf1d1c23177cfcf5bc889 100644 (file)
@@ -7,7 +7,9 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-PLATFORM_CPPFLAGS += -mcpu=5485 -fPIC
+cpuflags-$(CONFIG_MCF547x_8x) := -mcpu=5485 -fPIC
+
+PLATFORM_CPPFLAGS += $(cpuflags-y)
 
 ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
 ifneq (,$(findstring GOT,$(shell $(LD) --help)))