mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] gdb: Add option to enable expat and phyton support
Date: Wed, 30 May 2012 18:58:50 +0200	[thread overview]
Message-ID: <20120530165850.GI31687@pengutronix.de> (raw)
In-Reply-To: <1338208981-8681-17-git-send-email-bartvdrmeulen@gmail.com>

On Mon, May 28, 2012 at 02:42:43PM +0200, Bart vdr. Meulen wrote:
> 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

align the 'if' with <tab>

>  	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

use ptx/wwo

> +GDB_AUTOCONF += --with-libexpat_prefix=$(SYSROOT)/usr

--with-libexpat-prefix= I think, and is this really needed? $(SYSROOT)/usr
should be in al relevant paths.

Michael

> +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
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2012-05-30 16:58 UTC|newest]

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

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=20120530165850.GI31687@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --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