blob: 08f615addfc9eff24eeae54f39e18da8f2684276 [file] [log] [blame]
Andrew Geissleraaf90cd2021-02-12 15:29:51 -06001SUMMARY = "GNU debugger"
2HOMEPAGE = "http://www.gnu.org/software/gdb/"
3SECTION = "devel"
4DEPENDS = "expat zlib ncurses virtual/libiconv ${LTTNGUST} bison-native"
5
6LTTNGUST = "lttng-ust"
7LTTNGUST_arc = ""
8LTTNGUST_aarch64 = ""
9LTTNGUST_mipsarch = ""
10LTTNGUST_sh4 = ""
11
12inherit autotools texinfo
13
14UPSTREAM_CHECK_GITTAGREGEX = "gdb\-(?P<pver>.+)\-release"
15
16B = "${WORKDIR}/build-${TARGET_SYS}"
17
18EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
19
20EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}"
21
22EXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \
23 --with-curses --disable-multilib --disable-sim \
24 --without-lzma --without-guile \
25 ${GDBPROPREFIX} ${EXPAT} \
26 ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
27 --disable-rpath \
28 --disable-gas --disable-binutils \
29 --disable-ld --disable-gold \
30 --disable-gprof \
31"
32
33PACKAGECONFIG ??= "readline"
34# Use --without-system-readline to compile with readline 5.
35PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline"
36PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3 python3-codecs"
37PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"
38# ncurses is already a hard DEPENDS, but would be added here if it weren't
39PACKAGECONFIG[tui] = "--enable-tui,--disable-tui"
40
41GDBPROPREFIX = "--program-prefix=''"
42
43do_configure () {
44 # override this function to avoid the autoconf/automake/aclocal/autoheader
45 # calls for now
46 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
47 oe_runconf
48}
49
50# we don't want gdb to provide bfd/iberty/opcodes, which instead will override the
51# right bits installed by binutils. Same for bfd.info -- also from binutils.
52do_install_append() {
53 rm -rf ${D}${libdir}
54 rm -rf ${D}${includedir}
55 rm -rf ${D}${datadir}/locale
56 rm -f ${D}${infodir}/bfd.info
57}
58
59RRECOMMENDS_gdb_append_linux = " glibc-thread-db "
60RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db "
61RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db "
62RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db "