sh: sh2a: Add sh2a optimize to config.mk
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Thu, 9 Jun 2011 06:03:34 +0000 (15:03 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Mon, 22 Aug 2011 04:16:08 +0000 (13:16 +0900)
Only the optimization of sh2 had been supported up.
This adds the optimization of sh2a.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/sh/cpu/sh2/config.mk

index f2d40aa22872302c91c0d1364854911b204fc81f..f46b38fa0f0535e1fbb6e272d1f75987587ae1bd 100644 (file)
 #
 ENDIANNESS += -EB
 
+ifdef CONFIG_SH2A
+PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb -mno-fdpic -ffreestanding
+else # SH2
 PLATFORM_CPPFLAGS += -m3e -mb
+endif
+
 PLATFORM_RELFLAGS += -ffixed-r13
 PLATFORM_LDFLAGS += $(ENDIANNESS)