cc/gcc: simplify the _or_later stuff

This commit is contained in:
Yann E. MORIN" 2010-02-04 15:18:46 +01:00
parent c971f6ee33
commit 933404b449
2 changed files with 4 additions and 8 deletions

View File

@ -22,25 +22,21 @@ choice
config CC_V_4_4_3
bool
prompt "4.4.3"
select CC_GCC_4_3_or_later
select CC_GCC_4_4_or_later
config CC_V_4_4_2
bool
prompt "4.4.2"
select CC_GCC_4_3_or_later
select CC_GCC_4_4_or_later
config CC_V_4_4_1
bool
prompt "4.4.1"
select CC_GCC_4_3_or_later
select CC_GCC_4_4_or_later
config CC_V_4_4_0
bool
prompt "4.4.0"
select CC_GCC_4_3_or_later
select CC_GCC_4_4_or_later
config CC_V_4_3_4
@ -111,6 +107,7 @@ config CC_GCC_4_3_or_later
config CC_GCC_4_4_or_later
bool
default n
select CC_GCC_4_3_or_later
select PPL_CLOOG_MPC
config CC_VERSION

View File

@ -99,13 +99,12 @@ addToolVersion() {
# Extract 'M'ajor and 'm'inor from version string
ver_M=$(echo "${version}...." |cut -d . -f 1)
ver_m=$(echo "${version}...." |cut -d . -f 2)
if [ ${ver_M} -gt 4 \
-o \( ${ver_M} -eq 4 -a ${ver_m} -ge 3 \) ]; then
SedExpr1="${SedExpr1}\n select CC_GCC_4_3_or_later"
fi
if [ ${ver_M} -gt 4 \
-o \( ${ver_M} -eq 4 -a ${ver_m} -ge 4 \) ]; then
SedExpr1="${SedExpr1}\n select CC_GCC_4_4_or_later"
elif [ ${ver_M} -gt 4 \
-o \( ${ver_M} -eq 4 -a ${ver_m} -ge 3 \) ]; then
SedExpr1="${SedExpr1}\n select CC_GCC_4_3_or_later"
fi
;;
uClibc)