debug/gdb: --disable-sim for CT_GDB_CROSS.

sim was already disabled for CT_GDB_NATIVE.

Reviewed-by: Michael Hope
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
[yann.morin.1998@anciens.enib.fr: make it a config option]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
Yann E. MORIN" 2011-11-18 16:22:52 +08:00 committed by Zhenqiang Chen
parent 067467bb18
commit 145d048e58
2 changed files with 14 additions and 0 deletions

View File

@ -24,6 +24,15 @@ config GDB_CROSS_STATIC
That way, you can share the cross-gdb without installing a toolchain
on every machine that will be used to debug target programs.
config GDB_CROSS_SIM
bool
prompt "Enable 'sim'"
depends on EXPERIMENTAL
help
Say 'y' here if you want to build the 'sim' emulator.
You probably don't want it, unless you are building for bare-metal.
The default is 'n'.
config GDB_CROSS_PYTHON
bool
prompt "Enable python scripting"

View File

@ -123,6 +123,11 @@ do_debug_gdb_build() {
else
cross_extra_config+=( "--with-python=no" )
fi
if [ "${CT_GDB_CROSS_SIM}" = "y" ]; then
cross_extra_config+=( "--enable-sim" )
else
cross_extra_config+=( "--disable-sim" )
fi
CC_for_gdb=
LD_for_gdb=