diff options
| author | Nathan Rossi <nathan.rossi@xilinx.com> | 2014-12-17 17:23:14 +1000 |
|---|---|---|
| committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2014-12-17 17:23:14 +1000 |
| commit | 05ca55921548e949c7c95f9a85c568a673d4ad40 (patch) | |
| tree | 864712bfe681810dd75cea288e0dcb9bdb43d46d /recipes-devtools/gdb/gdb_7.7.1.bb | |
| parent | 7f759048bb0aeef3c0b3938be81d2bcade7acb7e (diff) | |
| download | meta-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.bb | 29 |
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 @@ | |||
| 1 | require recipes-devtools/gdb/gdb-common.inc | ||
| 2 | require gdb-${PV}.inc | ||
| 3 | require gdb-microblaze-7.7.inc | ||
| 4 | |||
| 5 | inherit gettext | ||
| 6 | inherit python-dir | ||
| 7 | |||
| 8 | PACKAGECONFIG ??= "" | ||
| 9 | PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python" | ||
| 10 | PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace" | ||
| 11 | |||
| 12 | do_configure_prepend() { | ||
| 13 | if [ -n "${@bb.utils.contains('PACKAGECONFIG', 'python', 'python', '', d)}" ]; then | ||
| 14 | cat > ${WORKDIR}/python << EOF | ||
| 15 | #!/bin/sh | ||
| 16 | case "\$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 ;; | ||
| 21 | esac | ||
| 22 | exit 0 | ||
| 23 | EOF | ||
| 24 | chmod +x ${WORKDIR}/python | ||
| 25 | fi | ||
| 26 | } | ||
| 27 | |||
| 28 | PACKAGES =+ "gdbserver" | ||
| 29 | FILES_gdbserver = "${bindir}/gdbserver" | ||
