cc/gcc: remove 'sub-level' version form symbols
author"Yann E. MORIN" <yann.morin.1998@free.fr>
Thu Jan 24 22:21:19 2013 +0100 (2013-01-24)
changeset 3174239ea86a47f6
parent 3173 16fdf4cf35b5
child 3175 efad82bf7b9b
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>
config/cc/gcc.in
     1.1 --- a/config/cc/gcc.in	Thu Jan 24 22:42:33 2013 +0100
     1.2 +++ b/config/cc/gcc.in	Thu Jan 24 22:21:19 2013 +0100
     1.3 @@ -36,7 +36,7 @@
     1.4  # Don't remove next line
     1.5  # CT_INSERT_VERSION_BELOW
     1.6  
     1.7 -config CC_V_linaro_4_7_2013_01
     1.8 +config CC_V_linaro_4_7
     1.9      bool
    1.10      prompt "linaro-4.7-2013.01"
    1.11      depends on CC_GCC_SHOW_LINARO
    1.12 @@ -57,7 +57,7 @@
    1.13      prompt "4.7.0"
    1.14      select CC_GCC_4_7
    1.15  
    1.16 -config CC_V_linaro_4_6_2013_01
    1.17 +config CC_V_linaro_4_6
    1.18      bool
    1.19      prompt "linaro-4.6-2013.01"
    1.20      depends on CC_GCC_SHOW_LINARO
    1.21 @@ -83,7 +83,7 @@
    1.22      prompt "4.6.0"
    1.23      select CC_GCC_4_6
    1.24  
    1.25 -config CC_V_linaro_4_5_2012_03
    1.26 +config CC_V_linaro_4_5
    1.27      bool
    1.28      prompt "linaro-4.5-2012.03"
    1.29      depends on CC_GCC_SHOW_LINARO
    1.30 @@ -110,7 +110,7 @@
    1.31      select CC_GCC_4_5
    1.32  
    1.33  
    1.34 -config CC_V_linaro_4_4_2011_02_0
    1.35 +config CC_V_linaro_4_4
    1.36      bool
    1.37      prompt "linaro-4.4-2011.02-0"
    1.38      depends on CC_GCC_SHOW_LINARO
    1.39 @@ -381,21 +381,21 @@
    1.40      string
    1.41  # Don't remove next line
    1.42  # CT_INSERT_VERSION_STRING_BELOW
    1.43 -    default "linaro-4.7-2013.01" if CC_V_linaro_4_7_2013_01
    1.44 +    default "linaro-4.7-2013.01" if CC_V_linaro_4_7
    1.45      default "4.7.2" if CC_V_4_7_2
    1.46      default "4.7.1" if CC_V_4_7_1
    1.47      default "4.7.0" if CC_V_4_7_0
    1.48 -    default "linaro-4.6-2013.01" if CC_V_linaro_4_6_2013_01
    1.49 +    default "linaro-4.6-2013.01" if CC_V_linaro_4_6
    1.50      default "4.6.3" if CC_V_4_6_3
    1.51      default "4.6.2" if CC_V_4_6_2
    1.52      default "4.6.1" if CC_V_4_6_1
    1.53      default "4.6.0" if CC_V_4_6_0
    1.54 -    default "linaro-4.5-2012.03" if CC_V_linaro_4_5_2012_03
    1.55 +    default "linaro-4.5-2012.03" if CC_V_linaro_4_5
    1.56      default "4.5.3" if CC_V_4_5_3
    1.57      default "4.5.2" if CC_V_4_5_2
    1.58      default "4.5.1" if CC_V_4_5_1
    1.59      default "4.5.0" if CC_V_4_5_0
    1.60 -    default "linaro-4.4-2011.02-0" if CC_V_linaro_4_4_2011_02_0
    1.61 +    default "linaro-4.4-2011.02-0" if CC_V_linaro_4_4
    1.62      default "4.4.7" if CC_V_4_4_7
    1.63      default "4.4.6" if CC_V_4_4_6
    1.64      default "4.4.5" if CC_V_4_4_5