config/binutils/binutils.in
author Bryan Hundven <bryanhundven@gmail.com>
Thu Dec 09 18:54:37 2010 +0100 (2010-12-09)
changeset 2207 b268256e4a08
parent 2012 aefc8799ef0c
child 2226 13e4f7126cf7
permissions -rw-r--r--
config: add option to build statically linked toolchain

Add a config option to statically build the host tools.
Impacted tools can use that option to decide wether to build
statically or shared.

For now, no tool uses it, but they'll be added one at a time
in the next commits.

Signed-off-by: "Bryan Hundven" <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     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_20_1
    12     bool
    13     prompt "2.20.1"
    14 
    15 config BINUTILS_V_2_20
    16     bool
    17     prompt "2.20"
    18 
    19 config BINUTILS_V_2_19_1
    20     bool
    21     prompt "2.19.1"
    22 
    23 config BINUTILS_V_2_19
    24     bool
    25     prompt "2.19"
    26 
    27 config BINUTILS_V_2_18
    28     bool
    29     prompt "2.18"
    30 
    31 config BINUTILS_V_2_17
    32     bool
    33     prompt "2.17 (OBSOLETE)"
    34     depends on OBSOLETE
    35 
    36 config BINUTILS_V_2_16_1
    37     bool
    38     prompt "2.16.1 (OBSOLETE)"
    39     depends on OBSOLETE
    40 
    41 endchoice
    42 
    43 config BINUTILS_VERSION
    44     string
    45 # Don't remove next line
    46 # CT_INSERT_VERSION_STRING_BELOW
    47     default "2.20.1" if BINUTILS_V_2_20_1
    48     default "2.20" if BINUTILS_V_2_20
    49     default "2.19.1" if BINUTILS_V_2_19_1
    50     default "2.19" if BINUTILS_V_2_19
    51     default "2.18" if BINUTILS_V_2_18
    52     default "2.17" if BINUTILS_V_2_17
    53     default "2.16.1" if BINUTILS_V_2_16_1
    54 
    55 config BINUTILS_EXTRA_CONFIG
    56     string
    57     prompt "binutils extra config"
    58     default ""
    59     help
    60       Extra flags passed onto ./configure when configuring
    61 
    62 config BINUTILS_FOR_TARGET
    63     bool
    64     prompt "binutils libraries for the target"
    65     depends on ! BARE_METAL
    66     depends on ! BACKEND
    67     default n
    68     help
    69       Some utilities may need binutils libraries to be available on
    70       the target, eg. oprofile.
    71 
    72 if BINUTILS_FOR_TARGET
    73 
    74 config BINUTILS_FOR_TARGET_IBERTY
    75     bool
    76     prompt "libiberty"
    77     default y
    78 
    79 config BINUTILS_FOR_TARGET_BFD
    80     bool
    81     prompt "libbfd"
    82     default y
    83 
    84 endif # BINUTILS_FOR_TARGET