From: Nobuhiro Iwamatsu Date: Thu, 9 Jun 2011 06:03:34 +0000 (+0900) Subject: sh: sh2a: Add sh2a optimize to config.mk X-Git-Tag: v2011.09-rc1~72^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8cc44418b8428f50bc8ff32d264476db72a9f096;p=u-boot 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 Signed-off-by: Nobuhiro Iwamatsu --- diff --git a/arch/sh/cpu/sh2/config.mk b/arch/sh/cpu/sh2/config.mk index f2d40aa228..f46b38fa0f 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)