summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorFlorian Larysch <fl@n621.de>2016-11-03 14:30:40 +0100
committerFelix Fietkau <nbd@nbd.name>2017-10-24 13:24:04 +0200
commit0de93311e1575ab6f8e9e90b5023b6fb2cedcf1f (patch)
tree7e1d9fd3f6020a375e6a73c98dbb04ebaff33881 /toolchain
parent9e91d3271848fb9093b1a7f92ac9542ced8da88d (diff)
downloadmtk-20170518-0de93311e1575ab6f8e9e90b5023b6fb2cedcf1f.zip
mtk-20170518-0de93311e1575ab6f8e9e90b5023b6fb2cedcf1f.tar.gz
mtk-20170518-0de93311e1575ab6f8e9e90b5023b6fb2cedcf1f.tar.bz2
toolchain: use glibc for powerpc64 builds
Neither uClibc nor musl currently have working support for powerpc64 in big endian mode. Thus, default to using glibc for this architecture. Signed-off-by: Florian Larysch <fl@n621.de>
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/Config.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/toolchain/Config.in b/toolchain/Config.in
index cb29fe5..bf7b9c3 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -238,6 +238,7 @@ comment "C Library"
choice
prompt "C Library implementation" if TOOLCHAINOPTS
default LIBC_USE_UCLIBC if arc
+ default LIBC_USE_GLIBC if powerpc64
default LIBC_USE_MUSL
help
Select the C library implementation.
@@ -250,13 +251,13 @@ choice
config LIBC_USE_UCLIBC
select USE_UCLIBC
bool "Use uClibc"
- depends on !(aarch64 || aarch64_be)
+ depends on !(aarch64 || aarch64_be || powerpc64)
depends on BROKEN || !(arm || armeb || i386 || x86_64 || mips || mipsel || mips64 || mips64el || powerpc)
config LIBC_USE_MUSL
select USE_MUSL
bool "Use musl"
- depends on !(arc)
+ depends on !(arc || powerpc64)
endchoice
@@ -274,6 +275,7 @@ config GDB
Enable if you want to build the gdb.
config USE_GLIBC
+ default y if !TOOLCHAINOPTS && !EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN && (powerpc64)
bool
config USE_UCLIBC
@@ -281,7 +283,7 @@ config USE_UCLIBC
bool
config USE_MUSL
- default y if !TOOLCHAINOPTS && !EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN && !(arc)
+ default y if !TOOLCHAINOPTS && !EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN && !(arc || powerpc64)
bool
config USE_EXTERNAL_LIBC