blob: 0d28ee4eef9cfb8b2d131fbba676338d0b1f3ae1 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "GNU debugger"
2HOMEPAGE = "http://www.gnu.org/software/gdb/"
3LICENSE = "GPLv3+"
4SECTION = "devel"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05005DEPENDS = "expat zlib ncurses ${LTTNGUST}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
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"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050025
Patrick Williamsc124f4f2015-09-15 14:41:29 -050026inherit autotools texinfo
27
28SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \
29 "
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030
31B = "${WORKDIR}/build-${TARGET_SYS}"
32
33EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
34
35EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}"
36
37EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050038 --with-curses --disable-multilib --disable-sim \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050039 --without-lzma --without-guile \
40 ${GDBPROPREFIX} ${EXPAT} \
41 ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
42 --disable-rpath \
43 "
44
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050045PACKAGECONFIG ??= "readline"
46# Use --without-system-readline to compile with readline 5.
47PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline"
48PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python,python python-codecs"
49PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"
50
Patrick Williamsc124f4f2015-09-15 14:41:29 -050051GDBPROPREFIX = "--program-prefix=''"
52
53do_configure () {
54 # override this function to avoid the autoconf/automake/aclocal/autoheader
55 # calls for now
56 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
57 oe_runconf
58}
59
60# we don't want gdb to provide bfd/iberty/opcodes, which instead will override the
61# right bits installed by binutils.
62do_install_append() {
63 rm -rf ${D}${libdir}
64 rm -rf ${D}${includedir}
65 rm -rf ${D}${datadir}/locale
66}
67
68RRECOMMENDS_gdb_append_linux = " glibc-thread-db "
69RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db "
70RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db "
71RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db "
72