From: David Holsgrove <david.holsgrove@xilinx.com>
To: bryanhundven@gmail.com, yann.morin.1998@free.fr
Cc: crossgcc@sourceware.org
Subject: [PATCH 6 of 6] debug/gdb: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustom
Date: Wed, 10 Oct 2012 06:08:00 -0000 [thread overview]
Message-ID: <95681eaa5cefc8ac01c9.1349849279@localhost.localdomain> (raw)
In-Reply-To: <patchbomb.1349849273@localhost.localdomain>
# HG changeset patch
# User David Holsgrove <david.holsgrove@xilinx.com>
# Date 1349847856 -36000
# Node ID 95681eaa5cefc8ac01c9fefc12e0785d185c4a84
# Parent 53e0ec83f0eb86286025821388cbdb82a8510941
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.
diff -r 53e0ec83f0eb -r 95681eaa5cef config/debug/gdb.in
--- a/config/debug/gdb.in Wed Oct 10 15:44:15 2012 +1000
+++ b/config/debug/gdb.in Wed Oct 10 15:44:16 2012 +1000
@@ -119,6 +119,13 @@
bool
prompt "6.8a"
+config GDB_CUSTOM
+ bool
+ prompt "Custom gdb"
+ depends on EXPERIMENTAL
+ select GDB_7_0_or_later
+ select GDB_7_2_or_later
+
endchoice
config GDB_7_2_or_later
@@ -152,5 +159,19 @@
default "7.0.1a" if GDB_V_7_0_1a
default "7.0a" if GDB_V_7_0a
default "6.8a" if GDB_V_6_8a
+ default "custom" if GDB_CUSTOM
+
+if GDB_CUSTOM
+
+config GDB_CUSTOM_LOCATION
+ string
+ prompt "full path to custom gdb source"
+ default ""
+ help
+ Enter the path to the directory (or tarball) of your source for gdb,
+ or leave blank to use default CT_CUSTOM_LOCATION_ROOT_DIR/gdb
+
+endif # GDB_CUSTOM
endif
+
diff -r 53e0ec83f0eb -r 95681eaa5cef scripts/build/debug/300-gdb.sh
--- a/scripts/build/debug/300-gdb.sh Wed Oct 10 15:44:15 2012 +1000
+++ b/scripts/build/debug/300-gdb.sh Wed Oct 10 15:44:16 2012 +1000
@@ -48,10 +48,19 @@
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_TestAndAbort "Custom gdb: CT_CUSTOM_LOCATION_ROOT_DIR or CT_GDB_CUSTOM_LOCATION must be set." \
+ -z "${CT_CUSTOM_LOCATION_ROOT_DIR}" -a -z "${CT_GDB_CUSTOM_LOCATION}"
+ if [ -n "${CT_CUSTOM_LOCATION_ROOT_DIR}" -a -z "${CT_GDB_CUSTOM_LOCATION}" ]; then
+ CT_GDB_CUSTOM_LOCATION="${CT_CUSTOM_LOCATION_ROOT_DIR}/gdb"
+ fi
+ 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,7 +79,10 @@
do_debug_gdb_parts
if [ "${do_gdb}" = "y" ]; then
- CT_Extract "gdb-${CT_GDB_VERSION}"
+ if [ "${CT_GDB_CUSTOM}" != "y" \
+ -o ! -d "${CT_GDB_CUSTOM_LOCATION}" ]; then
+ CT_Extract "gdb-${CT_GDB_VERSION}"
+ fi
CT_Patch "gdb" "${CT_GDB_VERSION}"
fi
--
For unsubscribe information see http://sourceware.org/lists.html#faq
next prev parent reply other threads:[~2012-10-10 6:08 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-04 4:46 [PATCH 0 of 1 ] RFC - Add CUSTOM version for gcc, binutils, libc, gdb David Holsgrove
2012-10-04 4:47 ` [PATCH 1 of 1] config+scripts: Custom gcc, binutils, libc, gdb version David Holsgrove
2012-10-05 8:48 ` Florian Fainelli
2012-10-05 7:57 ` [PATCH 0 of 1 ] RFC - Add CUSTOM version for gcc, binutils, libc, gdb Bryan Hundven
2012-10-10 6:08 ` [PATCH 0 of 6 " David Holsgrove
2012-10-10 6:08 ` [PATCH 1 of 6] config+scripts: Extract CUSTOM / CUSTOM_LOCATION currently in linux.sh David Holsgrove
2012-10-10 22:19 ` Yann E. MORIN
2012-10-10 6:08 ` [PATCH 5 of 6] binutils: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustom David Holsgrove
2012-10-10 22:41 ` Yann E. MORIN
2012-10-10 6:08 ` [PATCH 2 of 6] kernel/linux: Extract custom location function and use generic GetCustom David Holsgrove
2012-10-10 22:25 ` Yann E. MORIN
2012-10-10 6:08 ` David Holsgrove [this message]
2012-10-10 22:45 ` [PATCH 6 of 6] debug/gdb: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustom Yann E. MORIN
2012-10-10 6:08 ` [PATCH 4 of 6] libc: " David Holsgrove
2012-10-10 22:38 ` Yann E. MORIN
2012-10-10 6:08 ` [PATCH 3 of 6] cc/gcc: " David Holsgrove
2012-10-10 21:56 ` [PATCH 0 of 6 ] RFC - Add CUSTOM version for gcc, binutils, libc, gdb Yann E. MORIN
2012-10-11 4:53 ` [PATCH 00 of 13 ] " David Holsgrove
2012-10-11 4:53 ` [PATCH 01 of 13] libc/glibc: Remove redundant LIBC_GLIBC_TARBALL config option David Holsgrove
2012-10-11 18:53 ` Yann E. MORIN
2012-10-11 4:53 ` [PATCH 05 of 13] cc/gcc: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustom David Holsgrove
2012-10-11 20:24 ` Yann E. MORIN
2012-10-15 1:31 ` David Holsgrove
2012-10-16 20:38 ` Yann E. MORIN
2012-10-17 7:52 ` David Holsgrove
2012-10-29 23:27 ` Yann E. MORIN
2012-10-11 4:53 ` [PATCH 06 of 13] binutils/binutils: " David Holsgrove
2012-10-29 23:27 ` Yann E. MORIN
2012-10-11 4:53 ` [PATCH 07 of 13] binutils/elf2flt: Add CUSTOM version, CUSTOM_LOCATION config options, GetCustom David Holsgrove
2012-10-29 23:27 ` Yann E. MORIN
2012-10-11 4:53 ` [PATCH 04 of 13] kernel/linux: use generic custom infrastructure David Holsgrove
2012-10-13 22:00 ` Yann E. MORIN
2012-10-11 4:53 ` [PATCH 02 of 13] scripts/functions: add a generic custom location infrastructure David Holsgrove
2012-10-13 22:00 ` Yann E. MORIN
2012-10-11 4:53 ` [PATCH 03 of 13] config/paths: " David Holsgrove
2012-10-13 22:00 ` scripts/functions: " Yann E. MORIN
2012-10-11 4:54 ` [PATCH 10 of 13] libc/glibc: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustom David Holsgrove
2012-10-11 4:54 ` [PATCH 08 of 13] debug/gdb: " David Holsgrove
2012-10-29 23:28 ` Yann E. MORIN
2012-10-11 4:54 ` [PATCH 09 of 13] libc/{, e}glibc: Add CUSTOM version, " David Holsgrove
2012-10-11 4:54 ` [PATCH 11 of 13] libc/eglibc: Add CUSTOM version and " David Holsgrove
2012-10-11 4:54 ` [PATCH 12 of 13] libc/uClibc: " David Holsgrove
2012-10-31 22:55 ` Yann E. MORIN
2012-10-11 4:54 ` [PATCH 13 of 13] libc/newlib: " David Holsgrove
2012-10-30 22:20 ` Yann E. MORIN
2012-10-22 21:56 ` [PATCH 00 of 13 ] Add CUSTOM version for gcc, binutils, libc, gdb Yann E. MORIN
2012-10-23 8:09 ` David Holsgrove
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=95681eaa5cefc8ac01c9.1349849279@localhost.localdomain \
--to=david.holsgrove@xilinx.com \
--cc=bryanhundven@gmail.com \
--cc=crossgcc@sourceware.org \
--cc=yann.morin.1998@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).