aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-06-15 23:05:08 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-06-15 23:05:08 +0000
commita7780603923fddec225c9f4b0990fede4c2695a9 (patch)
treea95c0086b95a065f81a73b5baa98c7eb675cab16
parentaaf4aea141a6c0b33d6f4261e90151a51ef02a78 (diff)
downloadupstream-a7780603923fddec225c9f4b0990fede4c2695a9.tar.gz
upstream-a7780603923fddec225c9f4b0990fede4c2695a9.tar.bz2
upstream-a7780603923fddec225c9f4b0990fede4c2695a9.zip
toolchain: switch to musl by default, except for mips64
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45995
-rw-r--r--rules.mk2
-rw-r--r--toolchain/Config.in8
2 files changed, 5 insertions, 5 deletions
diff --git a/rules.mk b/rules.mk
index e13d8ccc9f..cb0b7da4ae 100644
--- a/rules.mk
+++ b/rules.mk
@@ -89,7 +89,7 @@ ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
REAL_GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-openwrt-linux$(if $(TARGET_SUFFIX),-$(TARGET_SUFFIX))
GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-openwrt-linux
DIR_SUFFIX:=_$(LIBC)-$(LIBCV)$(if $(CONFIG_arm),_eabi)
- BIN_DIR:=$(BIN_DIR)$(if $(CONFIG_USE_UCLIBC),,-$(LIBC))
+ BIN_DIR:=$(BIN_DIR)$(if $(CONFIG_USE_MUSL),,-$(LIBC))
TARGET_DIR_NAME = target-$(ARCH)$(ARCH_SUFFIX)$(DIR_SUFFIX)$(if $(BUILD_SUFFIX),_$(BUILD_SUFFIX))
TOOLCHAIN_DIR_NAME = toolchain-$(ARCH)$(ARCH_SUFFIX)_gcc-$(GCCV)$(DIR_SUFFIX)
else
diff --git a/toolchain/Config.in b/toolchain/Config.in
index 7b365e4c5e..1e9460244d 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -211,8 +211,8 @@ comment "C Library"
choice
prompt "C Library implementation" if TOOLCHAINOPTS
- default LIBC_USE_GLIBC if (aarch64 || aarch64_be)
- default LIBC_USE_UCLIBC
+ default LIBC_USE_UCLIBC if mips64 || mips64el
+ default LIBC_USE_MUSL
help
Select the C library implementation.
@@ -257,13 +257,13 @@ config INSIGHT
config USE_GLIBC
bool
- default y if !TOOLCHAINOPTS && !EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN && (aarch64 || aarch64_be || octeon)
config USE_UCLIBC
+ default y if !TOOLCHAINOPTS && !EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN && (mips64 || mips64el)
bool
- default y if !TOOLCHAINOPTS && !EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN && !(aarch64 || aarch64_be || octeon)
config USE_MUSL
+ default y if !TOOLCHAINOPTS && !EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN && !(mips64 || mips64el)
bool
config USE_EXTERNAL_LIBC