1 # Config entries for internal toolchain backend
3 if BR2_TOOLCHAIN_BUILDROOT
5 comment "Toolchain Buildroot Options"
7 config BR2_TOOLCHAIN_BUILDROOT_VENDOR
8 string "custom toolchain vendor name"
11 This option allows to customize the "vendor" part of the
12 toolchain tuple, where the toolchain tuple has the form
13 <arch>-<vendor>-<os>-<libc>. The default value, "buildroot",
14 is fine for most cases, except in very specific situations
15 where gcc might make different decisions based on the vendor
16 part of the tuple. The value "unknown" is not allowed, as the
17 cross-compiling toolchain might then be confused with the
18 native toolchain when the target and host architecture are
19 identical. The value can not be empty either.
21 If you're not sure, just leave the default "buildroot" value.
25 default BR2_TOOLCHAIN_UCLIBC
26 default BR2_TOOLCHAIN_BUILDROOT_GLIBC if BR2_powerpc64
28 config BR2_TOOLCHAIN_BUILDROOT_UCLIBC
30 select BR2_TOOLCHAIN_USES_UCLIBC
31 depends on BR2_aarch64 || BR2_aarch64_be || BR2_arcle || BR2_arceb || \
32 BR2_arm || BR2_armeb || \
33 BR2_bfin || BR2_i386 || BR2_m68k || BR2_microblaze || \
34 BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
35 BR2_or1k || BR2_powerpc || BR2_sh2a || BR2_sh4 || \
36 BR2_sh4eb || BR2_sparc || BR2_xtensa || BR2_x86_64
38 This option selects uClibc-ng as the C library for the
39 cross-compilation toolchain.
43 config BR2_TOOLCHAIN_BUILDROOT_GLIBC
45 depends on BR2_arm || BR2_armeb || BR2_aarch64 || \
46 BR2_aarch64_be || BR2_i386 || BR2_mips || \
47 BR2_mipsel || BR2_mips64 || BR2_mips64el|| \
48 BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \
49 BR2_sh || BR2_sparc64 || BR2_x86_64 || \
50 BR2_microblaze || BR2_nios2
51 depends on BR2_USE_MMU
52 depends on !BR2_STATIC_LIBS
53 depends on !BR2_powerpc_SPE
54 select BR2_TOOLCHAIN_USES_GLIBC
55 # our glibc.mk enables RPC support
56 select BR2_TOOLCHAIN_HAS_NATIVE_RPC
58 This option selects glibc as the C library for the
59 cross-compilation toolchain.
61 http://www.gnu.org/software/libc/
63 comment "glibc only available with shared lib support"
64 depends on BR2_USE_MMU
65 depends on BR2_STATIC_LIBS
67 config BR2_TOOLCHAIN_BUILDROOT_MUSL
69 depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || \
70 BR2_microblaze || BR2_mips || BR2_mipsel || BR2_mips64 || \
71 BR2_mips64el || BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \
73 depends on !BR2_powerpc_SPE # not supported, build breaks
74 # sh2 nommu is supported by musl, but we don't have support
75 # for it in Buildroot.
76 depends on BR2_USE_MMU
77 select BR2_TOOLCHAIN_USES_MUSL
79 This option selects musl as the C library for the
80 cross-compilation toolchain.
84 config BR2_TOOLCHAIN_BUILDROOT_LIBC
86 default "uclibc" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
87 default "glibc" if BR2_TOOLCHAIN_BUILDROOT_GLIBC
88 default "musl" if BR2_TOOLCHAIN_BUILDROOT_MUSL
90 source "package/linux-headers/Config.in.host"
91 source "package/linux-headers/Config.in"
92 source "package/musl/Config.in"
93 source "package/uclibc/Config.in"
94 source "package/glibc/Config.in"
95 source "package/binutils/Config.in.host"
96 source "package/gcc/Config.in.host"
97 source "package/elf2flt/Config.in.host"