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 | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 5 | DEPENDS = "expat zlib ncurses virtual/libiconv ${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 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ |
| 20 | file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \ |
| 21 | file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ |
| 22 | file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 23 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 24 | inherit autotools texinfo |
| 25 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 26 | SRCREV = "1a982b689ce4e20523bdf69e47fdd574c4f63934" |
| 27 | |
| 28 | SRC_URI = "git://sourceware.org/git/binutils-gdb.git;branch=gdb-7.11-branch \ |
| 29 | file://0001-include-sys-types.h-for-mode_t.patch \ |
| 30 | file://0002-make-man-install-relative-to-DESTDIR.patch \ |
| 31 | file://0003-mips-linux-nat-Define-_ABIO32-if-not-defined.patch \ |
| 32 | file://0004-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch \ |
| 33 | file://0005-Add-support-for-Renesas-SH-sh4-architecture.patch \ |
| 34 | file://0006-Dont-disable-libreadline.a-when-using-disable-static.patch \ |
| 35 | file://0007-use-asm-sgidefs.h.patch \ |
| 36 | file://0008-Use-exorted-definitions-of-SIGRTMIN.patch \ |
| 37 | file://0009-Change-order-of-CFLAGS.patch \ |
| 38 | file://0010-resolve-restrict-keyword-conflict.patch \ |
| 39 | file://0011-avx_mpx.patch \ |
| 40 | " |
| 41 | |
| 42 | UPSTREAM_CHECK_GITTAGREGEX = "gdb\-(?P<pver>.+)\-release" |
| 43 | |
| 44 | S = "${WORKDIR}/git" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 45 | |
| 46 | B = "${WORKDIR}/build-${TARGET_SYS}" |
| 47 | |
| 48 | EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" |
| 49 | |
| 50 | EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}" |
| 51 | |
| 52 | EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 53 | --with-curses --disable-multilib --disable-sim \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 54 | --without-lzma --without-guile \ |
| 55 | ${GDBPROPREFIX} ${EXPAT} \ |
| 56 | ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \ |
| 57 | --disable-rpath \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 58 | --disable-gas --disable-binutils \ |
| 59 | --disable-ld --disable-gold \ |
| 60 | --disable-gprof \ |
| 61 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 62 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 63 | PACKAGECONFIG ??= "readline" |
| 64 | # Use --without-system-readline to compile with readline 5. |
| 65 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 66 | PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3 python3-codecs" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 67 | PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace" |
| 68 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 69 | GDBPROPREFIX = "--program-prefix=''" |
| 70 | |
| 71 | do_configure () { |
| 72 | # override this function to avoid the autoconf/automake/aclocal/autoheader |
| 73 | # calls for now |
| 74 | (cd ${S} && gnu-configize) || die "failure in running gnu-configize" |
| 75 | oe_runconf |
| 76 | } |
| 77 | |
| 78 | # we don't want gdb to provide bfd/iberty/opcodes, which instead will override the |
| 79 | # right bits installed by binutils. |
| 80 | do_install_append() { |
| 81 | rm -rf ${D}${libdir} |
| 82 | rm -rf ${D}${includedir} |
| 83 | rm -rf ${D}${datadir}/locale |
| 84 | } |
| 85 | |
| 86 | RRECOMMENDS_gdb_append_linux = " glibc-thread-db " |
| 87 | RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db " |
| 88 | RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db " |
| 89 | RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db " |