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>
1.1 --- a/config/debug/gdb.in.cross Tue Nov 22 14:18:14 2011 +0800
1.2 +++ b/config/debug/gdb.in.cross Wed Nov 23 13:15:27 2011 +0800
1.3 @@ -38,5 +38,12 @@
1.4 Building a static gdb can help in this regard, although there
1.5 have been reports of problems when linking gdb to the static
1.6 libpython.a. This should be fixed in gdb >=7.3. YMMV.
1.7 -
1.8 +
1.9 +config GDB_CROSS_EXTRA_CONFIG_ARRAY
1.10 + string
1.11 + prompt "Cross-gdb extra config"
1.12 + default ""
1.13 + help
1.14 + Extra flags to pass onto ./configure when configuring the gdb cross.
1.15 +
1.16 endif # GDB_CROSS
2.1 --- a/scripts/build/debug/300-gdb.sh Tue Nov 22 14:18:14 2011 +0800
2.2 +++ b/scripts/build/debug/300-gdb.sh Wed Nov 23 13:15:27 2011 +0800
2.3 @@ -147,7 +147,8 @@
2.4 --with-sysroot="${CT_SYSROOT_DIR}" \
2.5 --with-expat=yes \
2.6 --disable-werror \
2.7 - "${cross_extra_config[@]}"
2.8 + "${cross_extra_config[@]}" \
2.9 + "${CT_GDB_CROSS_EXTRA_CONFIG_ARRAY[@]}"
2.10
2.11 CT_DoLog EXTRA "Building cross-gdb"
2.12 CT_DoExecLog ALL make ${JOBSFLAGS}