gdb: add support for Python in host gdb
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 15 Sep 2014 20:50:09 +0000 (22:50 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 16 Sep 2014 20:33:08 +0000 (22:33 +0200)
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>
package/gdb/Config.in.host
package/gdb/gdb.mk

index 5d0e1b4e9d5180008ee51fba171a745b21adec9b..1e20cd2ffa08db30cab8b0a72bc4ec3ef980d09d 100644 (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
index 4a194e26b098c09fdd94fa306a85c19a822024d4..e12b12b47757e24d92882ccc64e43a12415d0be3 100644 (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