samples: add new mipsel-sde-elf sample.
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
[yann.morin.1998@anciens.enib.fr: add pointer to ML thread]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
7 prompt "binutils version"
8 # Don't remove next line
9 # CT_INSERT_VERSION_BELOW
11 config BINUTILS_V_2_21_1a
14 select BINUTILS_2_21_or_later
16 config BINUTILS_V_2_20_1a
19 select BINUTILS_2_20_or_later
21 config BINUTILS_V_2_19_1a
24 select BINUTILS_2_19_or_later
26 config BINUTILS_V_2_18a
29 select BINUTILS_2_18_or_later
31 config BINUTILS_V_2_17a
33 prompt "2.17a (OBSOLETE)"
36 config BINUTILS_V_2_16_1a
38 prompt "2.16.1a (OBSOLETE)"
43 config BINUTILS_VERSION
45 # Don't remove next line
46 # CT_INSERT_VERSION_STRING_BELOW
47 default "2.21.1a" if BINUTILS_V_2_21_1a
48 default "2.20.1a" if BINUTILS_V_2_20_1a
49 default "2.19.1a" if BINUTILS_V_2_19_1a
50 default "2.18a" if BINUTILS_V_2_18a
51 default "2.17a" if BINUTILS_V_2_17a
52 default "2.16.1a" if BINUTILS_V_2_16_1a
54 config BINUTILS_2_21_or_later
56 select BINUTILS_2_20_or_later
57 select BINUTILS_HAS_GOLD
58 select BINUTILS_HAS_PLUGINS
60 config BINUTILS_2_20_or_later
62 select BINUTILS_2_19_or_later
64 config BINUTILS_2_19_or_later
66 select BINUTILS_2_18_or_later
68 config BINUTILS_2_18_or_later
70 select BINUTILS_HAS_PKGVERSION_BUGURL
72 config BINUTILS_HAS_GOLD
75 config BINUTILS_GOLD_SUPPORTS_ARCH
78 config BINUTILS_HAS_PLUGINS
81 config BINUTILS_HAS_PKGVERSION_BUGURL
84 # Only these architectures have support in gold
86 select BINUTILS_GOLD_SUPPORTS_ARCH
89 select BINUTILS_GOLD_SUPPORTS_ARCH
91 # Force using the BFD linker if needed
92 # This is the case for some C libraries (eg. glibc and
93 # eglibc at least) and affected components can select this
94 config BINUTILS_FORCE_LD_BFD
99 prompt "Linkers to enable"
101 config BINUTILS_LINKER_LD
105 The historical, bfd linker.
107 config BINUTILS_LINKER_GOLD
110 depends on BINUTILS_HAS_GOLD
111 depends on BINUTILS_GOLD_SUPPORTS_ARCH
112 depends on ! BINUTILS_FORCE_LD_BFD
113 depends on EXPERIMENTAL
114 select BINUTILS_GOLD_INSTALLED
116 gold is a new, optimised, multi-threaded linker with support
117 for plugins. Designed to be a drop-in replacement for the
118 original linker, ld, it can be much faster, with a 5:1 or
119 bigger ratio being not uncommon, YMMV.
121 config BINUTILS_LINKER_LD_GOLD
124 depends on BINUTILS_HAS_GOLD
125 depends on BINUTILS_GOLD_SUPPORTS_ARCH
126 depends on EXPERIMENTAL
127 select BINUTILS_GOLD_INSTALLED
128 select BINUTILS_LINKER_BOTH
130 Both the historical ld and the new gold linkers will be
131 installed, with ld being the default linker used.
133 See help for gold, above.
135 config BINUTILS_LINKER_GOLD_LD
138 depends on BINUTILS_HAS_GOLD
139 depends on BINUTILS_GOLD_SUPPORTS_ARCH
140 depends on EXPERIMENTAL
141 select BINUTILS_GOLD_INSTALLED
142 select BINUTILS_LINKER_BOTH
143 select BINUTILS_LD_WRAPPER if BINUTILS_FORCE_LD_BFD
145 Both the historical ld and the new gold linkers will be
146 installed, with gold being the default linker used.
148 See help for gold, above.
150 endchoice # Enable linkers
152 if BINUTILS_LINKER_GOLD
153 comment "WARNING! gold is not capable of"
154 comment "| building glibc/eglibc!"
155 endif # BINUTILS_LINKER_GOLD
157 config BINUTILS_GOLD_INSTALLED
160 config BINUTILS_GOLD_THREADS
162 prompt "| Enable threaded gold"
163 depends on BINUTILS_GOLD_INSTALLED
165 When configured with threads, gold can link in parallel,
166 possibly cooperating with a make jobserver.
168 config BINUTILS_LINKER_BOTH
171 config BINUTILS_LINKERS_LIST
173 default "ld" if BINUTILS_LINKER_LD
174 default "gold" if BINUTILS_LINKER_GOLD
175 default "ld,gold" if BINUTILS_LINKER_LD_GOLD
176 default "gold,ld" if BINUTILS_LINKER_GOLD_LD
178 config BINUTILS_LD_WRAPPER
180 prompt "| Add ld wrapper"
181 depends on BINUTILS_LINKER_BOTH
183 Add an ld wrapper that calls to either gold or ld.
185 By default, the wrapper will call to the default wrapper,
186 but if you set the environment variable CTNG_LD_IS, you
187 can change which linker will get called:
188 CTNG_LD_IS=gold will unconditionally call the gold linker
189 CTNG_LD_IS=bfd will unconditionally call the old bfd ld linker
191 config BINUTILS_LINKER_DEFAULT
193 default "bfd" if BINUTILS_LINKER_LD || BINUTILS_LINKER_LD_GOLD
194 default "gold" if BINUTILS_LINKER_GOLD || BINUTILS_LINKER_GOLD_LD
196 config BINUTILS_PLUGINS
198 prompt "Enable support for plugins"
199 depends on BINUTILS_HAS_PLUGINS
200 depends on ! STATIC_TOOLCHAIN
202 binutils can be extended through the use of plugins.
203 Especially, gold can use the lto-plugin, as installed
204 by gcc, to handle LTO.
206 config BINUTILS_EXTRA_CONFIG_ARRAY
208 prompt "binutils extra config"
211 Extra flags passed onto ./configure when configuring
213 You can enter multiple arguments here, and arguments can contain spaces
214 if they are properly quoted (or escaped, but prefer quotes). Eg.:
215 --with-foo="1st arg with 4 spaces" --with-bar=2nd-arg-without-space
217 config BINUTILS_FOR_TARGET
219 prompt "binutils libraries for the target"
220 depends on ! BARE_METAL
223 Some utilities may need binutils libraries to be available on
224 the target, eg. oprofile.
226 if BINUTILS_FOR_TARGET
228 config BINUTILS_FOR_TARGET_IBERTY
233 config BINUTILS_FOR_TARGET_BFD
238 endif # BINUTILS_FOR_TARGET