summaryrefslogtreecommitdiff
path: root/toolchain/toolchain-buildroot
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-05-05 23:17:08 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-05-05 23:53:18 +0200
commita84f478d3c9abdd7f695083bcfa710fad281bbaa (patch)
tree054733f1bd74a034281d216faf73da7b4ade8e83 /toolchain/toolchain-buildroot
parent43b1cd320991b1632972d343e8884ba5061fa7e2 (diff)
toolchain-buildroot: add support for building musl toolchains
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'toolchain/toolchain-buildroot')
-rw-r--r--toolchain/toolchain-buildroot/Config.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
index 42166d263..1bd3f9236 100644
--- a/toolchain/toolchain-buildroot/Config.in
+++ b/toolchain/toolchain-buildroot/Config.in
@@ -77,6 +77,15 @@ config BR2_TOOLCHAIN_BUILDROOT_GLIBC
comment "(e)glibc only available with shared lib support"
depends on BR2_PREFER_STATIC_LIB
+config BR2_TOOLCHAIN_BUILDROOT_MUSL
+ bool "musl (experimental)"
+ depends on BR2_arm || BR2_armeb || BR2_i386 || BR2_microblaze || \
+ BR2_mips || BR2_mipsel || BR2_powerpc || BR2_x86_64
+ select BR2_TOOLCHAIN_USES_MUSL
+ help
+ This option selects musl as the C library for the
+ cross-compilation toolchain.
+
endchoice
config BR2_TOOLCHAIN_BUILDROOT_LIBC
@@ -86,6 +95,7 @@ config BR2_TOOLCHAIN_BUILDROOT_LIBC
# 'glibc'
default "glibc" if BR2_TOOLCHAIN_BUILDROOT_EGLIBC
default "glibc" if BR2_TOOLCHAIN_BUILDROOT_GLIBC
+ default "musl" if BR2_TOOLCHAIN_BUILDROOT_MUSL
source "package/uclibc/Config.in"
source "package/glibc/Config.in"