config/binutils/binutils.in
author "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Tue May 31 16:27:39 2011 +0200 (2011-05-31)
changeset 2484 d1a8c2ae7946
parent 2469 3b08a7927e55
child 2488 58a28561f1bc
permissions -rw-r--r--
kconfig: remove useless 'default n'

kconfig bools are disabled by default, so specifying 'default n' is useless and
noisy. This patch removes all occurrences of 'default n'.

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