gdb: add support for Python in host gdb

This commit adds an option BR2_PACKAGE_HOST_GDB_PYTHON that allows to
enable Python support in the cross gdb built by Buildroot.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Thomas Petazzoni 2014-09-15 22:50:09 +02:00 committed by Peter Korsgaard
parent ae054fcaa6
commit d79cc3cdef
2 changed files with 12 additions and 0 deletions

View File

@ -18,6 +18,11 @@ config BR2_PACKAGE_HOST_GDB_TUI
help
This option enables terminal user interface (TUI) for gdb
config BR2_PACKAGE_HOST_GDB_PYTHON
bool "Python support"
help
This option enables the Python support in the cross gdb.
choice
prompt "GDB debugger Version"
depends on !BR2_arc

View File

@ -138,6 +138,13 @@ else
HOST_GDB_CONF_OPT += --disable-tui
endif
ifeq ($(BR2_PACKAGE_HOST_GDB_PYTHON),y)
HOST_GDB_CONF_OPT += --with-python
HOST_GDB_DEPENDENCIES += host-python
else
HOST_GDB_CONF_OPT += --without-python
endif
ifeq ($(GDB_FROM_GIT),y)
HOST_GDB_DEPENDENCIES += host-texinfo
else