config/binutils/binutils.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Nov 23 21:35:28 2010 +0100 (2010-11-23)
branch1.9
changeset 2198 6d909657dbdf
parent 2012 aefc8799ef0c
child 2226 13e4f7126cf7
permissions -rw-r--r--
scripts/xldd: better find sysroot with old gcc

Only starting with 4.4 does gcc have a -print-sysroot option.
For 4.3 or before, we have to play some tricks:
- ask gcc where libc.so is,
(we expect it in ${sysroot}/usr/lib/libc.so)
- trim /usr/lib/libc.so from the result

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from aa2305c5b2a57fbcda9a1b5bb5fb3a476ac49a13)
     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