config/libc/glibc.in
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Thu Jan 24 22:21:19 2013 +0100 (2013-01-24)
changeset 3174 239ea86a47f6
parent 3142 6569f6a9060c
child 3242 009261a930fc
permissions -rw-r--r--
cc/gcc: remove 'sub-level' version form symbols

Now we use defconfig files to store the samples, we have to be a bit more
conservatives in the symbols names, so as to avoid gigantic version bumps
when updating sub-level versions from a package.

For example (using fictitious versions):
- in crosstool-NG 1.17.0, we choose:
- latest gcc is gcc-linaro-4.7-2012.10, which is the default for the
choice in the menuconfig
- gcc-linaro-4.6-2012.10 is selected
- so, sample has an explicit symbol for the selected gcc version, as it
is not the default
- we update to crosstool-NG 1.18.0:
- latest gcc version is gcc-linaro-4.7-2013.01
- gcc-linaro-46 has been updated to gcc-linaro-4.6-2013.01
- as the sample now has no *valid* symbol to set the gcc version, the
default is used, while we would have expected to still use the 4.6
release from linaro, not the 4.7

Get rid of sub-level (ie. the third digit sequence in versions) from the
symbols for linaro versions.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 # glibc options
     2 
     3 ## depends on ! WINDOWS && ! BARE_METAL && ARCH_USE_MMU
     4 ##
     5 ## select LIBC_SUPPORT_NPTL
     6 ## select CC_CORE_PASSES_NEEDED
     7 ##
     8 ## help The de-facto standard for Linux distributions.
     9 ## help Feature-rich, but large...  Most usefull for desktop-like systems.
    10 
    11 choice
    12     bool
    13     prompt "glibc version"
    14 # Don't remove next line
    15 # CT_INSERT_VERSION_BELOW
    16 
    17 config LIBC_GLIBC_V_2_17
    18     bool
    19     prompt "2.17"
    20 
    21 config LIBC_GLIBC_V_2_16_0
    22     bool
    23     prompt "2.16.0"
    24 
    25 config LIBC_GLIBC_V_2_15
    26     bool
    27     prompt "2.15"
    28 
    29 config LIBC_GLIBC_V_2_14_1
    30     bool
    31     prompt "2.14.1"
    32 
    33 config LIBC_GLIBC_V_2_14
    34     bool
    35     prompt "2.14"
    36 
    37 config LIBC_GLIBC_V_2_13
    38     bool
    39     prompt "2.13"
    40 
    41 config LIBC_GLIBC_V_2_12_2
    42     bool
    43     prompt "2.12.2"
    44 
    45 config LIBC_GLIBC_V_2_12_1
    46     bool
    47     prompt "2.12.1"
    48 
    49 config LIBC_GLIBC_V_2_11_1
    50     bool
    51     prompt "2.11.1"
    52 
    53 config LIBC_GLIBC_V_2_11
    54     bool
    55     prompt "2.11"
    56 
    57 config LIBC_GLIBC_V_2_10_1
    58     bool
    59     prompt "2.10.1"
    60     select LIBC_GLIBC_USE_PORTS
    61 
    62 config LIBC_GLIBC_V_2_9
    63     bool
    64     prompt "2.9"
    65 
    66 config LIBC_GLIBC_V_2_8
    67     bool
    68     prompt "2.8"
    69 
    70 endchoice
    71 
    72 config LIBC_VERSION
    73     string
    74 # Don't remove next line
    75 # CT_INSERT_VERSION_STRING_BELOW
    76     default "2.17" if LIBC_GLIBC_V_2_17
    77     default "2.16.0" if LIBC_GLIBC_V_2_16_0
    78     default "2.15" if LIBC_GLIBC_V_2_15
    79     default "2.14.1" if LIBC_GLIBC_V_2_14_1
    80     default "2.14" if LIBC_GLIBC_V_2_14
    81     default "2.13" if LIBC_GLIBC_V_2_13
    82     default "2.12.2" if LIBC_GLIBC_V_2_12_2
    83     default "2.12.1" if LIBC_GLIBC_V_2_12_1
    84     default "2.11.1" if LIBC_GLIBC_V_2_11_1
    85     default "2.11" if LIBC_GLIBC_V_2_11
    86     default "2.10.1" if LIBC_GLIBC_V_2_10_1
    87     default "2.9" if LIBC_GLIBC_V_2_9
    88     default "2.8" if LIBC_GLIBC_V_2_8