blob: 039577b8e22bdbca56dae2571060c5801401b849 [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"
Patrick Williamsc0f7c042017-02-23 20:41:17 -06004DEPENDS = "expat zlib ncurses virtual/libiconv ${LTTNGUST}"
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
23EXTRA_OECONF = "--disable-gdbtk --disable-tui --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"
39
Patrick Williamsc124f4f2015-09-15 14:41:29 -050040GDBPROPREFIX = "--program-prefix=''"
41
42do_configure () {
43 # override this function to avoid the autoconf/automake/aclocal/autoheader
44 # calls for now
45 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
46 oe_runconf
47}
48
49# we don't want gdb to provide bfd/iberty/opcodes, which instead will override the
Brad Bishop6e60e8b2018-02-01 10:27:11 -050050# right bits installed by binutils. Same for bfd.info -- also from binutils.
Patrick Williamsc124f4f2015-09-15 14:41:29 -050051do_install_append() {
52 rm -rf ${D}${libdir}
53 rm -rf ${D}${includedir}
54 rm -rf ${D}${datadir}/locale
Brad Bishop6e60e8b2018-02-01 10:27:11 -050055 rm -f ${D}${infodir}/bfd.info
Patrick Williamsc124f4f2015-09-15 14:41:29 -050056}
57
58RRECOMMENDS_gdb_append_linux = " glibc-thread-db "
59RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db "
60RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db "
61RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db "