From: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Date: Wed, 8 Jan 2014 04:46:06 +0000 (+0900)
Subject: sh: sh2: Add CONFIG_SH2 definition to config.mk of SH2
X-Git-Tag: v2025.01-rc5-pxa1908~15510^2~16^2~8
X-Git-Url: http://git.dujemihanovic.xyz/projects?a=commitdiff_plain;h=14eeb926bb1fc7fbfa0e8767136540ed10aff81a;p=u-boot.git

sh: sh2: Add CONFIG_SH2 definition to config.mk of SH2

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
---

diff --git a/arch/sh/cpu/sh2/config.mk b/arch/sh/cpu/sh2/config.mk
index 8a0de96714..69273b4f38 100644
--- a/arch/sh/cpu/sh2/config.mk
+++ b/arch/sh/cpu/sh2/config.mk
@@ -12,7 +12,7 @@ PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb -ffreestanding
 else # SH2
 PLATFORM_CPPFLAGS += -m3e -mb
 endif
-PLATFORM_CPPFLAGS += $(call cc-option,-mno-fdpic)
+PLATFORM_CPPFLAGS += -DCONFIG_SH2 $(call cc-option,-mno-fdpic)
 
 PLATFORM_RELFLAGS += -ffixed-r13
 PLATFORM_LDFLAGS += $(ENDIANNESS)