Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "GNU debugger" |
| 2 | HOMEPAGE = "http://www.gnu.org/software/gdb/" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 3 | SECTION = "devel" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 4 | DEPENDS = "expat zlib ncurses virtual/libiconv ${LTTNGUST}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | |
| 6 | LTTNGUST = "lttng-ust" |
| 7 | LTTNGUST_aarch64 = "" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 8 | LTTNGUST_riscv64 = "" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 9 | LTTNGUST_mipsarch = "" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | LTTNGUST_sh4 = "" |
| 11 | LTTNGUST_libc-musl = "" |
| 12 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | inherit autotools texinfo |
| 14 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 15 | UPSTREAM_CHECK_GITTAGREGEX = "gdb\-(?P<pver>.+)\-release" |
| 16 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | B = "${WORKDIR}/build-${TARGET_SYS}" |
| 18 | |
| 19 | EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" |
| 20 | |
| 21 | EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}" |
| 22 | |
| 23 | EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 24 | --with-curses --disable-multilib --disable-sim \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | --without-lzma --without-guile \ |
| 26 | ${GDBPROPREFIX} ${EXPAT} \ |
| 27 | ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \ |
| 28 | --disable-rpath \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 29 | --disable-gas --disable-binutils \ |
| 30 | --disable-ld --disable-gold \ |
| 31 | --disable-gprof \ |
| 32 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 33 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 34 | PACKAGECONFIG ??= "readline" |
| 35 | # Use --without-system-readline to compile with readline 5. |
| 36 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 37 | PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3 python3-codecs" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 38 | PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace" |
| 39 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 40 | GDBPROPREFIX = "--program-prefix=''" |
| 41 | |
| 42 | do_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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 50 | # right bits installed by binutils. Same for bfd.info -- also from binutils. |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 51 | do_install_append() { |
| 52 | rm -rf ${D}${libdir} |
| 53 | rm -rf ${D}${includedir} |
| 54 | rm -rf ${D}${datadir}/locale |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 55 | rm -f ${D}${infodir}/bfd.info |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 56 | } |
| 57 | |
| 58 | RRECOMMENDS_gdb_append_linux = " glibc-thread-db " |
| 59 | RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db " |
| 60 | RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db " |
| 61 | RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db " |