summaryrefslogtreecommitdiff
path: root/arch/sh/cpu
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>2011-06-09 15:03:34 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2011-08-22 13:16:08 +0900
commit8cc44418b8428f50bc8ff32d264476db72a9f096 (patch)
treec703fa76eddeeb7fc7628a4d73c6f13ec5b3862f /arch/sh/cpu
parentc4f07be21c2835628889f103f7e1314ee05c4180 (diff)
downloadu-boot-imx-8cc44418b8428f50bc8ff32d264476db72a9f096.zip
u-boot-imx-8cc44418b8428f50bc8ff32d264476db72a9f096.tar.gz
u-boot-imx-8cc44418b8428f50bc8ff32d264476db72a9f096.tar.bz2
sh: sh2a: Add sh2a optimize to config.mk
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>
Diffstat (limited to 'arch/sh/cpu')
-rw-r--r--arch/sh/cpu/sh2/config.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/cpu/sh2/config.mk b/arch/sh/cpu/sh2/config.mk
index f2d40aa..f46b38f 100644
--- a/arch/sh/cpu/sh2/config.mk
+++ b/arch/sh/cpu/sh2/config.mk
@@ -23,6 +23,11 @@
#
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)