diff mbox

[2/2,config/gdb] Add GDB_HAS_PYTHON

Message ID 1408313401-3640-3-git-send-email-bryanhundven@gmail.com
State Accepted
Headers show

Commit Message

Bryan Hundven Aug. 17, 2014, 10:10 p.m. UTC
Add a Kconfig boolean to enable python, only if GDB_7_0_or_later.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
---
 config/debug/gdb.in       | 4 ++++
 config/debug/gdb.in.cross | 1 +
 2 files changed, 5 insertions(+)
diff mbox

Patch

diff --git a/config/debug/gdb.in b/config/debug/gdb.in
index 3aaff8e..a3f1930 100644
--- a/config/debug/gdb.in
+++ b/config/debug/gdb.in
@@ -147,11 +147,15 @@  config GDB_7_2_or_later
 config GDB_7_0_or_later
     bool
     select GDB_HAS_PKGVERSION_BUGURL
+    select GDB_HAS_PYTHON
     select GDB_INSTALL_GDBINIT
 
 config GDB_HAS_PKGVERSION_BUGURL
     bool
 
+config GDB_HAS_PYTHON
+    bool
+
 config GDB_INSTALL_GDBINIT
     bool
 
diff --git a/config/debug/gdb.in.cross b/config/debug/gdb.in.cross
index 7e66ce5..549cba2 100644
--- a/config/debug/gdb.in.cross
+++ b/config/debug/gdb.in.cross
@@ -35,6 +35,7 @@  config GDB_CROSS_SIM
 config GDB_CROSS_PYTHON
     bool
     prompt "Enable python scripting"
+    depends on GDB_HAS_PYTHON
     depends on ! GDB_CROSS_STATIC
     default y
     help