diff mbox

[3/3,config/gdb] Add GDB_HAS_PYTHON

Message ID 1408141290-19515-4-git-send-email-bryanhundven@gmail.com
State Superseded
Headers show

Commit Message

Bryan Hundven Aug. 15, 2014, 10:21 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 26884ab..6f39196 100644
--- a/config/debug/gdb.in
+++ b/config/debug/gdb.in
@@ -176,6 +176,7 @@  config GDB_7_1_or_later
 config GDB_7_0_or_later
     bool
     select GDB_HAS_PKGVERSION_BUGURL
+    select GDB_HAS_PYTHON
     select GDB_INSTALL_GDBINIT
     select GDB_6_8_or_later
 
@@ -185,6 +186,9 @@  config GDB_6_8_or_later
 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