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