blob: 08f615addfc9eff24eeae54f39e18da8f2684276 [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
18EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
19
20EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}"
21
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080022EXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050023 --with-curses --disable-multilib --disable-sim \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024 --without-lzma --without-guile \
25 ${GDBPROPREFIX} ${EXPAT} \
26 ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
27 --disable-rpath \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060028 --disable-gas --disable-binutils \
29 --disable-ld --disable-gold \
30 --disable-gprof \
31"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050033PACKAGECONFIG ??= "readline"
34# Use --without-system-readline to compile with readline 5.
35PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060036PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3 python3-codecs"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050037PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080038# ncurses is already a hard DEPENDS, but would be added here if it weren't
39PACKAGECONFIG[tui] = "--enable-tui,--disable-tui"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050040
Patrick Williamsc124f4f2015-09-15 14:41:29 -050041GDBPROPREFIX = "--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
Brad Bishop6e60e8b2018-02-01 10:27:11 -050051# right bits installed by binutils. Same for bfd.info -- also from binutils.
Patrick Williamsc124f4f2015-09-15 14:41:29 -050052do_install_append() {
53 rm -rf ${D}${libdir}
54 rm -rf ${D}${includedir}
55 rm -rf ${D}${datadir}/locale
Brad Bishop6e60e8b2018-02-01 10:27:11 -050056 rm -f ${D}${infodir}/bfd.info
Patrick Williamsc124f4f2015-09-15 14:41:29 -050057}
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 "