summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-14 11:36:56 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-14 11:47:20 +0100
commit4345869df894faae79f68d4a835e2e825a4778f7 (patch)
tree3db23ff72aed2caf0bf24d505fe13ffd9ccad43d /toolchain/gcc
parent176ed2d7b246a39cb0b9bc3f6cc3bfe3335b250f (diff)
rework float support
ARM, MIPS and PPC have support for soft or hard float configuration of toolchain and system. Generalize the support for this in OpenADK.
Diffstat (limited to 'toolchain/gcc')
-rw-r--r--toolchain/gcc/Makefile40
1 files changed, 20 insertions, 20 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index eb36c49b6..f1b8c4455 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -69,6 +69,26 @@ GCC_FINAL_CONFOPTS+= --enable-shared='libstdc++,libgcc'
endif
endif
+ifeq ($(ADK_TOOLCHAIN_WITH_SSP),y)
+GCC_FINAL_CONFOPTS+= --enable-libssp
+else
+GCC_FINAL_CONFOPTS+= --disable-libssp
+endif
+
+ifeq ($(ADK_TOOLCHAIN_WITH_LTO),y)
+GCC_CONFOPTS+= --enable-lto
+else
+GCC_CONFOPTS+= --disable-lto
+endif
+
+#
+# architecture specific
+#
+
+ifneq ($(ADK_TARGET_ARCH_ARM)$(ADK_TARGET_ARCH_MIPS)$(ADK_TARGET_ARCH_PPC),)
+GCC_CONFOPTS+= --with-float=$(ADK_TARGET_FLOAT)
+endif
+
ifeq ($(ADK_TARGET_ARCH_M68K)$(ADK_TARGET_ARCH_SH)$(ADK_TARGET_ARCH_X86_64)$(ADK_TARGET_ARCH_X86),)
GCC_FINAL_CONFOPTS+= --disable-biarch --disable-multilib
endif
@@ -99,31 +119,11 @@ GCC_FINAL_CONFOPTS+= --disable-biarch --disable-multilib
endif
endif
-ifeq ($(ADK_TOOLCHAIN_WITH_SSP),y)
-GCC_FINAL_CONFOPTS+= --enable-libssp
-else
-GCC_FINAL_CONFOPTS+= --disable-libssp
-endif
-
-ifeq ($(ADK_TOOLCHAIN_WITH_LTO),y)
-GCC_CONFOPTS+= --enable-lto
-else
-GCC_CONFOPTS+= --disable-lto
-endif
-
ifeq ($(ADK_TARGET_ARCH_PPC),y)
GCC_CONFOPTS+= --with-long-double-64 --enable-secureplt
-ifneq ($(ADK_TARGET_CPU_WITH_FPU),y)
-GCC_CONFOPTS+= --with-float=soft
-endif
-endif
-
-ifeq ($(ADK_TARGET_ARCH_MIPS),y)
-GCC_CONFOPTS+= --with-float=$(ADK_TARGET_FLOAT)
endif
ifeq ($(ADK_TARGET_ARCH_ARM),y)
-GCC_CONFOPTS+= --with-float=$(ADK_TARGET_FLOAT)
ifneq ($(ADK_TARGET_FPU),)
GCC_CONFOPTS+= --with-fpu=$(ADK_TARGET_FPU)
endif