2009-05-20 20:13:13 +00:00
|
|
|
# binutils options
|
|
|
|
|
|
|
|
comment "GNU binutils"
|
|
|
|
|
|
|
|
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
|
|
|
|
2011-11-28 20:27:08 +00:00
|
|
|
config BINUTILS_V_2_22
|
|
|
|
bool
|
|
|
|
prompt "2.22 (EXPERIMENTAL)"
|
|
|
|
depends on EXPERIMENTAL
|
|
|
|
select BINUTILS_2_22_or_later
|
|
|
|
|
2011-09-28 02:29:11 +00:00
|
|
|
config BINUTILS_V_2_21_53
|
|
|
|
bool
|
|
|
|
prompt "2.21.53 (EXPERIMENTAL)"
|
|
|
|
depends on EXPERIMENTAL
|
|
|
|
select BINUTILS_2_21_or_later
|
|
|
|
|
2011-09-11 17:54:57 +00:00
|
|
|
config BINUTILS_V_2_21_1a
|
|
|
|
bool
|
|
|
|
prompt "2.21.1a"
|
|
|
|
select BINUTILS_2_21_or_later
|
|
|
|
|
2011-09-11 16:18:53 +00:00
|
|
|
config BINUTILS_V_2_20_1a
|
2010-07-09 13:53:49 +00:00
|
|
|
bool
|
2011-09-11 16:18:53 +00:00
|
|
|
prompt "2.20.1a"
|
2011-05-31 18:39:42 +00:00
|
|
|
select BINUTILS_2_20_or_later
|
2010-07-09 13:53:49 +00:00
|
|
|
|
2011-09-11 16:18:53 +00:00
|
|
|
config BINUTILS_V_2_19_1a
|
2009-05-20 20:13:13 +00:00
|
|
|
bool
|
2011-09-11 16:18:53 +00:00
|
|
|
prompt "2.19.1a"
|
2011-05-31 18:39:42 +00:00
|
|
|
select BINUTILS_2_19_or_later
|
2009-05-20 20:13:13 +00:00
|
|
|
|
2011-09-11 16:18:53 +00:00
|
|
|
config BINUTILS_V_2_18a
|
2009-05-20 20:13:13 +00:00
|
|
|
bool
|
2011-09-11 16:18:53 +00:00
|
|
|
prompt "2.18a"
|
2011-05-31 18:39:42 +00:00
|
|
|
select BINUTILS_2_18_or_later
|
2009-05-20 20:13:13 +00:00
|
|
|
|
2011-09-11 16:18:53 +00:00
|
|
|
config BINUTILS_V_2_17a
|
2009-05-20 20:13:13 +00:00
|
|
|
bool
|
2011-09-11 16:18:53 +00:00
|
|
|
prompt "2.17a (OBSOLETE)"
|
2009-10-28 18:15:50 +00:00
|
|
|
depends on OBSOLETE
|
2009-05-20 20:13:13 +00:00
|
|
|
|
2011-09-11 16:18:53 +00:00
|
|
|
config BINUTILS_V_2_16_1a
|
2009-05-20 20:13:13 +00:00
|
|
|
bool
|
2011-09-11 16:18:53 +00:00
|
|
|
prompt "2.16.1a (OBSOLETE)"
|
2009-10-28 18:15:50 +00:00
|
|
|
depends on OBSOLETE
|
2009-05-20 20:13:13 +00:00
|
|
|
|
2012-10-11 04:39:41 +00:00
|
|
|
config BINUTILS_CUSTOM
|
|
|
|
bool
|
|
|
|
prompt "Custom binutils"
|
|
|
|
depends on EXPERIMENTAL
|
|
|
|
select BINUTILS_2_22_or_later
|
|
|
|
|
2009-05-20 20:13:13 +00:00
|
|
|
endchoice
|
|
|
|
|
2012-10-11 04:39:41 +00:00
|
|
|
if BINUTILS_CUSTOM
|
|
|
|
|
|
|
|
config BINUTILS_CUSTOM_LOCATION
|
|
|
|
string
|
|
|
|
prompt "Full path to custom binutils source"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Enter the path to the directory (or tarball) of your source for binutils,
|
|
|
|
or leave blank to use default CT_CUSTOM_LOCATION_ROOT_DIR/binutils
|
|
|
|
|
|
|
|
endif # BINUTILS_CUSTOM
|
|
|
|
|
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
|
2011-11-28 20:27:08 +00:00
|
|
|
default "2.22" if BINUTILS_V_2_22
|
2011-09-28 02:29:11 +00:00
|
|
|
default "2.21.53" if BINUTILS_V_2_21_53
|
2011-09-11 17:54:57 +00:00
|
|
|
default "2.21.1a" if BINUTILS_V_2_21_1a
|
2011-09-11 16:18:53 +00:00
|
|
|
default "2.20.1a" if BINUTILS_V_2_20_1a
|
|
|
|
default "2.19.1a" if BINUTILS_V_2_19_1a
|
|
|
|
default "2.18a" if BINUTILS_V_2_18a
|
|
|
|
default "2.17a" if BINUTILS_V_2_17a
|
|
|
|
default "2.16.1a" if BINUTILS_V_2_16_1a
|
2012-10-11 04:39:41 +00:00
|
|
|
default "custom" if BINUTILS_CUSTOM
|
2009-05-20 20:13:13 +00:00
|
|
|
|
2011-11-28 20:27:08 +00:00
|
|
|
config BINUTILS_2_22_or_later
|
|
|
|
bool
|
|
|
|
select BINUTILS_2_21_or_later
|
|
|
|
select BINUTILS_HAS_GOLD
|
|
|
|
select BINUTILS_HAS_PLUGINS
|
|
|
|
|
2010-12-28 18:07:21 +00:00
|
|
|
config BINUTILS_2_21_or_later
|
|
|
|
bool
|
2011-05-31 18:39:42 +00:00
|
|
|
select BINUTILS_2_20_or_later
|
2010-12-27 23:11:33 +00:00
|
|
|
select BINUTILS_HAS_GOLD
|
2011-01-02 12:56:05 +00:00
|
|
|
select BINUTILS_HAS_PLUGINS
|
2010-12-27 23:11:33 +00:00
|
|
|
|
2011-05-31 18:39:42 +00:00
|
|
|
config BINUTILS_2_20_or_later
|
|
|
|
bool
|
|
|
|
select BINUTILS_2_19_or_later
|
|
|
|
|
|
|
|
config BINUTILS_2_19_or_later
|
|
|
|
bool
|
|
|
|
select BINUTILS_2_18_or_later
|
|
|
|
|
|
|
|
config BINUTILS_2_18_or_later
|
|
|
|
bool
|
|
|
|
select BINUTILS_HAS_PKGVERSION_BUGURL
|
2012-04-30 15:28:50 +00:00
|
|
|
select BINUTILS_HAS_HASH_STYLE
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2011-04-04 23:17:58 +00:00
|
|
|
config BINUTILS_GOLD_SUPPORTS_ARCH
|
|
|
|
bool
|
|
|
|
|
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
|
|
|
|
|
2011-04-04 23:17:58 +00:00
|
|
|
# Only these architectures have support in gold
|
|
|
|
config ARCH_arm
|
|
|
|
select BINUTILS_GOLD_SUPPORTS_ARCH
|
|
|
|
|
|
|
|
config ARCH_x86
|
|
|
|
select BINUTILS_GOLD_SUPPORTS_ARCH
|
|
|
|
|
2011-04-04 23:02:28 +00:00
|
|
|
# Force using the BFD linker if needed
|
|
|
|
# This is the case for some C libraries (eg. glibc and
|
|
|
|
# eglibc at least) and affected components can select this
|
|
|
|
config BINUTILS_FORCE_LD_BFD
|
|
|
|
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"
|
|
|
|
depends on BINUTILS_HAS_GOLD
|
2011-04-03 21:44:57 +00:00
|
|
|
depends on BINUTILS_GOLD_SUPPORTS_ARCH
|
2011-04-04 23:02:28 +00:00
|
|
|
depends on ! BINUTILS_FORCE_LD_BFD
|
2010-12-27 23:11:33 +00:00
|
|
|
depends on EXPERIMENTAL
|
|
|
|
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"
|
|
|
|
depends on BINUTILS_HAS_GOLD
|
2011-04-03 21:44:57 +00:00
|
|
|
depends on BINUTILS_GOLD_SUPPORTS_ARCH
|
2010-12-27 23:11:33 +00:00
|
|
|
depends on EXPERIMENTAL
|
|
|
|
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.
|
|
|
|
|
|
|
|
See help for gold, above.
|
|
|
|
|
|
|
|
config BINUTILS_LINKER_GOLD_LD
|
|
|
|
bool
|
|
|
|
prompt "gold, ld"
|
|
|
|
depends on BINUTILS_HAS_GOLD
|
2011-04-03 21:44:57 +00:00
|
|
|
depends on BINUTILS_GOLD_SUPPORTS_ARCH
|
2010-12-27 23:11:33 +00:00
|
|
|
depends on EXPERIMENTAL
|
|
|
|
select BINUTILS_GOLD_INSTALLED
|
2010-12-29 17:19:40 +00:00
|
|
|
select BINUTILS_LINKER_BOTH
|
2011-04-04 23:02:28 +00:00
|
|
|
select BINUTILS_LD_WRAPPER if BINUTILS_FORCE_LD_BFD
|
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.
|
|
|
|
|
|
|
|
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"
|
|
|
|
comment "| building glibc/eglibc!"
|
|
|
|
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.
|
|
|
|
|
|
|
|
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
|
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
|