]> code.ossystems Code Review - openembedded-core.git/commitdiff
gdb-cross: build with python support
authorAndreas Müller <schnitzeltony@googlemail.com>
Tue, 7 Oct 2014 15:50:30 +0000 (17:50 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Nov 2014 10:19:54 +0000 (10:19 +0000)
variable contents are displayed properly when debugging qt applications remotely

see [1] for further details

[1] http://qt-project.org/doc/qtcreator-2.6/creator-debugging-helpers.html#debugging-helpers-based-on-python

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/gdb/gdb-cross.inc

index cb99b06c5b5098c415feaa4ff32ecaf3e363ff36..6e44778cd3465601e1186fda06581899c4b0eea1 100644 (file)
@@ -1,8 +1,17 @@
 require gdb-common.inc
 
-DEPENDS = "expat-native ncurses-native readline-native"
+DEPENDS = "expat-native ncurses-native readline-native python-native"
 
-EXTRA_OECONF += "--without-python"
+inherit pythonnative
+
+EXTRA_OECONF += "--with-python=${STAGING_BINDIR_NATIVE}/python-native/python"
+
+do_compile_prepend() {
+    export BUILD_SYS="${BUILD_SYS}"
+    export HOST_SYS="${HOST_SYS}"
+    export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}"
+    export STAGING_INCDIR="${STAGING_INCDIR_NATIVE}"
+}
 
 #EXTRA_OEMAKE += "LDFLAGS='${BUILD_LDFLAGS}'"