From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nobuhiro Iwamatsu Date: Fri, 28 Feb 2014 06:24:25 +0900 Subject: [U-Boot] [PATCH 6/8] sh: merge compiler flag -ffixed-r13 In-Reply-To: <1393393865-11608-7-git-send-email-yamada.m@jp.panasonic.com> References: <1393393865-11608-1-git-send-email-yamada.m@jp.panasonic.com> <1393393865-11608-7-git-send-email-yamada.m@jp.panasonic.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Applied, thanks. Best regards, Nobuhiro 2014-02-26 14:51 GMT+09:00 Masahiro Yamada : > -ffixed-r13 is defined commonly for sh2, sh3, sh4. > Move it to arch/sh/config.mk > > Signed-off-by: Masahiro Yamada > Cc: Nobuhiro Iwamatsu > --- > > arch/sh/config.mk | 1 + > arch/sh/cpu/sh2/config.mk | 1 - > arch/sh/cpu/sh3/config.mk | 1 - > arch/sh/cpu/sh4/config.mk | 1 - > 4 files changed, 1 insertion(+), 3 deletions(-) > > diff --git a/arch/sh/config.mk b/arch/sh/config.mk > index 758c070..eefcbcd 100644 > --- a/arch/sh/config.mk > +++ b/arch/sh/config.mk > @@ -15,3 +15,4 @@ endif > PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__ > PLATFORM_LDFLAGS += -e $(CONFIG_SYS_TEXT_BASE) --defsym reloc_dst=$(CONFIG_SYS_TEXT_BASE) > LDFLAGS_FINAL = --gc-sections > +PLATFORM_RELFLAGS += -ffixed-r13 > diff --git a/arch/sh/cpu/sh2/config.mk b/arch/sh/cpu/sh2/config.mk > index 25abcdd..4904d76 100644 > --- a/arch/sh/cpu/sh2/config.mk > +++ b/arch/sh/cpu/sh2/config.mk > @@ -14,5 +14,4 @@ PLATFORM_CPPFLAGS += -m3e -mb > endif > PLATFORM_CPPFLAGS += -DCONFIG_SH2 $(call cc-option,-mno-fdpic) > > -PLATFORM_RELFLAGS += -ffixed-r13 > PLATFORM_LDFLAGS += $(ENDIANNESS) > diff --git a/arch/sh/cpu/sh3/config.mk b/arch/sh/cpu/sh3/config.mk > index abd4b8d..24b5c47 100644 > --- a/arch/sh/cpu/sh3/config.mk > +++ b/arch/sh/cpu/sh3/config.mk > @@ -12,4 +12,3 @@ > # > # > PLATFORM_CPPFLAGS += -DCONFIG_SH3 -m3 > -PLATFORM_RELFLAGS += -ffixed-r13 > diff --git a/arch/sh/cpu/sh4/config.mk b/arch/sh/cpu/sh4/config.mk > index 753580b..5773d4f 100644 > --- a/arch/sh/cpu/sh4/config.mk > +++ b/arch/sh/cpu/sh4/config.mk > @@ -9,4 +9,3 @@ > # > # > PLATFORM_CPPFLAGS += -DCONFIG_SH4 -m4-nofpu > -PLATFORM_RELFLAGS += -ffixed-r13 > -- > 1.8.3.2 > > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot -- Nobuhiro Iwamatsu