config/binutils/binutils.in
author "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Thu Aug 18 16:05:48 2011 +0200 (2011-08-18)
changeset 2612 a52574521bea
parent 2484 d1a8c2ae7946
child 2663 7179903f8d2e
permissions -rw-r--r--
debug/gdb: update GDB revisions

Update GDB with the latest available revisions.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
     1 # binutils options
     2 
     3 comment "GNU binutils"
     4 
     5 choice
     6     bool
     7     prompt "binutils version"
     8 # Don't remove next line
     9 # CT_INSERT_VERSION_BELOW
    10 
    11 config BINUTILS_V_2_21
    12     bool
    13     depends on EXPERIMENTAL
    14     prompt "2.21"
    15     select BINUTILS_2_21_or_later
    16 
    17 config BINUTILS_V_2_20_1
    18     bool
    19     prompt "2.20.1"
    20     select BINUTILS_2_20_or_later
    21 
    22 config BINUTILS_V_2_20
    23     bool
    24     prompt "2.20"
    25     select BINUTILS_2_20_or_later
    26 
    27 config BINUTILS_V_2_19_1
    28     bool
    29     prompt "2.19.1"
    30     select BINUTILS_2_19_or_later
    31 
    32 config BINUTILS_V_2_19
    33     bool
    34     prompt "2.19"
    35     select BINUTILS_2_19_or_later
    36 
    37 config BINUTILS_V_2_18
    38     bool
    39     prompt "2.18"
    40     select BINUTILS_2_18_or_later
    41 
    42 config BINUTILS_V_2_17
    43     bool
    44     prompt "2.17 (OBSOLETE)"
    45     depends on OBSOLETE
    46 
    47 config BINUTILS_V_2_16_1
    48     bool
    49     prompt "2.16.1 (OBSOLETE)"
    50     depends on OBSOLETE
    51 
    52 endchoice
    53 
    54 config BINUTILS_VERSION
    55     string
    56 # Don't remove next line
    57 # CT_INSERT_VERSION_STRING_BELOW
    58     default "2.21" if BINUTILS_V_2_21
    59     default "2.20.1" if BINUTILS_V_2_20_1
    60     default "2.20" if BINUTILS_V_2_20
    61     default "2.19.1" if BINUTILS_V_2_19_1
    62     default "2.19" if BINUTILS_V_2_19
    63     default "2.18" if BINUTILS_V_2_18
    64     default "2.17" if BINUTILS_V_2_17
    65     default "2.16.1" if BINUTILS_V_2_16_1
    66 
    67 config BINUTILS_2_21_or_later
    68     bool
    69     select BINUTILS_2_20_or_later
    70     select BINUTILS_HAS_GOLD
    71     select BINUTILS_HAS_PLUGINS
    72 
    73 config BINUTILS_2_20_or_later
    74     bool
    75     select BINUTILS_2_19_or_later
    76 
    77 config BINUTILS_2_19_or_later
    78     bool
    79     select BINUTILS_2_18_or_later
    80 
    81 config BINUTILS_2_18_or_later
    82     bool
    83     select BINUTILS_HAS_PKGVERSION_BUGURL
    84 
    85 config BINUTILS_HAS_GOLD
    86     bool
    87 
    88 config BINUTILS_GOLD_SUPPORTS_ARCH
    89     bool
    90 
    91 config BINUTILS_HAS_PLUGINS
    92     bool
    93 
    94 config BINUTILS_HAS_PKGVERSION_BUGURL
    95     bool
    96 
    97 # Only these architectures have support in gold
    98 config ARCH_arm
    99     select BINUTILS_GOLD_SUPPORTS_ARCH
   100 
   101 config ARCH_x86
   102     select BINUTILS_GOLD_SUPPORTS_ARCH
   103 
   104 # Force using the BFD linker if needed
   105 # This is the case for some C libraries (eg. glibc and
   106 # eglibc at least) and affected components can select this
   107 config BINUTILS_FORCE_LD_BFD
   108     bool
   109 
   110 choice
   111     bool
   112     prompt "Linkers to enable"
   113 
   114 config BINUTILS_LINKER_LD
   115     bool
   116     prompt "ld"
   117     help
   118       The historical, bfd linker.
   119 
   120 config BINUTILS_LINKER_GOLD
   121     bool
   122     prompt "gold"
   123     depends on BINUTILS_HAS_GOLD
   124     depends on BINUTILS_GOLD_SUPPORTS_ARCH
   125     depends on ! BINUTILS_FORCE_LD_BFD
   126     depends on EXPERIMENTAL
   127     select BINUTILS_GOLD_INSTALLED
   128     help
   129       gold is a new, optimised, multi-threaded linker with support
   130       for plugins. Designed to be a drop-in replacement for the
   131       original linker, ld, it can be much faster, with a 5:1 or
   132       bigger ratio being not uncommon, YMMV.
   133 
   134 config BINUTILS_LINKER_LD_GOLD
   135     bool
   136     prompt "ld, gold"
   137     depends on BINUTILS_HAS_GOLD
   138     depends on BINUTILS_GOLD_SUPPORTS_ARCH
   139     depends on EXPERIMENTAL
   140     select BINUTILS_GOLD_INSTALLED
   141     select BINUTILS_LINKER_BOTH
   142     help
   143       Both the historical ld and the new gold linkers will be
   144       installed, with ld being the default linker used.
   145       
   146       See help for gold, above.
   147 
   148 config BINUTILS_LINKER_GOLD_LD
   149     bool
   150     prompt "gold, ld"
   151     depends on BINUTILS_HAS_GOLD
   152     depends on BINUTILS_GOLD_SUPPORTS_ARCH
   153     depends on EXPERIMENTAL
   154     select BINUTILS_GOLD_INSTALLED
   155     select BINUTILS_LINKER_BOTH
   156     select BINUTILS_LD_WRAPPER if BINUTILS_FORCE_LD_BFD
   157     help
   158       Both the historical ld and the new gold linkers will be
   159       installed, with gold being the default linker used.
   160       
   161       See help for gold, above.
   162 
   163 endchoice # Enable linkers
   164 
   165 if BINUTILS_LINKER_GOLD
   166 comment "WARNING! gold is not capable of"
   167 comment "|         building glibc/eglibc!"
   168 endif # BINUTILS_LINKER_GOLD
   169 
   170 config BINUTILS_GOLD_INSTALLED
   171     bool
   172 
   173 config BINUTILS_GOLD_THREADS
   174     bool
   175     prompt "|  Enable threaded gold"
   176     depends on BINUTILS_GOLD_INSTALLED
   177     help
   178       When configured with threads, gold can link in parallel,
   179       possibly cooperating with a make jobserver.
   180 
   181 config BINUTILS_LINKER_BOTH
   182     bool
   183 
   184 config BINUTILS_LINKERS_LIST
   185     string
   186     default "ld"        if BINUTILS_LINKER_LD
   187     default "gold"      if BINUTILS_LINKER_GOLD
   188     default "ld,gold"   if BINUTILS_LINKER_LD_GOLD
   189     default "gold,ld"   if BINUTILS_LINKER_GOLD_LD
   190 
   191 config BINUTILS_LD_WRAPPER
   192     bool
   193     prompt "|  Add ld wrapper"
   194     depends on BINUTILS_LINKER_BOTH
   195     help
   196       Add an ld wrapper that calls to either gold or ld.
   197       
   198       By default, the wrapper will call to the default wrapper,
   199       but if you set the environment variable CTNG_LD_IS, you
   200       can change which linker will get called:
   201         CTNG_LD_IS=gold     will unconditionally call the gold linker
   202         CTNG_LD_IS=bfd      will unconditionally call the old bfd ld linker
   203 
   204 config BINUTILS_LINKER_DEFAULT
   205     string
   206     default "bfd"   if BINUTILS_LINKER_LD || BINUTILS_LINKER_LD_GOLD
   207     default "gold"  if BINUTILS_LINKER_GOLD || BINUTILS_LINKER_GOLD_LD
   208 
   209 config BINUTILS_PLUGINS
   210     bool
   211     prompt "Enable support for plugins"
   212     depends on BINUTILS_HAS_PLUGINS
   213     depends on ! STATIC_TOOLCHAIN
   214     help
   215       binutils can be extended through the use of plugins.
   216       Especially, gold can use the lto-plugin, as installed
   217       by gcc, to handle LTO.
   218 
   219 config BINUTILS_EXTRA_CONFIG_ARRAY
   220     string
   221     prompt "binutils extra config"
   222     default ""
   223     help
   224       Extra flags passed onto ./configure when configuring
   225       
   226       You can enter multiple arguments here, and arguments can contain spaces
   227       if they are properly quoted (or escaped, but prefer quotes). Eg.:
   228           --with-foo="1st arg with 4 spaces" --with-bar=2nd-arg-without-space
   229 
   230 config BINUTILS_FOR_TARGET
   231     bool
   232     prompt "binutils libraries for the target"
   233     depends on ! BARE_METAL
   234     depends on ! BACKEND
   235     help
   236       Some utilities may need binutils libraries to be available on
   237       the target, eg. oprofile.
   238 
   239 if BINUTILS_FOR_TARGET
   240 
   241 config BINUTILS_FOR_TARGET_IBERTY
   242     bool
   243     prompt "libiberty"
   244     default y
   245 
   246 config BINUTILS_FOR_TARGET_BFD
   247     bool
   248     prompt "libbfd"
   249     default y
   250 
   251 endif # BINUTILS_FOR_TARGET