diff options
| author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-09-15 22:50:09 +0200 |
|---|---|---|
| committer | Peter Korsgaard <peter@korsgaard.com> | 2014-09-16 22:33:08 +0200 |
| commit | d79cc3cdef06365d8f15361beb4758c3c314a1b1 (patch) | |
| tree | 1c6d2b4a61927be6910de8237ff0d1de4b847488 | |
| parent | ae054fcaa6e3887cf9e3b5b2441553e63bda0a0f (diff) | |
| download | buildroot-d79cc3cdef06365d8f15361beb4758c3c314a1b1.tar.gz buildroot-d79cc3cdef06365d8f15361beb4758c3c314a1b1.zip | |
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>
| -rw-r--r-- | package/gdb/Config.in.host | 5 | ||||
| -rw-r--r-- | package/gdb/gdb.mk | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host index 5d0e1b4e9d..1e20cd2ffa 100644 --- a/package/gdb/Config.in.host +++ b/package/gdb/Config.in.host @@ -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 diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk index 4a194e26b0..e12b12b477 100644 --- a/package/gdb/gdb.mk +++ b/package/gdb/gdb.mk @@ -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 |

