summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb-cross-canadian.inc')
-rw-r--r--meta/recipes-devtools/gdb/gdb-cross-canadian.inc20
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 ec0748e527..a7cac615d8 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"
4PN = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}" 4PN = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}"
5BPN = "gdb" 5BPN = "gdb"
6 6
7DEPENDS = "ncurses-nativesdk expat-nativesdk gettext-nativesdk readline-nativesdk" 7DEPENDS = "ncurses-nativesdk expat-nativesdk gettext-nativesdk readline-nativesdk python-nativesdk"
8RDEPENDS += "python-nativesdk-core python-nativesdk-lang python-nativesdk-re \
9 python-nativesdk-codecs python-nativesdk-netclient"
10
11EXTRA_OECONF_append = "--with-python=${WORKDIR}/python"
12
13do_configure_prepend() {
14cat > ${WORKDIR}/python << EOF
15#! /bin/sh
16case "\$2" in
17 --includes) echo "-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}/" ;;
18 --ldflags) echo "-L${STAGING_LIBDIR}/../python${PYTHON_BASEVERSION}/config -lpthread -ldl -lutil -lm -lpython${PYTHON_BASEVERSION}" ;;
19 --exec-prefix) echo "/usr" ;;
20 *) exit 1 ;;
21esac
22exit 0
23EOF
24 chmod +x ${WORKDIR}/python
25}