host-gdb: enable terminal user interface support

Add a configuration option to compile host-gdb with the
--enable-tui switch.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Yegor Yefremov 2014-08-29 21:42:31 +02:00 committed by Peter Korsgaard
parent 76eee8c6ab
commit 2474fb0bf1
2 changed files with 13 additions and 1 deletions

View File

@ -13,6 +13,12 @@ config BR2_PACKAGE_HOST_GDB
if BR2_PACKAGE_HOST_GDB
config BR2_PACKAGE_HOST_GDB_TUI
bool "GDB TUI support"
select BR2_PACKAGE_NCURSES
help
This option enables terminal user interface (TUI) for gdb
choice
prompt "GDB debugger Version"
depends on !BR2_arc

View File

@ -114,7 +114,6 @@ HOST_GDB_CONF_OPT = \
--target=$(GNU_TARGET_NAME) \
--enable-static --disable-shared \
--without-uiout \
--disable-tui \
--disable-gdbtk \
--without-x \
--enable-threads \
@ -123,6 +122,13 @@ HOST_GDB_CONF_OPT = \
$(GDB_DISABLE_BINUTILS_CONF_OPT) \
--disable-sim
ifeq ($(BR2_PACKAGE_HOST_GDB_TUI),y)
HOST_GDB_DEPENDENCIES += host-ncurses
HOST_GDB_CONF_OPT += --enable-tui
else
HOST_GDB_CONF_OPT += --disable-tui
endif
ifeq ($(GDB_FROM_GIT),y)
HOST_GDB_DEPENDENCIES += host-texinfo
else