7 prompt "binutils version"
8 # Don't remove next line
9 # CT_INSERT_VERSION_BELOW
11 config BINUTILS_V_2_22
13 prompt "2.22 (EXPERIMENTAL)"
14 depends on EXPERIMENTAL
15 select BINUTILS_2_22_or_later
17 config BINUTILS_V_2_21_53
19 prompt "2.21.53 (EXPERIMENTAL)"
20 depends on EXPERIMENTAL
21 select BINUTILS_2_21_or_later
23 config BINUTILS_V_2_21_1a
26 select BINUTILS_2_21_or_later
28 config BINUTILS_V_2_20_1a
31 select BINUTILS_2_20_or_later
33 config BINUTILS_V_2_19_1a
36 select BINUTILS_2_19_or_later
38 config BINUTILS_V_2_18a
41 select BINUTILS_2_18_or_later
43 config BINUTILS_V_2_17a
45 prompt "2.17a (OBSOLETE)"
48 config BINUTILS_V_2_16_1a
50 prompt "2.16.1a (OBSOLETE)"
53 config BINUTILS_CUSTOM
55 prompt "Custom binutils"
56 depends on EXPERIMENTAL
57 select BINUTILS_2_22_or_later
63 config BINUTILS_CUSTOM_LOCATION
65 prompt "Full path to custom binutils source"
68 Enter the path to the directory (or tarball) of your source for binutils,
69 or leave blank to use default CT_CUSTOM_LOCATION_ROOT_DIR/binutils
71 endif # BINUTILS_CUSTOM
73 config BINUTILS_VERSION
75 # Don't remove next line
76 # CT_INSERT_VERSION_STRING_BELOW
77 default "2.22" if BINUTILS_V_2_22
78 default "2.21.53" if BINUTILS_V_2_21_53
79 default "2.21.1a" if BINUTILS_V_2_21_1a
80 default "2.20.1a" if BINUTILS_V_2_20_1a
81 default "2.19.1a" if BINUTILS_V_2_19_1a
82 default "2.18a" if BINUTILS_V_2_18a
83 default "2.17a" if BINUTILS_V_2_17a
84 default "2.16.1a" if BINUTILS_V_2_16_1a
85 default "custom" if BINUTILS_CUSTOM
87 config BINUTILS_2_22_or_later
89 select BINUTILS_2_21_or_later
90 select BINUTILS_HAS_GOLD
91 select BINUTILS_HAS_PLUGINS
93 config BINUTILS_2_21_or_later
95 select BINUTILS_2_20_or_later
96 select BINUTILS_HAS_GOLD
97 select BINUTILS_HAS_PLUGINS
99 config BINUTILS_2_20_or_later
101 select BINUTILS_2_19_or_later
103 config BINUTILS_2_19_or_later
105 select BINUTILS_2_18_or_later
107 config BINUTILS_2_18_or_later
109 select BINUTILS_HAS_PKGVERSION_BUGURL
110 select BINUTILS_HAS_HASH_STYLE
112 config BINUTILS_HAS_HASH_STYLE
115 config BINUTILS_HAS_GOLD
118 # gold only suports the listed architectures
119 config BINUTILS_GOLD_SUPPORTS_ARCH
121 default y if ARCH_arm
122 default y if ARCH_x86
124 config BINUTILS_HAS_PLUGINS
127 config BINUTILS_HAS_PKGVERSION_BUGURL
130 # Force using the BFD linker if needed
131 # This is the case for some C libraries (eg. glibc and
132 # eglibc at least) and affected components can select this
133 config BINUTILS_FORCE_LD_BFD
138 prompt "Linkers to enable"
140 config BINUTILS_LINKER_LD
144 The historical, bfd linker.
146 config BINUTILS_LINKER_GOLD
149 depends on BINUTILS_HAS_GOLD
150 depends on BINUTILS_GOLD_SUPPORTS_ARCH
151 depends on ! BINUTILS_FORCE_LD_BFD
152 depends on EXPERIMENTAL
153 select BINUTILS_GOLD_INSTALLED
155 gold is a new, optimised, multi-threaded linker with support
156 for plugins. Designed to be a drop-in replacement for the
157 original linker, ld, it can be much faster, with a 5:1 or
158 bigger ratio being not uncommon, YMMV.
160 config BINUTILS_LINKER_LD_GOLD
163 depends on BINUTILS_HAS_GOLD
164 depends on BINUTILS_GOLD_SUPPORTS_ARCH
165 depends on EXPERIMENTAL
166 select BINUTILS_GOLD_INSTALLED
167 select BINUTILS_LINKER_BOTH
169 Both the historical ld and the new gold linkers will be
170 installed, with ld being the default linker used.
172 See help for gold, above.
174 config BINUTILS_LINKER_GOLD_LD
177 depends on BINUTILS_HAS_GOLD
178 depends on BINUTILS_GOLD_SUPPORTS_ARCH
179 depends on EXPERIMENTAL
180 select BINUTILS_GOLD_INSTALLED
181 select BINUTILS_LINKER_BOTH
182 select BINUTILS_LD_WRAPPER if BINUTILS_FORCE_LD_BFD
184 Both the historical ld and the new gold linkers will be
185 installed, with gold being the default linker used.
187 See help for gold, above.
189 endchoice # Enable linkers
191 if BINUTILS_LINKER_GOLD
192 comment "WARNING! gold is not capable of"
193 comment "| building glibc/eglibc!"
194 endif # BINUTILS_LINKER_GOLD
196 config BINUTILS_GOLD_INSTALLED
199 config BINUTILS_GOLD_THREADS
201 prompt "| Enable threaded gold"
202 depends on BINUTILS_GOLD_INSTALLED
204 When configured with threads, gold can link in parallel,
205 possibly cooperating with a make jobserver.
207 config BINUTILS_LINKER_BOTH
210 config BINUTILS_LINKERS_LIST
212 default "ld" if BINUTILS_LINKER_LD
213 default "gold" if BINUTILS_LINKER_GOLD
214 default "ld,gold" if BINUTILS_LINKER_LD_GOLD
215 default "gold,ld" if BINUTILS_LINKER_GOLD_LD
217 config BINUTILS_LD_WRAPPER
219 prompt "| Add ld wrapper"
220 depends on BINUTILS_LINKER_BOTH
222 Add an ld wrapper that calls to either gold or ld.
224 By default, the wrapper will call to the default wrapper,
225 but if you set the environment variable CTNG_LD_IS, you
226 can change which linker will get called:
227 CTNG_LD_IS=gold will unconditionally call the gold linker
228 CTNG_LD_IS=bfd will unconditionally call the old bfd ld linker
230 config BINUTILS_LINKER_DEFAULT
232 default "bfd" if BINUTILS_LINKER_LD || BINUTILS_LINKER_LD_GOLD
233 default "gold" if BINUTILS_LINKER_GOLD || BINUTILS_LINKER_GOLD_LD
235 config BINUTILS_PLUGINS
237 prompt "Enable support for plugins"
238 depends on BINUTILS_HAS_PLUGINS
239 depends on ! STATIC_TOOLCHAIN
241 binutils can be extended through the use of plugins.
242 Especially, gold can use the lto-plugin, as installed
243 by gcc, to handle LTO.
245 config BINUTILS_EXTRA_CONFIG_ARRAY
247 prompt "binutils extra config"
250 Extra flags passed onto ./configure when configuring
252 You can enter multiple arguments here, and arguments can contain spaces
253 if they are properly quoted (or escaped, but prefer quotes). Eg.:
254 --with-foo="1st arg with 4 spaces" --with-bar=2nd-arg-without-space
256 config BINUTILS_FOR_TARGET
258 prompt "binutils libraries for the target"
259 depends on ! BARE_METAL
262 Some utilities may need binutils libraries to be available on
263 the target, eg. oprofile.
265 if BINUTILS_FOR_TARGET
267 config BINUTILS_FOR_TARGET_IBERTY
272 config BINUTILS_FOR_TARGET_BFD
277 endif # BINUTILS_FOR_TARGET