summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-11-23 05:15:27 (GMT)
committerZhenqiang Chen <zhenqiang.chen@linaro.org>2011-11-23 05:15:27 (GMT)
commit3980ce99051c14b5af5978486e78a2c58e36a4a7 (patch)
tree29be6c8346f97e9cfb9523b53da2f7cb28db9d87
parent91eb66a629bbc9e3fe5a7afd10fb7b3d028588f2 (diff)
debug/gdb: add extra config for gdb cross.
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org> [yann.morin.1998@anciens.enib.fr: prompt rewording, as suggested by M. Hope] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
-rw-r--r--config/debug/gdb.in.cross9
-rw-r--r--scripts/build/debug/300-gdb.sh3
2 files changed, 10 insertions, 2 deletions
diff --git a/config/debug/gdb.in.cross b/config/debug/gdb.in.cross
index d9e80d4..dc5a131 100644
--- a/config/debug/gdb.in.cross
+++ b/config/debug/gdb.in.cross
@@ -38,5 +38,12 @@ config GDB_CROSS_PYTHON
Building a static gdb can help in this regard, although there
have been reports of problems when linking gdb to the static
libpython.a. This should be fixed in gdb >=7.3. YMMV.
-
+
+config GDB_CROSS_EXTRA_CONFIG_ARRAY
+ string
+ prompt "Cross-gdb extra config"
+ default ""
+ help
+ Extra flags to pass onto ./configure when configuring the gdb cross.
+
endif # GDB_CROSS
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index b1d2529..23f20dd 100644
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -147,7 +147,8 @@ do_debug_gdb_build() {
--with-sysroot="${CT_SYSROOT_DIR}" \
--with-expat=yes \
--disable-werror \
- "${cross_extra_config[@]}"
+ "${cross_extra_config[@]}" \
+ "${CT_GDB_CROSS_EXTRA_CONFIG_ARRAY[@]}"
CT_DoLog EXTRA "Building cross-gdb"
CT_DoExecLog ALL make ${JOBSFLAGS}