]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
m68k: mcf523x: move CPU type to Kconfig and refactor config.mk
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 27 Mar 2015 08:01:11 +0000 (17:01 +0900)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:34:20 +0000 (14:34 +0200)
Move the CPU type config options from include/configs/M5235EVB.h
to arch/m68k/Kconfig and refactor the CPU flags select in
arch/m68k/cpu/mcf523x/config.mk.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Alison Wang <alison.wang@freescale.com>
Cc: Angelo Dureghello <angelo@sysam.it>
arch/m68k/Kconfig
arch/m68k/cpu/mcf523x/config.mk
include/configs/M5235EVB.h

index a645d95da0c86a20a00eea9f1c38e8f53537ca77..a3f0cbc2a447828aa8f5abb5d0fbdaf3573050c9 100644 (file)
@@ -11,6 +11,9 @@ config MCF520x
 config MCF52x2
        bool
 
+config MCF523x
+       bool
+
 config MCF530x
        bool
 
@@ -37,6 +40,10 @@ config M5208
        bool
        select MCF520x
 
+config M5235
+       bool
+       select MCF523x
+
 config M5249
        bool
        select MCF52x2
@@ -103,6 +110,7 @@ config TARGET_M52277EVB
 
 config TARGET_M5235EVB
        bool "Support M5235EVB"
+       select M5235
 
 config TARGET_COBRA5272
        bool "Support cobra5272"
index c9435ab99b0478ad057a4d9555f34d4237b97157..4795f6ab8ac538ce5ebc73fafc8fc9905de79912 100644 (file)
@@ -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)
index 0f6e2f72cf01e46f072bbc3d3e73c4b7bd570872..883347b0fd8b61d0248a2dda0f6c4823c05cf418 100644 (file)
@@ -18,8 +18,6 @@
  * High Level Configuration Options
  * (easy to change)
  */
-#define CONFIG_MCF523x         /* define processor family */
-#define CONFIG_M5235           /* define processor type */
 
 #define CONFIG_MCFUART
 #define CONFIG_SYS_UART_PORT           (0)