summaryrefslogtreecommitdiff
path: root/arch/m68k/cpu/mcf530x
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-03-27 17:01:07 +0900
committerTom Rini <trini@konsulko.com>2015-03-28 09:03:09 -0400
commitbdde65951659fb78d3b4bbf99743a74522f03a05 (patch)
treead8e0af1ca8869766b27c3feeb93f3650b536128 /arch/m68k/cpu/mcf530x
parentd4a9b17df590c1b0b2a187e1491ea7e946a06a07 (diff)
downloadu-boot-imx-bdde65951659fb78d3b4bbf99743a74522f03a05.zip
u-boot-imx-bdde65951659fb78d3b4bbf99743a74522f03a05.tar.gz
u-boot-imx-bdde65951659fb78d3b4bbf99743a74522f03a05.tar.bz2
m68k: mcf530x: move CPU type to Kconfig and refactor config.mk
This commit intends to stop grepping CPU type in arch/m68k/cpu/mcf530x/config.mk. Move the CPU type config options from include/configs/amcore.h to arch/m68k/Kconfig and refactor the CPU flags select in arch/m68k/cpu/mcf530x/config.mk. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Cc: Alison Wang <alison.wang@freescale.com> Cc: Angelo Dureghello <angelo@sysam.it>
Diffstat (limited to 'arch/m68k/cpu/mcf530x')
-rw-r--r--arch/m68k/cpu/mcf530x/config.mk7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/m68k/cpu/mcf530x/config.mk b/arch/m68k/cpu/mcf530x/config.mk
index aef72d7..25845aa 100644
--- a/arch/m68k/cpu/mcf530x/config.mk
+++ b/arch/m68k/cpu/mcf530x/config.mk
@@ -4,9 +4,6 @@
# SPDX-License-Identifier: GPL-2.0+
#
-cfg=$(srctree)/include/configs/$(CONFIG_SYS_CONFIG_NAME:"%"=%).h
-is5307:=$(shell grep CONFIG_M5307 $(cfg))
+cpuflags-$(CONFIG_M5307) := -mcpu=5307
-ifneq (,$(findstring CONFIG_M5307,$(is5307)))
-PLATFORM_CPPFLAGS += -mcpu=5307
-endif
+PLATFORM_CPPFLAGS += $(cpuflags-y)