blob: 166ba8eeab91754e64a591679b2e52b4007a3a15 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "GNU debugger"
2HOMEPAGE = "http://www.gnu.org/software/gdb/"
3LICENSE = "GPLv3+"
4SECTION = "devel"
5DEPENDS = "expat zlib ncurses readline ${LTTNGUST}"
6
7LTTNGUST = "lttng-ust"
8LTTNGUST_aarch64 = ""
9LTTNGUST_libc-uclibc = ""
10LTTNGUST_mips = ""
11LTTNGUST_mipsel = ""
12LTTNGUST_mips64 = ""
13LTTNGUST_mips64el = ""
14LTTNGUST_mips64n32 = ""
15LTTNGUST_mips64eln32 = ""
16LTTNGUST_sh4 = ""
17LTTNGUST_libc-musl = ""
18
19INC_PR = "r0"
20
21LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
22 file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \
23 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
24 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6"
25inherit autotools texinfo
26
27SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \
28 "
29export CC_FOR_BUILD = "${BUILD_CC}"
30export CXX_FOR_BUILD = "${BUILD_CXX}"
31export CPP_FOR_BUILD = "${BUILD_CPP}"
32export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
33export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
34export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
35
36B = "${WORKDIR}/build-${TARGET_SYS}"
37
38EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
39
40EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}"
41
42EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \
43 --with-curses --disable-multilib --with-system-readline --disable-sim \
44 --without-lzma --without-guile \
45 ${GDBPROPREFIX} ${EXPAT} \
46 ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
47 --disable-rpath \
48 "
49
50GDBPROPREFIX = "--program-prefix=''"
51
52do_configure () {
53 # override this function to avoid the autoconf/automake/aclocal/autoheader
54 # calls for now
55 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
56 oe_runconf
57}
58
59# we don't want gdb to provide bfd/iberty/opcodes, which instead will override the
60# right bits installed by binutils.
61do_install_append() {
62 rm -rf ${D}${libdir}
63 rm -rf ${D}${includedir}
64 rm -rf ${D}${datadir}/locale
65}
66
67RRECOMMENDS_gdb_append_linux = " glibc-thread-db "
68RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db "
69RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db "
70RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db "
71