diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-03-27 17:01:12 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-03-28 09:03:09 -0400 |
commit | 4cbd29284dcf5c1da9e7bc170e4c3c6a52c988f3 (patch) | |
tree | ba2432d1cf8442656f202e934233e80cd046f039 /arch/m68k/cpu/mcf547x_8x | |
parent | f47fb6b4a0082d1a9da03cec86150a5af4131eb3 (diff) | |
download | u-boot-4cbd29284dcf5c1da9e7bc170e4c3c6a52c988f3.tar.gz u-boot-4cbd29284dcf5c1da9e7bc170e4c3c6a52c988f3.tar.xz u-boot-4cbd29284dcf5c1da9e7bc170e4c3c6a52c988f3.zip |
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>
Diffstat (limited to 'arch/m68k/cpu/mcf547x_8x')
-rw-r--r-- | arch/m68k/cpu/mcf547x_8x/config.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/m68k/cpu/mcf547x_8x/config.mk b/arch/m68k/cpu/mcf547x_8x/config.mk index 825f6ccebe..240dd27b93 100644 --- a/arch/m68k/cpu/mcf547x_8x/config.mk +++ b/arch/m68k/cpu/mcf547x_8x/config.mk @@ -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))) |