[U-Boot] [RFC PATCH 11/17] sh: remove redundant CPU family definition
Masahiro Yamada
yamada.m at jp.panasonic.com
Mon Mar 17 09:53:06 CET 2014
CONFIG_SH2, CONFIG_SH3, CONFIG_SH4 are defined in Kconfig.
Remove the redundant definition in arch/sh/cpu/*/config.mk
Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
---
arch/sh/cpu/sh2/config.mk | 2 +-
arch/sh/cpu/sh3/config.mk | 2 +-
arch/sh/cpu/sh4/config.mk | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/sh/cpu/sh2/config.mk b/arch/sh/cpu/sh2/config.mk
index 4904d76..38bbcbc 100644
--- a/arch/sh/cpu/sh2/config.mk
+++ b/arch/sh/cpu/sh2/config.mk
@@ -12,6 +12,6 @@ PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb
else # SH2
PLATFORM_CPPFLAGS += -m3e -mb
endif
-PLATFORM_CPPFLAGS += -DCONFIG_SH2 $(call cc-option,-mno-fdpic)
+PLATFORM_CPPFLAGS += $(call cc-option,-mno-fdpic)
PLATFORM_LDFLAGS += $(ENDIANNESS)
diff --git a/arch/sh/cpu/sh3/config.mk b/arch/sh/cpu/sh3/config.mk
index 24b5c47..dcafd19 100644
--- a/arch/sh/cpu/sh3/config.mk
+++ b/arch/sh/cpu/sh3/config.mk
@@ -11,4 +11,4 @@
# SPDX-License-Identifier: GPL-2.0+
#
#
-PLATFORM_CPPFLAGS += -DCONFIG_SH3 -m3
+PLATFORM_CPPFLAGS += -m3
diff --git a/arch/sh/cpu/sh4/config.mk b/arch/sh/cpu/sh4/config.mk
index 5773d4f..4fb2dc2 100644
--- a/arch/sh/cpu/sh4/config.mk
+++ b/arch/sh/cpu/sh4/config.mk
@@ -8,4 +8,4 @@
# SPDX-License-Identifier: GPL-2.0+
#
#
-PLATFORM_CPPFLAGS += -DCONFIG_SH4 -m4-nofpu
+PLATFORM_CPPFLAGS += -m4-nofpu
--
1.8.3.2
More information about the U-Boot
mailing list