Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "GNU debugger" |
| 2 | HOMEPAGE = "http://www.gnu.org/software/gdb/" |
| 3 | LICENSE = "GPLv3+" |
| 4 | SECTION = "devel" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 5 | DEPENDS = "expat zlib ncurses ${LTTNGUST}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | |
| 7 | LTTNGUST = "lttng-ust" |
| 8 | LTTNGUST_aarch64 = "" |
| 9 | LTTNGUST_libc-uclibc = "" |
| 10 | LTTNGUST_mips = "" |
| 11 | LTTNGUST_mipsel = "" |
| 12 | LTTNGUST_mips64 = "" |
| 13 | LTTNGUST_mips64el = "" |
| 14 | LTTNGUST_mips64n32 = "" |
| 15 | LTTNGUST_mips64eln32 = "" |
| 16 | LTTNGUST_sh4 = "" |
| 17 | LTTNGUST_libc-musl = "" |
| 18 | |
| 19 | INC_PR = "r0" |
| 20 | |
| 21 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ |
| 22 | file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \ |
| 23 | file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ |
| 24 | file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 25 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 26 | inherit autotools texinfo |
| 27 | |
| 28 | SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \ |
| 29 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 30 | |
| 31 | B = "${WORKDIR}/build-${TARGET_SYS}" |
| 32 | |
| 33 | EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" |
| 34 | |
| 35 | EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}" |
| 36 | |
| 37 | EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 38 | --with-curses --disable-multilib --disable-sim \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | --without-lzma --without-guile \ |
| 40 | ${GDBPROPREFIX} ${EXPAT} \ |
| 41 | ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \ |
| 42 | --disable-rpath \ |
| 43 | " |
| 44 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 45 | PACKAGECONFIG ??= "readline" |
| 46 | # Use --without-system-readline to compile with readline 5. |
| 47 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" |
| 48 | PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python,python python-codecs" |
| 49 | PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace" |
| 50 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 51 | GDBPROPREFIX = "--program-prefix=''" |
| 52 | |
| 53 | do_configure () { |
| 54 | # override this function to avoid the autoconf/automake/aclocal/autoheader |
| 55 | # calls for now |
| 56 | (cd ${S} && gnu-configize) || die "failure in running gnu-configize" |
| 57 | oe_runconf |
| 58 | } |
| 59 | |
| 60 | # we don't want gdb to provide bfd/iberty/opcodes, which instead will override the |
| 61 | # right bits installed by binutils. |
| 62 | do_install_append() { |
| 63 | rm -rf ${D}${libdir} |
| 64 | rm -rf ${D}${includedir} |
| 65 | rm -rf ${D}${datadir}/locale |
| 66 | } |
| 67 | |
| 68 | RRECOMMENDS_gdb_append_linux = " glibc-thread-db " |
| 69 | RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db " |
| 70 | RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db " |
| 71 | RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db " |
| 72 | |