blob: bfb8013d6710f0bcaca9abb0617176ef576f1f2a [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"
Brad Bishop19323692019-04-05 15:28:33 -04007LTTNGUST_arc = ""
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008LTTNGUST_aarch64 = ""
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009LTTNGUST_mipsarch = ""
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010LTTNGUST_sh4 = ""
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012inherit autotools texinfo
13
Patrick Williamsc0f7c042017-02-23 20:41:17 -060014UPSTREAM_CHECK_GITTAGREGEX = "gdb\-(?P<pver>.+)\-release"
15
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016B = "${WORKDIR}/build-${TARGET_SYS}"
17
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}"
19
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080020EXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050021 --with-curses --disable-multilib --disable-sim \
Andrew Geissler6ce62a22020-11-30 19:58:47 -060022 --without-guile \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023 ${GDBPROPREFIX} ${EXPAT} \
24 ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
25 --disable-rpath \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060026 --disable-gas --disable-binutils \
27 --disable-ld --disable-gold \
28 --disable-gprof \
29"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050031PACKAGECONFIG ??= "readline"
32# Use --without-system-readline to compile with readline 5.
33PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060034PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3 python3-codecs"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050035PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080036# ncurses is already a hard DEPENDS, but would be added here if it weren't
37PACKAGECONFIG[tui] = "--enable-tui,--disable-tui"
Andrew Geissler6ce62a22020-11-30 19:58:47 -060038PACKAGECONFIG[xz] = "--with-lzma,--without-lzma,xz"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050039
Patrick Williamsc124f4f2015-09-15 14:41:29 -050040GDBPROPREFIX = "--program-prefix=''"
41
Andrew Geissler6ce62a22020-11-30 19:58:47 -060042DISABLE_STATIC = ""
43
Patrick Williamsc124f4f2015-09-15 14:41:29 -050044do_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 "