summaryrefslogtreecommitdiff
path: root/toolchain/gcc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-05-27 10:08:32 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-05-27 10:08:55 +0200
commit654efc899a057faee2331fd0b409fba79fd99934 (patch)
treee5b029b0b6f35cfc876a6e11beed9a7b57a4877f /toolchain/gcc/Makefile
parentda4b0aaf46be19a71410247d1e622d8c976ff7ab (diff)
sh: update uclibc-ng config, fix toolchain multilib configure
Diffstat (limited to 'toolchain/gcc/Makefile')
-rw-r--r--toolchain/gcc/Makefile23
1 files changed, 16 insertions, 7 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 8f8cacd8f..397a74279 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -135,32 +135,35 @@ GCC_FINAL_CONFOPTS+= --disable-biarch --disable-multilib
endif
ifeq ($(ADK_TARGET_ARCH_SH),y)
+
ifeq ($(ADK_TARGET_LITTLE_ENDIAN),y)
GCC_CONFOPTS+= --with-endian=little
else
GCC_CONFOPTS+= --with-endian=big
endif
-ifeq ($(ADK_TARGET_ARCH_SH),y)
ifeq ($(ADK_TARGET_BINFMT_FDPIC),y)
GCC_CONFOPTS+= --enable-fdpic
endif
-GCC_FINAL_CONFOPTS+= --with-multilib-list=mj2
+
+ifeq ($(ADK_TARGET_CPU_SH_J2),y)
+GCC_CONFOPTS+= --with-multilib-list=mj2
endif
ifeq ($(ADK_TARGET_CPU_SH_SH2),y)
-GCC_FINAL_CONFOPTS+= --with-multilib-list=m2
+GCC_CONFOPTS+= --with-multilib-list=m2
endif
ifeq ($(ADK_TARGET_CPU_SH_SH2A),y)
-GCC_FINAL_CONFOPTS+= --with-multilib-list=m2a
+GCC_CONFOPTS+= --with-multilib-list=m2a,m2a-nofpu
endif
ifeq ($(ADK_TARGET_CPU_SH_SH3),y)
-GCC_FINAL_CONFOPTS+= --with-multilib-list=m3
+GCC_CONFOPTS+= --with-multilib-list=m3
endif
ifeq ($(ADK_TARGET_CPU_SH_SH4),y)
-GCC_FINAL_CONFOPTS+= --with-multilib-list=m4,m4-nofpu
+GCC_CONFOPTS+= --with-multilib-list=m4,m4-nofpu
endif
ifeq ($(ADK_TARGET_CPU_SH_SH4A),y)
-GCC_FINAL_CONFOPTS+= --with-multilib-list=m4a,m4a-nofpu
+GCC_CONFOPTS+= --with-multilib-list=m4a,m4a-nofpu
endif
+
endif
ifeq ($(ADK_TARGET_ARCH_X86),y)
@@ -238,6 +241,12 @@ ifeq ($(ADK_TARGET_ARCH_SH),y)
ifeq ($(ADK_TARGET_CPU_SH_J2),y)
(cd ${STAGING_TARGET_DIR}/ && ln -sf . mj2)
endif
+ifeq ($(ADK_TARGET_CPU_SH_SH2),y)
+ (cd ${STAGING_TARGET_DIR}/ && ln -sf . m2)
+endif
+ifeq ($(ADK_TARGET_CPU_SH_SH2A),y)
+ (cd ${STAGING_TARGET_DIR}/ && ln -sf . m2a)
+endif
ifeq ($(ADK_TARGET_CPU_SH_SH3),y)
(cd ${STAGING_TARGET_DIR}/ && ln -sf . m3)
endif