]> code.ossystems Code Review - openembedded-core.git/commit
gdb-cross-canadian: build gdb with python support
authorEric BENARD <eric@eukrea.com>
Sun, 26 Feb 2012 07:49:42 +0000 (08:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 26 Feb 2012 11:00:03 +0000 (11:00 +0000)
commit73a90b88541c373aa5b83a939dd3b5f1fe05b9b8
treebb48beca5be9c6d1858d5ef47dd7459fb4bc8cd2
parent1669ae88553c4124387438b88541de8e7951b4a4
gdb-cross-canadian: build gdb with python support

* 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

* MJ: updated paths to python as disscussed here
  http://lists.linuxtogo.org/pipermail/openembedded-core/2012-February/018222.html
  now it's easier with cross-canadian staging dir and SDKPATH fixed :)

Signed-off-by: Eric Bénard <eric@eukrea.com>
Cc: fcooper@ti.com
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gdb/gdb-cross-canadian.inc
meta/recipes-devtools/gdb/gdb-cross-canadian_7.4.bb