]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - toolchain/toolchain-buildroot/Config.in
Merge branch 'next'
[coffee/buildroot.git] / toolchain / toolchain-buildroot / Config.in
1 # Config entries for internal toolchain backend
2
3 if BR2_TOOLCHAIN_BUILDROOT
4
5 config BR2_TOOLCHAIN_BUILDROOT_VENDOR
6         string "custom toolchain vendor name"
7         default "buildroot"
8         help
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.
18
19           If you're not sure, just leave the default "buildroot" value.
20
21 source "package/linux-headers/Config.in.host"
22
23 choice
24         prompt "C library"
25         default BR2_TOOLCHAIN_UCLIBC
26         default BR2_TOOLCHAIN_BUILDROOT_EGLIBC if BR2_mips64 || BR2_mips64el
27
28 config BR2_TOOLCHAIN_BUILDROOT_UCLIBC
29         bool "uClibc"
30         select BR2_TOOLCHAIN_USES_UCLIBC
31         depends on BR2_arcle   || BR2_arceb  || BR2_arm    || BR2_armeb    || \
32                    BR2_avr32   || BR2_bfin   || BR2_i386   || BR2_m68k     || \
33                    BR2_mips    || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
34                    BR2_powerpc || BR2_sh     || BR2_sparc  || BR2_xtensa   || \
35                    BR2_x86_64
36         help
37           This option selects uClibc as the C library for the
38           cross-compilation toolchain.
39
40           http://uclibc.org
41
42 config BR2_TOOLCHAIN_BUILDROOT_EGLIBC
43         bool "eglibc"
44         depends on BR2_arm    || BR2_armeb    || BR2_aarch64 || \
45                    BR2_i386   || BR2_mips     || BR2_mipsel  || \
46                    BR2_mips64 || BR2_mips64el || BR2_powerpc || \
47                    BR2_sh     || BR2_sh64     || BR2_sparc   || \
48                    BR2_x86_64 || BR2_microblaze || BR2_powerpc64
49         depends on BR2_USE_MMU
50         depends on !BR2_PREFER_STATIC_LIB
51         select BR2_TOOLCHAIN_USES_GLIBC
52         # our eglibc.mk enables RPC support
53         select BR2_TOOLCHAIN_HAS_NATIVE_RPC
54         help
55           This option selects eglibc as the C library for the
56           cross-compilation toolchain.
57
58           http://eglibc.org
59
60 config BR2_TOOLCHAIN_BUILDROOT_GLIBC
61         bool "glibc"
62         depends on BR2_arm         || BR2_armeb    || BR2_aarch64 || \
63                    BR2_i386        || BR2_mips     || BR2_mipsel  || \
64                    BR2_mips64      || BR2_mips64el || BR2_powerpc || \
65                    BR2_powerpc64   || BR2_powerpc64le || BR2_sh   || \
66                    BR2_sh64        || BR2_sparc    || BR2_x86_64  || \
67                    BR2_microblaze
68         depends on BR2_USE_MMU
69         depends on !BR2_PREFER_STATIC_LIB
70         depends on !BR2_powerpc_SPE
71         select BR2_TOOLCHAIN_USES_GLIBC
72         # our glibc.mk enables RPC support
73         select BR2_TOOLCHAIN_HAS_NATIVE_RPC
74         help
75           This option selects glibc as the C library for the
76           cross-compilation toolchain.
77
78           http://www.gnu.org/software/libc/
79
80 comment "(e)glibc only available with shared lib support"
81         depends on BR2_PREFER_STATIC_LIB
82
83 config BR2_TOOLCHAIN_BUILDROOT_MUSL
84         bool "musl (experimental)"
85         depends on BR2_arm || BR2_armeb || BR2_i386 || BR2_microblazebe || \
86                 BR2_mips || BR2_mipsel || BR2_powerpc || BR2_x86_64
87         select BR2_TOOLCHAIN_USES_MUSL
88         help
89           This option selects musl as the C library for the
90           cross-compilation toolchain.
91
92 endchoice
93
94 config BR2_TOOLCHAIN_BUILDROOT_LIBC
95         string
96         default "uclibc" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
97         # Both glibc and eglibc are handled by the package called
98         # 'glibc'
99         default "glibc"  if BR2_TOOLCHAIN_BUILDROOT_EGLIBC
100         default "glibc"  if BR2_TOOLCHAIN_BUILDROOT_GLIBC
101         default "musl"   if BR2_TOOLCHAIN_BUILDROOT_MUSL
102
103 source "package/uclibc/Config.in"
104 source "package/glibc/Config.in"
105 source "package/binutils/Config.in.host"
106 source "package/gcc/Config.in.host"
107 source "package/elf2flt/Config.in.host"
108 endif