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