mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] gdb: Add option to enable expat and phyton support
@ 2012-05-28 12:42 Bart vdr. Meulen
  2012-05-30 16:58 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Bart vdr. Meulen @ 2012-05-28 12:42 UTC (permalink / raw)
  To: ptxdist

From: "Bart vdr. Meulen" <bartvdrmeulen@gmail.com>

Add options so gdb is be build with expat and python support explicit.
If not enabled explicit gdb tries to detect whether expat and/or python
libraries are available which may vary on the order the packages are build
by ptxdist. Enforcing the build order prevents this.

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
---
 rules/gdb.in   |   19 +++++++++++++++++++
 rules/gdb.make |   13 +++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/rules/gdb.in b/rules/gdb.in
index 65c6fff..127ff39 100644
--- a/rules/gdb.in
+++ b/rules/gdb.in
@@ -7,6 +7,8 @@ menuconfig GDB
 	select LIBC_DL
 	select GCCLIBS_GCC_S
 	select NCURSES
+	select EXPAT if GDB_ENABLE_EXPAT
+	select PYTHON if GDB_ENABLE_PYTHON
 	help
 	  The GNU Debugger
 
@@ -18,6 +20,23 @@ menuconfig GDB
 
 if GDB
 
+config GDB_ENABLE_EXPAT
+	prompt "enable expat support"
+	bool
+	help
+	  Expat is used for:
+	    Remote protocol memory maps
+	    Target descriptions
+	    Remote shared library lists
+	    MS-Windows shared libraries
+	    Traceframe info
+
+config GDB_ENABLE_PYTHON
+	prompt "enable python support"
+	bool
+	help
+	  You can script gdb using the Python programming language
+
 config GDB_SHARED
 	bool "build shared"
 	default y
diff --git a/rules/gdb.make b/rules/gdb.make
index ecbe020..0741929 100644
--- a/rules/gdb.make
+++ b/rules/gdb.make
@@ -57,6 +57,19 @@ GDB_AUTOCONF := \
 	--disable-werror \
 	--without-expat
 
+ifdef PTXCONF_GDB_ENABLE_EXPAT
+GDB_AUTOCONF += --with-expat=yes
+GDB_AUTOCONF += --with-libexpat_prefix=$(SYSROOT)/usr
+else
+GDB_AUTOCONF += --with-expat=no
+endif
+
+ifdef PTXCONF_GDB_ENABLE_PYTHON
+GDB_AUTOCONF += --with-python
+else
+GDB_AUTOCONF += --with-python=no
+endif
+
 GDB_BUILD_OOT := YES
 
 # ----------------------------------------------------------------------------
-- 
1.7.9.5


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-30 16:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-28 12:42 [ptxdist] [PATCH] gdb: Add option to enable expat and phyton support Bart vdr. Meulen
2012-05-30 16:58 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox