mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 10:46:26 +00:00
debug/gdb: add versions from Linaro
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
83a004e2c4
commit
a59b794f9c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user