1 # Config entries for internal toolchain backend
3 if BR2_TOOLCHAIN_BUILDROOT
5 config BR2_TOOLCHAIN_BUILDROOT_VENDOR
6 string "custom toolchain vendor name"
9 This option allows to customize the "vendor" part of the
10 toolchain tuple, where the toolchain tuple has the form
11 <arch>-<vendor>-<os>-<libc>. The default value, "buildroot",
12 is fine for most cases, except in very specific situations
13 where gcc might make different decisions based on the vendor
14 part of the tuple. The value "unknown" is not allowed, as the
15 cross-compiling toolchain might then be confused with the
16 native toolchain when the target and host architecture are
17 identical. The value can not be empty either.
19 If you're not sure, just leave the default "buildroot" value.
21 source "package/linux-headers/Config.in.host"
25 default BR2_TOOLCHAIN_UCLIBC
26 default BR2_TOOLCHAIN_BUILDROOT_GLIBC if BR2_aarch64 || BR2_microblaze \
27 || BR2_mips64 || BR2_mips64el || BR2_powerpc64
29 config BR2_TOOLCHAIN_BUILDROOT_UCLIBC
31 select BR2_TOOLCHAIN_USES_UCLIBC
32 depends on BR2_arcle || BR2_arceb || BR2_arm || BR2_armeb || \
33 BR2_bfin || BR2_i386 || BR2_m68k || \
34 BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
35 BR2_powerpc || BR2_sh2a || BR2_sh4 || BR2_sh4eb || \
36 BR2_sparc || BR2_xtensa || BR2_x86_64
38 This option selects uClibc as the C library for the
39 cross-compilation toolchain.
43 config BR2_TOOLCHAIN_BUILDROOT_EGLIBC
45 depends on BR2_arm || BR2_armeb || BR2_aarch64 || \
46 BR2_i386 || BR2_mips || BR2_mipsel || \
47 BR2_mips64 || BR2_mips64el || BR2_powerpc || \
48 BR2_sh || BR2_sh64 || BR2_sparc || \
49 BR2_x86_64 || BR2_microblaze || BR2_powerpc64
50 depends on BR2_USE_MMU
51 depends on !BR2_STATIC_LIBS
52 select BR2_TOOLCHAIN_USES_GLIBC
53 # our eglibc.mk enables RPC support
54 select BR2_TOOLCHAIN_HAS_NATIVE_RPC
56 This option selects eglibc as the C library for the
57 cross-compilation toolchain.
61 config BR2_TOOLCHAIN_BUILDROOT_GLIBC
63 depends on BR2_arm || BR2_armeb || BR2_aarch64 || \
64 BR2_i386 || BR2_mips || BR2_mipsel || \
65 BR2_mips64 || BR2_mips64el || BR2_powerpc || \
66 BR2_powerpc64 || BR2_powerpc64le || BR2_sh || \
67 BR2_sh64 || BR2_sparc || BR2_x86_64 || \
68 BR2_microblaze || BR2_nios2
69 depends on BR2_USE_MMU
70 depends on !BR2_STATIC_LIBS
71 depends on !BR2_powerpc_SPE
72 select BR2_TOOLCHAIN_USES_GLIBC
73 # our glibc.mk enables RPC support
74 select BR2_TOOLCHAIN_HAS_NATIVE_RPC
76 This option selects glibc as the C library for the
77 cross-compilation toolchain.
79 http://www.gnu.org/software/libc/
81 comment "(e)glibc only available with shared lib support"
82 depends on BR2_STATIC_LIBS
84 config BR2_TOOLCHAIN_BUILDROOT_MUSL
85 bool "musl (experimental)"
86 depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || \
87 BR2_microblaze || BR2_mips || BR2_mipsel || BR2_powerpc || \
89 depends on !BR2_powerpc_SPE # not supported, build breaks
90 select BR2_TOOLCHAIN_USES_MUSL
92 This option selects musl as the C library for the
93 cross-compilation toolchain.
97 config BR2_TOOLCHAIN_BUILDROOT_LIBC
99 default "uclibc" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
100 # Both glibc and eglibc are handled by the package called
102 default "glibc" if BR2_TOOLCHAIN_BUILDROOT_EGLIBC
103 default "glibc" if BR2_TOOLCHAIN_BUILDROOT_GLIBC
104 default "musl" if BR2_TOOLCHAIN_BUILDROOT_MUSL
106 source "package/uclibc/Config.in"
107 source "package/glibc/Config.in"
108 source "package/binutils/Config.in.host"
109 source "package/gcc/Config.in.host"
110 source "package/elf2flt/Config.in.host"