summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/binutils/Makefile2
-rw-r--r--toolchain/gcc/Makefile7
2 files changed, 7 insertions, 2 deletions
diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile
index ba67263ef..36e5b51d6 100644
--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -12,7 +12,7 @@ else
CONFOPTS+= --disable-libssp
endif
-ifeq ($(ADK_LINUX_64),y)
+ifneq ($(strip $(ADK_LINUX_64)$(ADK_64BIT_KERNEL)),)
CONFOPTS+= --enable-64-bit-bfd
endif
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index b2e8842d9..67a2b1b76 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -20,7 +20,6 @@ GCC_CONFOPTS= --prefix=$(STAGING_HOST_DIR) \
--disable-multilib \
--disable-libmudflap \
--disable-libgomp \
- --disable-biarch \
--disable-decimal-float \
--disable-libstdcxx-pch \
--disable-ppl-version-check \
@@ -35,6 +34,12 @@ else
GCC_CONFOPTS+= --disable-sjlj-exceptions
endif
+ifeq ($(ADK_64BIT_KERNEL),y)
+GCC_CONFOPTS+= --enable-targets=all
+else
+GCC_CONFOPTS+= --disable-biarch
+endif
+
ifeq ($(ADK_TOOLCHAIN_GCC_SSP),y)
GCC_CONFOPTS+= --enable-libssp
else