summaryrefslogtreecommitdiffstats
path: root/meta/packages/gdb/gdb_6.4.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gdb/gdb_6.4.bb')
-rw-r--r--meta/packages/gdb/gdb_6.4.bb49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/packages/gdb/gdb_6.4.bb b/meta/packages/gdb/gdb_6.4.bb
new file mode 100644
index 0000000000..2647c5529e
--- /dev/null
+++ b/meta/packages/gdb/gdb_6.4.bb
@@ -0,0 +1,49 @@
1DESCRIPTION = "gdb - GNU debugger"
2HOMEPAGE = "http://www.gnu.org/software/gdb/"
3LICENSE="GPL"
4SECTION = "devel"
5PRIORITY = "optional"
6DEPENDS = "ncurses readline"
7RDEPENDS_openmn = "libthread-db1"
8PR = "r2"
9
10PACKAGES =+ 'gdbserver '
11FILES_gdbserver = '${bindir}/gdbserver'
12
13inherit autotools gettext
14
15SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \
16# file://uclibc.patch;patch=1 \
17 file://kill_arm_map_symbols.patch;patch=1 \
18 file://gdbserver-cflags-last.diff;patch=1;pnum=0"
19
20LDFLAGS_append = " -s"
21export CC_FOR_BUILD = "${BUILD_CC}"
22export CXX_FOR_BUILD = "${BUILD_CXX}"
23export CPP_FOR_BUILD = "${BUILD_CPP}"
24export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
25export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
26export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
27export CFLAGS_append=" -L${STAGING_LIBDIR}"
28EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
29
30EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \
31 --with-curses --disable-multilib --with-readline --disable-sim \
32 --program-prefix=''"
33
34S = "${WORKDIR}/gdb-${PV}"
35B = "${WORKDIR}/build-${TARGET_SYS}"
36
37do_configure () {
38# override this function to avoid the autoconf/automake/aclocal/autoheader
39# calls for now
40 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
41 CPPFLAGS="" oe_runconf
42}
43
44do_install () {
45 make -C bfd/doc chew LDFLAGS= CFLAGS=-O2
46 oe_runmake DESTDIR='${D}' install
47 install -d ${D}${bindir}
48 install -m 0755 gdb/gdbserver/gdbserver ${D}${bindir}
49}