2009-05-20 20:13:13 +00:00
|
|
|
# binutils options
|
|
|
|
|
|
|
|
comment "GNU binutils"
|
|
|
|
|
2015-11-26 13:07:37 +00:00
|
|
|
config BINUTILS_CUSTOM
|
|
|
|
bool
|
|
|
|
prompt "Custom binutils"
|
|
|
|
depends on EXPERIMENTAL
|
2016-02-05 06:55:08 +00:00
|
|
|
select BINUTILS_2_26_or_later
|
2015-11-26 13:07:37 +00:00
|
|
|
help
|
|
|
|
The choosen binutils version shall be not downloaded. Instead use
|
|
|
|
a custom location to get the source.
|
|
|
|
|
|
|
|
if BINUTILS_CUSTOM
|
|
|
|
|
|
|
|
config BINUTILS_CUSTOM_LOCATION
|
|
|
|
string
|
|
|
|
prompt "Full path to custom binutils source"
|
|
|
|
help
|
|
|
|
Enter the path to the directory or tarball of your source for binutils.
|
|
|
|
|
|
|
|
If the path is a tarball, it should extract to: <name>-<version>/
|
|
|
|
where the name is this component, binutils, and the version is set
|
|
|
|
below in the custom version string.
|
|
|
|
|
|
|
|
config BINUTILS_CUSTOM_VERSION
|
|
|
|
string
|
|
|
|
prompt "Binutils Custom Version number"
|
|
|
|
help
|
|
|
|
Enter the version number for your custom binutils.
|
|
|
|
|
|
|
|
config BINUTILS_VERSION
|
|
|
|
string
|
|
|
|
default BINUTILS_CUSTOM_VERSION
|
|
|
|
|
|
|
|
endif # BINUTILS_CUSTOM
|
|
|
|
|
|
|
|
if ! BINUTILS_CUSTOM
|
|
|
|
|
2017-01-14 05:55:01 +00:00
|
|
|
config BINUTILS_SHOW_LINARO
|
2015-05-02 00:51:37 +00:00
|
|
|
bool
|
|
|
|
prompt "Show Linaro versions"
|
|
|
|
help
|
|
|
|
Linaro is maintaining some advanced/more stable/experimental versions
|
|
|
|
of binutils, especially for the ARM architecture.
|
2016-12-22 23:57:00 +00:00
|
|
|
|
2015-05-02 00:51:37 +00:00
|
|
|
Those versions have not been blessed by the binutils comunity (nor have they
|
|
|
|
been cursed either!), but they look to be pretty much stable, and even
|
|
|
|
more stable than the upstream versions. YMMV...
|
2016-12-22 23:57:00 +00:00
|
|
|
|
2015-05-02 00:51:37 +00:00
|
|
|
If you do not know what this Linaro stuff is, then simply say 'n' here,
|
|
|
|
and rest in peace. OTOH, if you know what you are doing, you will be
|
|
|
|
able to use and enjoy :-) the Linaro versions by saying 'y' here.
|
2016-12-22 23:57:00 +00:00
|
|
|
|
2015-05-02 00:51:37 +00:00
|
|
|
Linaro: http://www.linaro.org/
|
|
|
|
|
2009-05-20 20:13:13 +00:00
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "binutils version"
|
2009-09-13 16:38:06 +00:00
|
|
|
# Don't remove next line
|
|
|
|
# CT_INSERT_VERSION_BELOW
|
2009-05-20 20:13:13 +00:00
|
|
|
|
2016-12-22 23:57:00 +00:00
|
|
|
config BINUTILS_V_2_27
|
|
|
|
bool
|
|
|
|
prompt "2.27"
|
|
|
|
select BINUTILS_2_27_or_later
|
|
|
|
|
2016-02-05 06:55:08 +00:00
|
|
|
config BINUTILS_V_2_26
|
|
|
|
bool
|
|
|
|
prompt "2.26"
|
|
|
|
select BINUTILS_2_26_or_later
|
|
|
|
|
2015-08-23 22:12:43 +00:00
|
|
|
config BINUTILS_V_2_25_1
|
|
|
|
bool
|
2017-01-22 23:50:18 +00:00
|
|
|
prompt "2.25.1 (OBSOLETE)"
|
2015-08-23 22:12:43 +00:00
|
|
|
select BINUTILS_2_25_1_or_later
|
2017-01-22 23:50:18 +00:00
|
|
|
depends on OBSOLETE
|
2015-08-23 22:12:43 +00:00
|
|
|
|
2015-01-06 22:15:05 +00:00
|
|
|
config BINUTILS_LINARO_V_2_25
|
|
|
|
bool
|
2017-01-22 23:50:18 +00:00
|
|
|
prompt "linaro-2.25.0-2015.01-2 (OBSOLETE)"
|
2015-01-06 22:15:05 +00:00
|
|
|
select BINUTILS_2_25_or_later
|
2017-01-14 05:55:01 +00:00
|
|
|
depends on BINUTILS_SHOW_LINARO
|
2017-01-22 23:50:18 +00:00
|
|
|
depends on OBSOLETE
|
2015-01-06 22:15:05 +00:00
|
|
|
|
|
|
|
config BINUTILS_LINARO_V_2_24
|
|
|
|
bool
|
2017-01-22 23:50:18 +00:00
|
|
|
prompt "linaro-2.24.0-2014.11-2 (OBSOLETE)"
|
2015-01-06 22:15:05 +00:00
|
|
|
select BINUTILS_2_24_or_later
|
2017-01-14 05:55:01 +00:00
|
|
|
depends on BINUTILS_SHOW_LINARO
|
2017-01-22 23:50:18 +00:00
|
|
|
depends on OBSOLETE
|
2015-01-06 22:15:05 +00:00
|
|
|
|
2013-12-31 16:58:54 +00:00
|
|
|
config BINUTILS_V_2_24
|
|
|
|
bool
|
2017-01-22 23:50:18 +00:00
|
|
|
prompt "2.24 (OBSOLETE)"
|
2014-01-03 09:49:02 +00:00
|
|
|
select BINUTILS_2_24_or_later
|
2017-01-22 23:50:18 +00:00
|
|
|
depends on OBSOLETE
|
2013-12-31 16:58:54 +00:00
|
|
|
|
2017-01-12 02:47:15 +00:00
|
|
|
config BINUTILS_LINARO_V_2_23_2
|
|
|
|
bool
|
2017-01-22 23:50:18 +00:00
|
|
|
prompt "linaro-2.23.2-2013.10-4 (OBSOLETE)"
|
2017-01-12 02:47:15 +00:00
|
|
|
select BINUTILS_2_23_2_or_later
|
2017-01-14 05:55:01 +00:00
|
|
|
depends on BINUTILS_SHOW_LINARO
|
2017-01-22 23:50:18 +00:00
|
|
|
depends on OBSOLETE
|
2017-01-12 02:47:15 +00:00
|
|
|
|
2013-10-06 22:00:34 +00:00
|
|
|
config BINUTILS_V_2_23_2
|
|
|
|
bool
|
2017-01-22 23:50:18 +00:00
|
|
|
prompt "2.23.2 (OBSOLETE)"
|
2016-01-03 09:18:32 +00:00
|
|
|
select BINUTILS_2_23_2_or_later
|
2017-01-22 23:50:18 +00:00
|
|
|
depends on OBSOLETE
|
2009-05-20 20:13:13 +00:00
|
|
|
|
2015-09-05 19:15:49 +00:00
|
|
|
endchoice
|
|
|
|
|
2009-05-20 20:13:13 +00:00
|
|
|
config BINUTILS_VERSION
|
|
|
|
string
|
2009-09-13 16:38:06 +00:00
|
|
|
# Don't remove next line
|
|
|
|
# CT_INSERT_VERSION_STRING_BELOW
|
2016-12-22 23:58:11 +00:00
|
|
|
default "2.27" if BINUTILS_V_2_27
|
2016-02-05 06:55:08 +00:00
|
|
|
default "2.26" if BINUTILS_V_2_26
|
2015-08-23 22:12:43 +00:00
|
|
|
default "2.25.1" if BINUTILS_V_2_25_1
|
2015-01-06 22:15:05 +00:00
|
|
|
default "linaro-2.25.0-2015.01-2" if BINUTILS_LINARO_V_2_25
|
|
|
|
default "linaro-2.24.0-2014.11-2" if BINUTILS_LINARO_V_2_24
|
2013-12-31 16:58:54 +00:00
|
|
|
default "2.24" if BINUTILS_V_2_24
|
2017-01-12 02:47:15 +00:00
|
|
|
default "linaro-2.23.2-2013.10-4" if BINUTILS_LINARO_V_2_23_2
|
2013-10-06 22:00:34 +00:00
|
|
|
default "2.23.2" if BINUTILS_V_2_23_2
|
2009-05-20 20:13:13 +00:00
|
|
|
|
2015-11-26 13:07:37 +00:00
|
|
|
endif # ! BINUTILS_CUSTOM
|
|
|
|
|
2016-12-22 23:58:11 +00:00
|
|
|
config BINUTILS_2_27_or_later
|
|
|
|
bool
|
|
|
|
select BINUTILS_2_26_or_later
|
|
|
|
|
2016-02-05 06:55:08 +00:00
|
|
|
config BINUTILS_2_26_or_later
|
|
|
|
bool
|
|
|
|
select BINUTILS_2_25_1_or_later
|
|
|
|
|
2015-08-23 22:12:43 +00:00
|
|
|
config BINUTILS_2_25_1_or_later
|
|
|
|
bool
|
|
|
|
select BINUTILS_2_25_or_later
|
|
|
|
|
2015-01-02 00:19:11 +00:00
|
|
|
config BINUTILS_2_25_or_later
|
|
|
|
bool
|
|
|
|
select BINUTILS_2_24_or_later
|
|
|
|
|
2013-12-31 16:58:54 +00:00
|
|
|
config BINUTILS_2_24_or_later
|
|
|
|
bool
|
2016-01-03 09:18:32 +00:00
|
|
|
select BINUTILS_2_23_2_or_later
|
2013-01-24 21:42:33 +00:00
|
|
|
|
2016-01-03 09:18:32 +00:00
|
|
|
config BINUTILS_2_23_2_or_later
|
2011-11-28 20:27:08 +00:00
|
|
|
bool
|
2010-12-27 23:11:33 +00:00
|
|
|
select BINUTILS_HAS_GOLD
|
2012-04-30 15:28:50 +00:00
|
|
|
select BINUTILS_HAS_HASH_STYLE
|
2016-01-03 09:18:32 +00:00
|
|
|
select BINUTILS_HAS_PKGVERSION_BUGURL
|
|
|
|
select BINUTILS_HAS_PLUGINS
|
2012-04-30 15:28:50 +00:00
|
|
|
|
|
|
|
config BINUTILS_HAS_HASH_STYLE
|
|
|
|
bool
|
2011-05-31 18:39:42 +00:00
|
|
|
|
2010-12-27 23:11:33 +00:00
|
|
|
config BINUTILS_HAS_GOLD
|
|
|
|
bool
|
|
|
|
|
2012-11-19 20:45:09 +00:00
|
|
|
# gold only suports the listed architectures
|
2011-04-04 23:17:58 +00:00
|
|
|
config BINUTILS_GOLD_SUPPORTS_ARCH
|
|
|
|
bool
|
2012-11-19 20:45:09 +00:00
|
|
|
default y if ARCH_arm
|
|
|
|
default y if ARCH_x86
|
2011-04-04 23:17:58 +00:00
|
|
|
|
2015-10-20 07:35:36 +00:00
|
|
|
config BINUTILS_GOLD_SUPPORT
|
|
|
|
bool
|
|
|
|
default y
|
|
|
|
depends on BINUTILS_HAS_GOLD
|
|
|
|
depends on BINUTILS_GOLD_SUPPORTS_ARCH
|
|
|
|
depends on ! STATIC_TOOLCHAIN
|
|
|
|
|
2011-01-02 12:56:05 +00:00
|
|
|
config BINUTILS_HAS_PLUGINS
|
|
|
|
bool
|
|
|
|
|
2011-05-31 18:39:42 +00:00
|
|
|
config BINUTILS_HAS_PKGVERSION_BUGURL
|
|
|
|
bool
|
|
|
|
|
2017-02-10 02:24:47 +00:00
|
|
|
# Force using the BFD linker if needed. There are two options:
|
|
|
|
# - For some C libraries (eg. glibc at least), BFD ld must be
|
|
|
|
# built and be selected by default.
|
|
|
|
# - For elf2flt, BFD ld must be the only linker built.
|
|
|
|
config BINUTILS_FORCE_LD_BFD_DEFAULT
|
|
|
|
bool
|
|
|
|
|
|
|
|
config BINUTILS_FORCE_LD_BFD_ONLY
|
2011-04-04 23:02:28 +00:00
|
|
|
bool
|
|
|
|
|
2010-12-27 23:11:33 +00:00
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "Linkers to enable"
|
|
|
|
|
|
|
|
config BINUTILS_LINKER_LD
|
|
|
|
bool
|
|
|
|
prompt "ld"
|
|
|
|
help
|
|
|
|
The historical, bfd linker.
|
|
|
|
|
|
|
|
config BINUTILS_LINKER_GOLD
|
|
|
|
bool
|
|
|
|
prompt "gold"
|
2015-10-20 07:35:36 +00:00
|
|
|
depends on BINUTILS_GOLD_SUPPORT
|
2017-02-10 02:24:47 +00:00
|
|
|
depends on !BINUTILS_FORCE_LD_BFD_DEFAULT && !BINUTILS_FORCE_LD_BFD_ONLY
|
2010-12-27 23:11:33 +00:00
|
|
|
select BINUTILS_GOLD_INSTALLED
|
|
|
|
help
|
|
|
|
gold is a new, optimised, multi-threaded linker with support
|
|
|
|
for plugins. Designed to be a drop-in replacement for the
|
|
|
|
original linker, ld, it can be much faster, with a 5:1 or
|
|
|
|
bigger ratio being not uncommon, YMMV.
|
|
|
|
|
|
|
|
config BINUTILS_LINKER_LD_GOLD
|
|
|
|
bool
|
|
|
|
prompt "ld, gold"
|
2017-02-10 02:24:47 +00:00
|
|
|
depends on !BINUTILS_FORCE_LD_BFD_ONLY
|
2015-10-20 07:35:36 +00:00
|
|
|
depends on BINUTILS_GOLD_SUPPORT
|
2010-12-27 23:11:33 +00:00
|
|
|
select BINUTILS_GOLD_INSTALLED
|
2010-12-29 17:19:40 +00:00
|
|
|
select BINUTILS_LINKER_BOTH
|
2010-12-27 23:11:33 +00:00
|
|
|
help
|
|
|
|
Both the historical ld and the new gold linkers will be
|
|
|
|
installed, with ld being the default linker used.
|
2016-12-22 23:57:00 +00:00
|
|
|
|
2010-12-27 23:11:33 +00:00
|
|
|
See help for gold, above.
|
|
|
|
|
|
|
|
config BINUTILS_LINKER_GOLD_LD
|
|
|
|
bool
|
|
|
|
prompt "gold, ld"
|
2017-02-10 02:24:47 +00:00
|
|
|
depends on !BINUTILS_FORCE_LD_BFD_ONLY
|
2015-10-20 07:35:36 +00:00
|
|
|
depends on BINUTILS_GOLD_SUPPORT
|
2010-12-27 23:11:33 +00:00
|
|
|
select BINUTILS_GOLD_INSTALLED
|
2010-12-29 17:19:40 +00:00
|
|
|
select BINUTILS_LINKER_BOTH
|
2017-02-10 02:24:47 +00:00
|
|
|
select BINUTILS_LD_WRAPPER if BINUTILS_FORCE_LD_BFD_DEFAULT
|
2010-12-27 23:11:33 +00:00
|
|
|
help
|
|
|
|
Both the historical ld and the new gold linkers will be
|
|
|
|
installed, with gold being the default linker used.
|
2016-12-22 23:57:00 +00:00
|
|
|
|
2010-12-27 23:11:33 +00:00
|
|
|
See help for gold, above.
|
|
|
|
|
|
|
|
endchoice # Enable linkers
|
|
|
|
|
2011-04-03 23:00:17 +00:00
|
|
|
if BINUTILS_LINKER_GOLD
|
|
|
|
comment "WARNING! gold is not capable of"
|
2015-01-28 06:43:25 +00:00
|
|
|
comment "| building glibc!"
|
2011-04-03 23:00:17 +00:00
|
|
|
endif # BINUTILS_LINKER_GOLD
|
|
|
|
|
2010-12-27 23:11:33 +00:00
|
|
|
config BINUTILS_GOLD_INSTALLED
|
|
|
|
bool
|
|
|
|
|
2011-01-02 12:52:16 +00:00
|
|
|
config BINUTILS_GOLD_THREADS
|
|
|
|
bool
|
|
|
|
prompt "| Enable threaded gold"
|
|
|
|
depends on BINUTILS_GOLD_INSTALLED
|
|
|
|
help
|
|
|
|
When configured with threads, gold can link in parallel,
|
|
|
|
possibly cooperating with a make jobserver.
|
|
|
|
|
2010-12-29 17:19:40 +00:00
|
|
|
config BINUTILS_LINKER_BOTH
|
|
|
|
bool
|
|
|
|
|
2010-12-27 23:11:33 +00:00
|
|
|
config BINUTILS_LINKERS_LIST
|
|
|
|
string
|
|
|
|
default "ld" if BINUTILS_LINKER_LD
|
|
|
|
default "gold" if BINUTILS_LINKER_GOLD
|
|
|
|
default "ld,gold" if BINUTILS_LINKER_LD_GOLD
|
|
|
|
default "gold,ld" if BINUTILS_LINKER_GOLD_LD
|
|
|
|
|
2010-12-29 17:19:40 +00:00
|
|
|
config BINUTILS_LD_WRAPPER
|
|
|
|
bool
|
|
|
|
prompt "| Add ld wrapper"
|
|
|
|
depends on BINUTILS_LINKER_BOTH
|
|
|
|
help
|
|
|
|
Add an ld wrapper that calls to either gold or ld.
|
2016-12-22 23:57:00 +00:00
|
|
|
|
2010-12-29 17:19:40 +00:00
|
|
|
By default, the wrapper will call to the default wrapper,
|
|
|
|
but if you set the environment variable CTNG_LD_IS, you
|
|
|
|
can change which linker will get called:
|
|
|
|
CTNG_LD_IS=gold will unconditionally call the gold linker
|
|
|
|
CTNG_LD_IS=bfd will unconditionally call the old bfd ld linker
|
|
|
|
|
|
|
|
config BINUTILS_LINKER_DEFAULT
|
|
|
|
string
|
2011-04-03 21:44:57 +00:00
|
|
|
default "bfd" if BINUTILS_LINKER_LD || BINUTILS_LINKER_LD_GOLD
|
|
|
|
default "gold" if BINUTILS_LINKER_GOLD || BINUTILS_LINKER_GOLD_LD
|
2010-12-28 18:07:21 +00:00
|
|
|
|
2011-01-02 12:56:05 +00:00
|
|
|
config BINUTILS_PLUGINS
|
|
|
|
bool
|
|
|
|
prompt "Enable support for plugins"
|
|
|
|
depends on BINUTILS_HAS_PLUGINS
|
2011-02-22 22:27:42 +00:00
|
|
|
depends on ! STATIC_TOOLCHAIN
|
2011-01-02 12:56:05 +00:00
|
|
|
help
|
|
|
|
binutils can be extended through the use of plugins.
|
|
|
|
Especially, gold can use the lto-plugin, as installed
|
|
|
|
by gcc, to handle LTO.
|
|
|
|
|
2011-05-18 21:00:46 +00:00
|
|
|
config BINUTILS_EXTRA_CONFIG_ARRAY
|
2009-05-20 20:13:13 +00:00
|
|
|
string
|
|
|
|
prompt "binutils extra config"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Extra flags passed onto ./configure when configuring
|
2016-12-22 23:57:00 +00:00
|
|
|
|
2011-05-18 21:42:57 +00:00
|
|
|
You can enter multiple arguments here, and arguments can contain spaces
|
|
|
|
if they are properly quoted (or escaped, but prefer quotes). Eg.:
|
|
|
|
--with-foo="1st arg with 4 spaces" --with-bar=2nd-arg-without-space
|
2009-05-20 20:13:13 +00:00
|
|
|
|
|
|
|
config BINUTILS_FOR_TARGET
|
|
|
|
bool
|
|
|
|
prompt "binutils libraries for the target"
|
|
|
|
depends on ! BARE_METAL
|
2010-03-05 17:19:25 +00:00
|
|
|
depends on ! BACKEND
|
2009-05-20 20:13:13 +00:00
|
|
|
help
|
|
|
|
Some utilities may need binutils libraries to be available on
|
|
|
|
the target, eg. oprofile.
|
|
|
|
|
|
|
|
if BINUTILS_FOR_TARGET
|
|
|
|
|
|
|
|
config BINUTILS_FOR_TARGET_IBERTY
|
|
|
|
bool
|
|
|
|
prompt "libiberty"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config BINUTILS_FOR_TARGET_BFD
|
|
|
|
bool
|
|
|
|
prompt "libbfd"
|
|
|
|
default y
|
|
|
|
|
|
|
|
endif # BINUTILS_FOR_TARGET
|