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