From: "Eric Bénard" <eric@eukrea.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] gdb-cross-canadian: build gdb with python support
Date: Wed, 21 Dec 2011 09:51:18 +0100 [thread overview]
Message-ID: <4EF19E06.6030004@eukrea.com> (raw)
In-Reply-To: <1324044340-21898-1-git-send-email-eric@eukrea.com>
Le 16/12/2011 15:05, Eric Bénard a écrit :
> * python support is needed for providing finer scripting control
> in gdb, and for remote controling gdb for example from qtcreator
> * gdb/configure tries to autodetect python using python executable
> with --includes --ldflags --exec-prefix to get the right flags
> As it's difficult to achieve in OE's context, we generate a
> script which will return the right values and make gdb's build
> system happy. This idea was taken from the following article :
> http://www.mentby.com/doug-evans-2/python-enabled-gdb-on-windows-and-relocation.html
> * tested using angstrom& armv7 target& qtcreator 201005& 2.4.0
>
> Signed-off-by: Eric Bénard<eric@eukrea.com>
> Cc: fcooper@ti.com
> ---
> meta/recipes-devtools/gdb/gdb-cross-canadian.inc | 20 +++++++++++++++++++-
> 1 files changed, 19 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
> index ec0748e..e0e6e30 100644
> --- a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
> +++ b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
> @@ -4,4 +4,22 @@ DESCRIPTION = "cross-canadian gdb for ${TARGET_ARCH} target - GNU debugger"
> PN = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}"
> BPN = "gdb"
>
> -DEPENDS = "ncurses-nativesdk expat-nativesdk gettext-nativesdk readline-nativesdk"
> +DEPENDS = "ncurses-nativesdk expat-nativesdk gettext-nativesdk readline-nativesdk python-nativesdk"
> +RDEPENDS += "python-nativesdk-core python-nativesdk-lang python-nativesdk-re \
> + python-nativesdk-codecs python-nativesdk-netclient"
> +
> +EXTRA_OECONF_append = "--with-python=${WORKDIR}/python"
> +
> +do_configure_prepend() {
> +cat> ${WORKDIR}/python<< EOF
> +#! /bin/sh
> +case "\$2" in
> + --includes) echo "-I${STAGING_DIR}/${HOST_ARCH}-nativesdk${HOST_VENDOR}-${HOST_OS}${exec_prefix}/include/python${PYTHON_BASEVERSION}/" ;;
> + --ldflags) echo "-L${STAGING_DIR}/${HOST_ARCH}-nativesdk${HOST_VENDOR}-${HOST_OS}${libdir}/python${PYTHON_BASEVERSION}/config/config -lpthread -ldl -lutil -lm -lpython${PYTHON_BASEVERSION}" ;;
> + --exec-prefix) echo "/usr" ;;
> + *) exit 1 ;;
> +esac
> +exit 0
> +EOF
> + chmod +x ${WORKDIR}/python
> +}
> \ No newline at end of file
any comment concerning this patch ?
Thanks
Eric
next prev parent reply other threads:[~2011-12-21 8:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-16 14:05 [PATCH] gdb-cross-canadian: build gdb with python support Eric Bénard
2011-12-21 8:51 ` Eric Bénard [this message]
2011-12-21 22:12 ` Zhang, Jessica
2011-12-21 23:08 ` Eric Bénard
2011-12-21 23:52 ` Zhang, Jessica
2012-01-04 17:28 ` Khem Raj
2012-01-05 16:34 ` Richard Purdie
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=4EF19E06.6030004@eukrea.com \
--to=eric@eukrea.com \
--cc=openembedded-core@lists.openembedded.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.