binutils/binutils: add binutils 2.22

Enable (EXPERIMENTAL) selection of binutils 2.22

Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
This commit is contained in:
Titus von Boxberg" 2011-11-28 21:27:08 +01:00 committed by Titus von Boxberg
parent 919775e88b
commit 697c55b797
2 changed files with 16 additions and 1 deletions

View File

@ -8,6 +8,12 @@ choice
# Don't remove next line
# CT_INSERT_VERSION_BELOW
config BINUTILS_V_2_22
bool
prompt "2.22 (EXPERIMENTAL)"
depends on EXPERIMENTAL
select BINUTILS_2_22_or_later
config BINUTILS_V_2_21_53
bool
prompt "2.21.53 (EXPERIMENTAL)"
@ -50,6 +56,7 @@ config BINUTILS_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
default "2.22" if BINUTILS_V_2_22
default "2.21.53" if BINUTILS_V_2_21_53
default "2.21.1a" if BINUTILS_V_2_21_1a
default "2.20.1a" if BINUTILS_V_2_20_1a
@ -58,6 +65,12 @@ config BINUTILS_VERSION
default "2.17a" if BINUTILS_V_2_17a
default "2.16.1a" if BINUTILS_V_2_16_1a
config BINUTILS_2_22_or_later
bool
select BINUTILS_2_21_or_later
select BINUTILS_HAS_GOLD
select BINUTILS_HAS_PLUGINS
config BINUTILS_2_21_or_later
bool
select BINUTILS_2_20_or_later

View File

@ -127,7 +127,9 @@ addToolVersion() {
# Extract 'M'ajor and 'm'inor from version string
ver_M=$(getVersionField "${version}" . 1)
ver_m=$(getVersionField "${version}" . 2)
if [ \( ${ver_M} -eq 2 -a ${ver_m} -eq 21 \) ]; then
if [ \( ${ver_M} -eq 2 -a ${ver_m} -eq 22 \) ]; then
SedExpr1="${SedExpr1}\n select BINUTILS_2_22_or_later"
elif [ \( ${ver_M} -eq 2 -a ${ver_m} -eq 21 \) ]; then
SedExpr1="${SedExpr1}\n select BINUTILS_2_21_or_later"
elif [ \( ${ver_M} -eq 2 -a ${ver_m} -eq 20 \) ]; then
SedExpr1="${SedExpr1}\n select BINUTILS_2_20_or_later"