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 = "" |
| 8 | LTTNGUST_libc-uclibc = "" |
| 9 | LTTNGUST_mips = "" |
| 10 | LTTNGUST_mipsel = "" |
| 11 | LTTNGUST_mips64 = "" |
| 12 | LTTNGUST_mips64el = "" |
| 13 | LTTNGUST_mips64n32 = "" |
| 14 | LTTNGUST_mips64eln32 = "" |
| 15 | LTTNGUST_sh4 = "" |
| 16 | LTTNGUST_libc-musl = "" |
| 17 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | inherit autotools texinfo |
| 19 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 20 | UPSTREAM_CHECK_GITTAGREGEX = "gdb\-(?P<pver>.+)\-release" |
| 21 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 22 | B = "${WORKDIR}/build-${TARGET_SYS}" |
| 23 | |
| 24 | EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" |
| 25 | |
| 26 | EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}" |
| 27 | |
| 28 | EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 29 | --with-curses --disable-multilib --disable-sim \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 30 | --without-lzma --without-guile \ |
| 31 | ${GDBPROPREFIX} ${EXPAT} \ |
| 32 | ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \ |
| 33 | --disable-rpath \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 34 | --disable-gas --disable-binutils \ |
| 35 | --disable-ld --disable-gold \ |
| 36 | --disable-gprof \ |
| 37 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 38 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 39 | PACKAGECONFIG ??= "readline" |
| 40 | # Use --without-system-readline to compile with readline 5. |
| 41 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 42 | PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3 python3-codecs" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 43 | PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace" |
| 44 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 45 | GDBPROPREFIX = "--program-prefix=''" |
| 46 | |
| 47 | do_configure () { |
| 48 | # override this function to avoid the autoconf/automake/aclocal/autoheader |
| 49 | # calls for now |
| 50 | (cd ${S} && gnu-configize) || die "failure in running gnu-configize" |
| 51 | oe_runconf |
| 52 | } |
| 53 | |
| 54 | # we don't want gdb to provide bfd/iberty/opcodes, which instead will override the |
| 55 | # right bits installed by binutils. |
| 56 | do_install_append() { |
| 57 | rm -rf ${D}${libdir} |
| 58 | rm -rf ${D}${includedir} |
| 59 | rm -rf ${D}${datadir}/locale |
| 60 | } |
| 61 | |
| 62 | RRECOMMENDS_gdb_append_linux = " glibc-thread-db " |
| 63 | RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db " |
| 64 | RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db " |
| 65 | RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db " |