mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Bart vdr. Meulen" <bartvdrmeulen@gmail.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] gdb: Add option to enable expat and phyton support
Date: Mon, 28 May 2012 14:42:43 +0200	[thread overview]
Message-ID: <1338208981-8681-17-git-send-email-bartvdrmeulen@gmail.com> (raw)

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

             reply	other threads:[~2012-05-28 12:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-28 12:42 Bart vdr. Meulen [this message]
2012-05-30 16:58 ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1338208981-8681-17-git-send-email-bartvdrmeulen@gmail.com \
    --to=bartvdrmeulen@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox