debug/gdb: add versions from Linaro

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
Yann E. MORIN" 2011-02-17 23:05:34 +01:00
parent 83a004e2c4
commit a59b794f9c
2 changed files with 21 additions and 1 deletions

View File

@ -15,6 +15,12 @@ choice
# Don't remove next line
# CT_INSERT_VERSION_BELOW
config GDB_V_linaro_7_2_2011_02_0
bool
prompt "linaro-7.2-2011.02-0 (EXPERIMENTAL)"
depends on EXPERIMENTAL
select GDB_7_0_or_later
config GDB_V_7_2
bool
prompt "7.2 (EXPERIMENTAL)"
@ -52,6 +58,7 @@ config GDB_VERSION
string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
default "linaro-7.2-2011.02-0" if GDB_V_linaro_7_2_2011_02_0
default "7.2" if GDB_V_7_2
default "7.1" if GDB_V_7_1
default "7.0.1" if GDB_V_7_0_1

View File

@ -33,12 +33,25 @@ do_debug_gdb_parts() {
}
do_debug_gdb_get() {
local linaro_version
local linaro_series
local linaro_base_url="http://launchpad.net/gdb-linaro"
# Account for the Linaro versioning
linaro_version="$( echo "${CT_GDB_VERSION}" \
|sed -r -e 's/^linaro-//;' \
)"
linaro_series="$( echo "${linaro_version}" \
|sed -r -e 's/-.*//;' \
)"
do_debug_gdb_parts
if [ "${do_gdb}" = "y" ]; then
CT_GetFile "gdb-${CT_GDB_VERSION}" \
{ftp,http}://ftp.gnu.org/pub/gnu/gdb \
ftp://sources.redhat.com/pub/gdb/{,old-}releases
ftp://sources.redhat.com/pub/gdb/{,old-}releases \
"${linaro_base_url}/${linaro_series}/${linaro_version}/+download"
fi
if [ "${do_ncurses}" = "y" ]; then