Patchwork [U-Boot] sh: sh2a: Add sh2a optimize to config.mk

login
register
mail settings
Submitter Nobuhiro Iwamatsu
Date June 9, 2011, 6:09 a.m.
Message ID <1307599782-12278-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com>
Download mbox | patch
Permalink /patch/99616/
State Accepted
Commit 8cc44418b8428f50bc8ff32d264476db72a9f096
Headers show

Comments

Nobuhiro Iwamatsu - June 9, 2011, 6:09 a.m.
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>
---
 arch/sh/cpu/sh2/config.mk |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

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)