Add a bare-metal MIPS sample.
/trunk/samples/mips-unknown-elf/crosstool.config | 239 239 0 0 ++++++++++++++++++++++++++++++
/trunk/samples/mips-unknown-elf/reported.by | 3 3 0 0 +
2 files changed, 242 insertions(+)
1 # This file contains the common configuration options
2 # that apply to both glibc and eglibc.
5 # the symlink is a hack around the fact that mconf can not parse
6 # the same file more than once, and errors out if it is the case.
7 # If mconf is updated to accept multiple inclusion of the same
8 # file, then the symlink can go (and the includers be updated).
10 comment "glibc/eglibc common options"
12 config LIBC_GLIBC_EXTRA_CONFIG
17 Extra flags to pass onto ./configure when configuring.
19 Eg.: --enable-static-nss
21 config LIBC_GLIBC_EXTRA_CFLAGS
23 prompt "extra target CFLAGS"
26 Extra target CFLAGS to use when building.
28 config LIBC_EXTRA_CC_ARGS
30 prompt "gcc extra flags"
33 Extra flags to pass gcc when building.
35 Seldom used, except for sparc64 which seems to need the flag -64
36 to be passed onto gcc.
38 config LIBC_GLIBC_USE_PORTS
40 prompt "Use the ports addon"
43 The ports addon contains some architecture ports that are not available
44 in the official distribution.
46 For example, this is the case for ARM with for 2.4 and above.
48 Say n only if you're sure that your architecture is in the official
49 distribution for your chosen version.
51 config LIBC_ADDONS_LIST
56 Extra addons to include. Space separated list.
58 You need to specify neither linuxthreads nor nptl, as they are added
59 automagically for you depending on the threading model you choosed
62 Eg.: crypt (for very old libces)
68 prompt "Minimum supported kernel version"
69 default LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS
71 config LIBC_GLIBC_KERNEL_VERSION_NONE
73 prompt "Let ./configure decide"
75 Let ./configure decide what minimum kernel version glibc/eglibc
76 will be able to run against.
78 This will inclde legacy compatibility code for older kernels in
79 the C library, thus ensuring that it will run on a large number
82 The minimum kernel version supported will be dependent upon the
83 target you build for. For example:
84 alpha*-*-linux-gnu Requires Linux 2.6.9 for NPTL
85 sh[34]-*-linux-gnu Requires Linux 2.6.11
86 powerpc* Requires Linux 2.4.19
87 arm*-*-linux-*gnueabi Requires Linux 2.6.16
89 config LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS
91 prompt "Same as kernel headers (default)"
93 Normaly, you'll want glibc/eglibc to run against the same kernel
94 version as the one used for the headers.
98 If enabled, crosstool-ng will use the chosen version of kernel
99 headers for the glibc minimum kernel version supported, which is
100 what gets passed to "--enable-kernel=" when configuring glibc.
102 Enabling this will ensure that no legacy compatibility code for
103 older kernels is built into your C libraries, but it will
104 be unable to run on kernel versions older than whichever kernel
105 headers version you've built the toolchain for.
107 If you know for sure that your toolchain will never need to build
108 applications that will run under a kernel version older than your
109 chosen kernel headers version (CT_KERNEL_VERSION), you can choose
112 config LIBC_GLIBC_KERNEL_VERSION_CHOSEN
114 prompt "Specific kernel version"
116 Specify the earliest Linux kernel version you want glibc to
117 include support for. This does not have to match the kernel
118 headers version used for your toolchain. This controls what is
119 passed to the "--enable-kernel=" option to the glibc configure
122 If you want to be able to statically link programs with your
123 toolchain's C library, make sure this kernel version is lower than
124 all kernels you wish to support to avoid "FATAL: kernel too old"
125 errors. The higher the version you specify, the less legacy code
126 will be built into libc.
128 Most people can leave this at the default value of "2.6.9".
130 if LIBC_GLIBC_KERNEL_VERSION_CHOSEN
132 config LIBC_GLIBC_MIN_KERNEL_VERSION
134 prompt "Minimum kernel version to support"
137 Enter here the lowest kernel version glibc/eglibc will be able to
140 The minimum kernel version supported will be dependent upon the
141 target you build for. For example:
142 alpha*-*-linux-gnu Requires Linux 2.6.9 for NPTL
143 sh[34]-*-linux-gnu Requires Linux 2.6.11
144 powerpc* Requires Linux 2.4.19
145 arm*-*-linux-*gnueabi Requires Linux 2.6.16
147 Note that no sanity check is performed by crosstool-NG to ensure
148 that the value you enter here is appropriate for your target.
150 endif # LIBC_GLIBC_KERNEL_VERSION_CHOSEN
154 config LIBC_GLIBC_MIN_KERNEL
156 default "" if LIBC_GLIBC_KERNEL_VERSION_NONE
157 default KERNEL_VERSION if LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS
158 default LIBC_GLIBC_MIN_KERNEL_VERSION if LIBC_GLIBC_USE_HEADERS_MIN_KERNEL