m68k: mcf547x_8x: move CPU type to Kconfig and refactor config.mk
Move the CPU type config options from include/configs/*.h to arch/m68k/Kconfig and refactor the CPU flags select in arch/m68k/cpu/mcf547x_8x/config.mk. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Cc: Alison Wang <alison.wang@freescale.com> Cc: Angelo Dureghello <angelo@sysam.it>
This commit is contained in:
parent
f47fb6b4a0
commit
4cbd29284d
|
@ -35,6 +35,9 @@ config MCF5445x
|
||||||
config MCF5227x
|
config MCF5227x
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
config MCF547x_8x
|
||||||
|
bool
|
||||||
|
|
||||||
# processor type
|
# processor type
|
||||||
config M5208
|
config M5208
|
||||||
bool
|
bool
|
||||||
|
@ -101,6 +104,14 @@ config M52277
|
||||||
bool
|
bool
|
||||||
select MCF5227x
|
select MCF5227x
|
||||||
|
|
||||||
|
config M547x
|
||||||
|
bool
|
||||||
|
select MCF547x_8x
|
||||||
|
|
||||||
|
config M548x
|
||||||
|
bool
|
||||||
|
select MCF547x_8x
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Target select"
|
prompt "Target select"
|
||||||
|
|
||||||
|
@ -178,9 +189,11 @@ config TARGET_M54455EVB
|
||||||
|
|
||||||
config TARGET_M5475EVB
|
config TARGET_M5475EVB
|
||||||
bool "Support M5475EVB"
|
bool "Support M5475EVB"
|
||||||
|
select M547x
|
||||||
|
|
||||||
config TARGET_M5485EVB
|
config TARGET_M5485EVB
|
||||||
bool "Support M5485EVB"
|
bool "Support M5485EVB"
|
||||||
|
select M548x
|
||||||
|
|
||||||
config TARGET_AMCORE
|
config TARGET_AMCORE
|
||||||
bool "Support AMCORE"
|
bool "Support AMCORE"
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# 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 -linux-,$(shell $(CC) --version)))
|
||||||
ifneq (,$(findstring GOT,$(shell $(LD) --help)))
|
ifneq (,$(findstring GOT,$(shell $(LD) --help)))
|
||||||
|
|
|
@ -18,9 +18,6 @@
|
||||||
* High Level Configuration Options
|
* High Level Configuration Options
|
||||||
* (easy to change)
|
* (easy to change)
|
||||||
*/
|
*/
|
||||||
#define CONFIG_MCF547x_8x /* define processor family */
|
|
||||||
#define CONFIG_M547x /* define processor type */
|
|
||||||
#define CONFIG_M5475 /* define processor type */
|
|
||||||
|
|
||||||
#define CONFIG_DISPLAY_BOARDINFO
|
#define CONFIG_DISPLAY_BOARDINFO
|
||||||
|
|
||||||
|
|
|
@ -18,9 +18,6 @@
|
||||||
* High Level Configuration Options
|
* High Level Configuration Options
|
||||||
* (easy to change)
|
* (easy to change)
|
||||||
*/
|
*/
|
||||||
#define CONFIG_MCF547x_8x /* define processor family */
|
|
||||||
#define CONFIG_M548x /* define processor type */
|
|
||||||
#define CONFIG_M5485 /* define processor type */
|
|
||||||
|
|
||||||
#define CONFIG_DISPLAY_BOARDINFO
|
#define CONFIG_DISPLAY_BOARDINFO
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue