[Buildroot] [PATCHv2 10/10] toolchain-external: add publicly available musl toolchains
Peter Korsgaard
jacmet at uclibc.org
Tue May 6 08:18:07 UTC 2014
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:
> This commit adds ten toolchains based on the musl C library that are
> publicly available from the musl-cross project.
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> ---
> toolchain/toolchain-external/Config.in | 30 ++++++++++++++++++++++
> toolchain/toolchain-external/toolchain-external.mk | 27 +++++++++++++++++++
> 2 files changed, 57 insertions(+)
> diff --git a/toolchain/toolchain-external/Config.in b/toolchain/toolchain-external/Config.in
> index 0d8d9b9..0f78937 100644
> --- a/toolchain/toolchain-external/Config.in
> +++ b/toolchain/toolchain-external/Config.in
> @@ -867,6 +867,26 @@ config BR2_TOOLCHAIN_EXTERNAL_LINARO_AARCH64_13_12
> Toolchain for the AArch64 architecture, from
> http://www.linaro.org/engineering/armv8/
> +config BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS
> + bool "Musl toolchain"
> + depends on (BR2_arm && BR2_ARM_EABI) || (BR2_armeb && BR2_ARM_EABI) || \
> + (BR2_i386 && !BR2_x86_i386) || BR2_microblaze || BR2_mips || \
> + BR2_mipsel || BR2_powerpc || BR2_x86_64
The powerpc variant uses the classic ABI, so this should be
(BR2_powerpc && BR2_powerpc_CLASSIC)
> + depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
> + select BR2_TOOLCHAIN_EXTERNAL_MUSL
> + select BR2_INSTALL_LIBSTDCPP
> + select BR2_HOSTARCH_NEEDS_IA32_LIBS
> + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
> + help
> + Toolchain based on the Musl C library, provided by the
> + musl-cross project. It uses gcc 4.8.2, binutils 2.24 and
> + musl 1.0.0. It does not have a cross debugger included.
> +
> + The ARM toolchain is built for ARMv4t, soft-float.
> + The x86 toolchain is built for i486.
> +
> + http://musl.codu.org/
> +
> config BR2_TOOLCHAIN_EXTERNAL_CUSTOM
> bool "Custom toolchain"
> help
> @@ -953,6 +973,16 @@ config BR2_TOOLCHAIN_EXTERNAL_PREFIX
> default "bfin-linux-uclibc" if BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2 && BR2_BINFMT_FDPIC
> default "bfin-uclinux" if BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2013R1 && BR2_BINFMT_FLAT
> default "bfin-linux-uclibc" if BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2013R1 && BR2_BINFMT_FDPIC
> + default "arm-linux-musleabi" if BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS && BR2_arm
> + default "armeb-linux-musleabi" if BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS && BR2_armeb
> + default "i486-linux-musl" if BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS && BR2_i386
> + default "microblaze-linux-musl" if BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS && BR2_microblaze
> + default "mips-linux-musl" if BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS && (BR2_mips && !BR2_SOFT_FLOAT)
> + default "mips-sf-linux-musl" if BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS && (BR2_mips && BR2_SOFT_FLOAT)
> + default "mipsel-linux-musl" if BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS && (BR2_mipsel && !BR2_SOFT_FLOAT)
> + default "mipsel-sf-linux-musl" if BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS && (BR2_mipsel && BR2_SOFT_FLOAT)
> + default "powerpc-linux-musl-gcc" if BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS && BR2_powerpc
The '-gcc' part shouldn't be there.
Committed with that fixed, thanks.
Tested with arm-versatile / ppc-g3beige / mipsel-malta / x86 qemu
defconfigs.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list