diff mbox

[3/6] gdb: New recipe

Message ID 2fce5d7c9aa7f9bda7e215e4711bd534d90884c0.1409312414.git.kibo@prevas.dk
State Under Review
Delegated to: Kim
Headers show

Commit Message

Kim Bøndergaard Aug. 29, 2014, 12:30 p.m. UTC
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

Signed-off-by: Christian Sørensen <christian.braunersorensen@prevas.dk>
---
 recipes/gdb/gdb.inc        | 34 ++++++++++++++++++++++++++++++++++
 recipes/gdb/gdb_7.7.oe     |  1 +
 recipes/gdb/gdb_7.7.oe.sig |  1 +
 3 files changed, 36 insertions(+)
 create mode 100644 recipes/gdb/gdb.inc
 create mode 100644 recipes/gdb/gdb_7.7.oe
 create mode 100644 recipes/gdb/gdb_7.7.oe.sig
diff mbox

Patch

diff --git a/recipes/gdb/gdb.inc b/recipes/gdb/gdb.inc
new file mode 100644
index 0000000..4ac1d0e
--- /dev/null
+++ b/recipes/gdb/gdb.inc
@@ -0,0 +1,34 @@ 
+SUMMARY = "GNU debugger"
+HOMEPAGE = "http://www.gnu.org/software/gdb/"
+LICENSE = "GPLv2 & GPLv3 & LGPLv2 & LGPLv3"
+
+RECIPE_TYPES = "machine canadian-cross"
+
+GDB_DEPENDS = "host:libexpat host:libtermcap \
+	host:libreadline host:libdl host:libm host:libc"
+DEPENDS = "${GDB_DEPENDS}"
+RDEPENDS_${PN} = "${GDB_DEPENDS}"
+
+inherit autotools auto-package-utils
+
+require conf/fetch/gnu.conf
+SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz"
+S = "${SRCDIR}/${PN}-${PV}"
+
+EXTRA_OEMAKE = "'SUBDIRS=gdb'"
+
+EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \
+	--with-curses --disable-multilib --with-system-readline --disable-sim \
+        --without-lzma --without-python \
+        --program-prefix='' --with-expat"
+
+AUTO_PACKAGE_UTILS = "gdb gdbserver gcore"
+AUTO_PACKAGE_UTILS:canadian-cross = "gdb"
+AUTO_PACKAGE_UTILS_DEPENDS += "host:libc host:libdl"
+AUTO_PACKAGE_UTILS_RDEPENDS += "host:libc host:libdl"
+RDEPENDS_${PN}-gdb += "host:libreadline host:libncurses host:libm host:libexpat"
+
+PACKAGES =+ "${PN}-python ${PN}-syscalls ${PN}-system-gdbinit"
+FILES_${PN}-python = "${datadir}/gdb/python/"
+FILES_${PN}-syscalls = "${datadir}/gdb/syscalls/"
+FILES_${PN}-system-gdbinit = "${datadir}/gdb/system-gdbinit/"
diff --git a/recipes/gdb/gdb_7.7.oe b/recipes/gdb/gdb_7.7.oe
new file mode 100644
index 0000000..f5a11a2
--- /dev/null
+++ b/recipes/gdb/gdb_7.7.oe
@@ -0,0 +1 @@ 
+require gdb.inc
diff --git a/recipes/gdb/gdb_7.7.oe.sig b/recipes/gdb/gdb_7.7.oe.sig
new file mode 100644
index 0000000..e61fecb
--- /dev/null
+++ b/recipes/gdb/gdb_7.7.oe.sig
@@ -0,0 +1 @@ 
+5cdc83ada4fe2a37d775c36272187f08b95bebe6  gdb-7.7.tar.gz