From c797b9909cb53015c0a240a14d2788010f8b4f08 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 2 Nov 2015 07:04:36 +0100 Subject: sh4a: allow to build a sh4a toolchain Add correct compiler settings. --- Rules.mak | 2 ++ extra/Configs/Config.in | 1 + extra/Configs/Config.sh | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/Rules.mak b/Rules.mak index 063873b9c..761bb749b 100644 --- a/Rules.mak +++ b/Rules.mak @@ -422,9 +422,11 @@ $(eval $(call check-gcc-var,-mprefergot)) ifeq ($(UCLIBC_HAS_FPU),y) CPU_CFLAGS-$(CONFIG_SH2A)+=-m2a CPU_CFLAGS-$(CONFIG_SH4)+=-m4 + CPU_CFLAGS-$(CONFIG_SH4A)+=-m4a else CPU_CFLAGS-$(CONFIG_SH2A)+=-m2a-nofpu CPU_CFLAGS-$(CONFIG_SH4)+=-m4-nofpu + CPU_CFLAGS-$(CONFIG_SH4A)+=-m4a-nofpu endif endif diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in index 8e925b239..f3f573d3c 100644 --- a/extra/Configs/Config.in +++ b/extra/Configs/Config.in @@ -269,6 +269,7 @@ config TARGET_SUBARCH default "e500" if CONFIG_E500 default "classic" if CONFIG_CLASSIC default "sh4" if CONFIG_SH4 + default "sh4" if CONFIG_SH4A default "" if CONFIG_386 default "i486" if CONFIG_486 default "i586" if CONFIG_586 diff --git a/extra/Configs/Config.sh b/extra/Configs/Config.sh index 5e0fc9e1c..1367b1c4f 100644 --- a/extra/Configs/Config.sh +++ b/extra/Configs/Config.sh @@ -27,6 +27,7 @@ choice - "SH2" SuperH SH-2 - "SH3" SuperH SH-3 - "SH4" SuperH SH-4 + - "SH4A" SuperH SH-4a config CONFIG_SH2A select ARCH_HAS_NO_MMU @@ -44,6 +45,9 @@ config CONFIG_SH3 config CONFIG_SH4 bool "SH4" +config CONFIG_SH4A + bool "SH4A" + endchoice config ARCH_HAS_BWD_MEMCPY -- cgit v1.2.3