summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/gdb/gdb_7.7.1.bb
diff options
context:
space:
mode:
authorNathan Rossi <nathan.rossi@xilinx.com>2014-12-17 17:23:14 +1000
committerNathan Rossi <nathan.rossi@xilinx.com>2014-12-17 17:23:14 +1000
commit05ca55921548e949c7c95f9a85c568a673d4ad40 (patch)
tree864712bfe681810dd75cea288e0dcb9bdb43d46d /recipes-devtools/gdb/gdb_7.7.1.bb
parent7f759048bb0aeef3c0b3938be81d2bcade7acb7e (diff)
downloadmeta-xilinx-05ca55921548e949c7c95f9a85c568a673d4ad40.tar.gz
gdb: Port gdb 7.7.1 recipes from oe-core
* Port the gdb 7.7.1 recipes from oe-core, this is due to issues with re-producing a functional gdb for 7.8.1+ * Default MicroBlaze machines to use gdb 7.7.1 Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Diffstat (limited to 'recipes-devtools/gdb/gdb_7.7.1.bb')
-rw-r--r--recipes-devtools/gdb/gdb_7.7.1.bb29
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-devtools/gdb/gdb_7.7.1.bb b/recipes-devtools/gdb/gdb_7.7.1.bb
new file mode 100644
index 00000000..80b589a1
--- /dev/null
+++ b/recipes-devtools/gdb/gdb_7.7.1.bb
@@ -0,0 +1,29 @@
1require recipes-devtools/gdb/gdb-common.inc
2require gdb-${PV}.inc
3require gdb-microblaze-7.7.inc
4
5inherit gettext
6inherit python-dir
7
8PACKAGECONFIG ??= ""
9PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python"
10PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"
11
12do_configure_prepend() {
13 if [ -n "${@bb.utils.contains('PACKAGECONFIG', 'python', 'python', '', d)}" ]; then
14 cat > ${WORKDIR}/python << EOF
15#!/bin/sh
16case "\$2" in
17 --includes) echo "-I${STAGING_INCDIR}/${PYTHON_DIR}/" ;;
18 --ldflags) echo "-Wl,-rpath-link,${STAGING_LIBDIR}/.. -Wl,-rpath,${libdir}/.. -lpthread -ldl -lutil -lm -lpython${PYTHON_BASEVERSION}" ;;
19 --exec-prefix) echo "${exec_prefix}" ;;
20 *) exit 1 ;;
21esac
22exit 0
23EOF
24 chmod +x ${WORKDIR}/python
25 fi
26}
27
28PACKAGES =+ "gdbserver"
29FILES_gdbserver = "${bindir}/gdbserver"