summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Holsgrove <david.holsgrove@xilinx.com>2012-10-11 04:39:42 (GMT)
committerDavid Holsgrove <david.holsgrove@xilinx.com>2012-10-11 04:39:42 (GMT)
commit35f55a749584be11c424cc9bda779283d326dfff (patch)
treee788490d8c5af6a649183c59b3db1755d6efa138 /scripts
parent33d3919c3e7281ac2ea4b830984d77cf42649d0f (diff)
debug/gdb: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustom
CUSTOM_LOCATION config options only presented in menuconfig if component CUSTOM version selected. Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com> [yann.morin.1998@free.fr: don't patch custom dir location] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <9ea1b5021fc77582867f.1349931197@localhost.localdomain> PatchWork-Id: 190791
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/debug/300-gdb.sh17
1 files changed, 13 insertions, 4 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index d1839c5..22fcfec 100644
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -48,10 +48,14 @@ do_debug_gdb_get() {
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 \
- "${linaro_base_url}/${linaro_series}/${linaro_version}/+download"
+ if [ "${CT_GDB_CUSTOM}" = "y" ]; then
+ CT_GetCustom "gdb" "${CT_GDB_VERSION}" "${CT_GDB_CUSTOM_LOCATION}"
+ else
+ CT_GetFile "gdb-${CT_GDB_VERSION}" \
+ {ftp,http}://ftp.gnu.org/pub/gnu/gdb \
+ ftp://sources.redhat.com/pub/gdb/{,old-}releases \
+ "${linaro_base_url}/${linaro_series}/${linaro_version}/+download"
+ fi
fi
if [ "${do_ncurses}" = "y" ]; then
@@ -70,6 +74,11 @@ do_debug_gdb_extract() {
do_debug_gdb_parts
if [ "${do_gdb}" = "y" ]; then
+ # If using custom directory location, nothing to do
+ if [ "${CT_GDB_CUSTOM}" = "y" \
+ -a -d "${CT_SRC_DIR}/gdb-${CT_GDB_VERSION}" ]; then
+ return 0
+ fi
CT_Extract "gdb-${CT_GDB_VERSION}"
CT_Patch "gdb" "${CT_GDB_VERSION}"
fi