From 145d048e582d2ea41a56e63141ac6c7b74443c75 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Fri, 18 Nov 2011 16:22:52 +0800 Subject: 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 [yann.morin.1998@anciens.enib.fr: make it a config option] Signed-off-by: "Yann E. MORIN" diff --git a/config/debug/gdb.in.cross b/config/debug/gdb.in.cross index dc5a131..7e1fe75 100644 --- a/config/debug/gdb.in.cross +++ b/config/debug/gdb.in.cross @@ -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" diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index 23f20dd..d0f532f 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -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= -- cgit v0.10.2-6-g49f6