sh: sh2: Add CONFIG_SH2 definition to config.mk of SH2
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Wed, 8 Jan 2014 04:46:06 +0000 (13:46 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Wed, 8 Jan 2014 05:13:55 +0000 (14:13 +0900)
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/sh/cpu/sh2/config.mk

index 8a0de9671461054bec076628d0ae08c680ce806c..69273b4f382fa38f3963a852201ccf5dbae59ea6 100644 (file)
@@ -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)