diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2014-12-09 07:27:46 (GMT) |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2014-12-09 07:27:46 (GMT) |
commit | 1e17619b273fb49f8d2e162f34c26994698285b3 (patch) | |
tree | 7d03808e5e4a17cd1299fbbf84e849c8b65dcde4 /scripts/build/debug/300-gdb.sh | |
parent | 6bc5ff9ce8633945c084e2205d4746dcea2328aa (diff) |
gcc and gdb: fix fetching linaro builds (part two)
It's not my day.
linaro_version is a filter. If it is not a linaro toolchain, it will
just be CT_{CC,GDB}_VERSION. If it is a linaro toolchain, CT_{CC,GDB}_VERSION
will be prefixed with 'linaro-' and will not match linaro_version, as
linaro_version will just have the part after 'linaro-'.
This *really* fixes the issue :sigh:
Thanks again to @elsonwei for being right the first time!
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Diffstat (limited to 'scripts/build/debug/300-gdb.sh')
-rw-r--r-- | scripts/build/debug/300-gdb.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index df0e1e3..22e4de7 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -51,7 +51,7 @@ do_debug_gdb_get() { if [ "${CT_GDB_CUSTOM}" = "y" ]; then CT_GetCustom "gdb" "${CT_GDB_VERSION}" "${CT_GDB_CUSTOM_LOCATION}" else - if [ x"${linaro_release}" = x"" ]; then + if [ x"${linaro_release}" = x"${CT_GDB_VERSION}" ]; then CT_GetFile "gdb-${CT_GDB_VERSION}" \ ftp://{sourceware.org,gcc.gnu.org}/pub/gdb/releases \ {http,ftp,https}://ftp.gnu.org/pub/gnu/gdb \ |