diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-devtools/gdb/gdb-cross-canadian.inc | |
download | poky-c527fd1f14c27855a37f2e8ac5346ce8d940ced2.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb-cross-canadian.inc')
-rw-r--r-- | meta/recipes-devtools/gdb/gdb-cross-canadian.inc | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc new file mode 100644 index 0000000000..8b2dbe057f --- /dev/null +++ b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc | |||
@@ -0,0 +1,35 @@ | |||
1 | inherit cross-canadian | ||
2 | inherit python-dir | ||
3 | |||
4 | SUMMARY = "GNU debugger (cross-canadian gdb for ${TARGET_ARCH} target)" | ||
5 | PN = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}" | ||
6 | BPN = "gdb" | ||
7 | |||
8 | DEPENDS = "nativesdk-ncurses nativesdk-expat nativesdk-gettext nativesdk-readline nativesdk-python" | ||
9 | RDEPENDS_${PN} += "nativesdk-python-core nativesdk-python-lang nativesdk-python-re \ | ||
10 | nativesdk-python-codecs nativesdk-python-netclient" | ||
11 | |||
12 | GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'" | ||
13 | |||
14 | EXTRA_OECONF_append = "--with-python=${WORKDIR}/python" | ||
15 | |||
16 | do_configure_prepend() { | ||
17 | cat > ${WORKDIR}/python << EOF | ||
18 | #! /bin/sh | ||
19 | case "\$2" in | ||
20 | --includes) echo "-I${STAGING_INCDIR}/${PYTHON_DIR}/" ;; | ||
21 | --ldflags) echo "-Wl,-rpath-link,${STAGING_LIBDIR}/.. -Wl,-rpath,${libdir}/.. -lpthread -ldl -lutil -lm -lpython${PYTHON_BASEVERSION}" ;; | ||
22 | --exec-prefix) echo "${exec_prefix}" ;; | ||
23 | *) exit 1 ;; | ||
24 | esac | ||
25 | exit 0 | ||
26 | EOF | ||
27 | chmod +x ${WORKDIR}/python | ||
28 | } | ||
29 | |||
30 | # we don't want gdb to provide bfd/iberty/opcodes, which instead will override the | ||
31 | # right bits installed by binutils. | ||
32 | do_install_append() { | ||
33 | rm -rf ${D}${exec_prefix}/lib | ||
34 | } | ||
35 | |||