diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-11-02 07:04:36 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-11-03 18:39:11 +0100 |
commit | c797b9909cb53015c0a240a14d2788010f8b4f08 (patch) | |
tree | 8606eb0830d9b404616ae91844b1d550d363623a | |
parent | 6d40500590bd17ba77fa6d9daa27e5c546e8d2e5 (diff) |
sh4a: allow to build a sh4a toolchain
Add correct compiler settings.
-rw-r--r-- | Rules.mak | 2 | ||||
-rw-r--r-- | extra/Configs/Config.in | 1 | ||||
-rw-r--r-- | extra/Configs/Config.sh | 4 |
3 files changed, 7 insertions, 0 deletions
@@ -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 |