blob: fa64939f268cdf46f810f526770b43471d53c3df [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "GNU debugger"
2HOMEPAGE = "http://www.gnu.org/software/gdb/"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05003SECTION = "devel"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08004DEPENDS = "expat zlib ncurses virtual/libiconv ${LTTNGUST} bison-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005
6LTTNGUST = "lttng-ust"
7LTTNGUST_aarch64 = ""
Brad Bishop316dfdd2018-06-25 12:45:53 -04008LTTNGUST_riscv64 = ""
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009LTTNGUST_mipsarch = ""
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010LTTNGUST_sh4 = ""
11LTTNGUST_libc-musl = ""
12
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013inherit autotools texinfo
14
Patrick Williamsc0f7c042017-02-23 20:41:17 -060015UPSTREAM_CHECK_GITTAGREGEX = "gdb\-(?P<pver>.+)\-release"
16
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017B = "${WORKDIR}/build-${TARGET_SYS}"
18
19EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
20
21EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}"
22
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080023EXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050024 --with-curses --disable-multilib --disable-sim \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025 --without-lzma --without-guile \
26 ${GDBPROPREFIX} ${EXPAT} \
27 ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
28 --disable-rpath \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060029 --disable-gas --disable-binutils \
30 --disable-ld --disable-gold \
31 --disable-gprof \
32"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050034PACKAGECONFIG ??= "readline"
35# Use --without-system-readline to compile with readline 5.
36PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060037PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3 python3-codecs"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050038PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080039# ncurses is already a hard DEPENDS, but would be added here if it weren't
40PACKAGECONFIG[tui] = "--enable-tui,--disable-tui"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050041
Patrick Williamsc124f4f2015-09-15 14:41:29 -050042GDBPROPREFIX = "--program-prefix=''"
43
44do_configure () {
45 # override this function to avoid the autoconf/automake/aclocal/autoheader
46 # calls for now
47 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
48 oe_runconf
49}
50
51# we don't want gdb to provide bfd/iberty/opcodes, which instead will override the
Brad Bishop6e60e8b2018-02-01 10:27:11 -050052# right bits installed by binutils. Same for bfd.info -- also from binutils.
Patrick Williamsc124f4f2015-09-15 14:41:29 -050053do_install_append() {
54 rm -rf ${D}${libdir}
55 rm -rf ${D}${includedir}
56 rm -rf ${D}${datadir}/locale
Brad Bishop6e60e8b2018-02-01 10:27:11 -050057 rm -f ${D}${infodir}/bfd.info
Patrick Williamsc124f4f2015-09-15 14:41:29 -050058}
59
60RRECOMMENDS_gdb_append_linux = " glibc-thread-db "
61RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db "
62RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db "
63RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db "