blob: 09231434dea2a06fea4c0b8bb0694e752e727f19 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "GNU debugger"
2HOMEPAGE = "http://www.gnu.org/software/gdb/"
3LICENSE = "GPLv3+"
4SECTION = "devel"
Patrick Williamsc0f7c042017-02-23 20:41:17 -06005DEPENDS = "expat zlib ncurses virtual/libiconv ${LTTNGUST}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
7LTTNGUST = "lttng-ust"
8LTTNGUST_aarch64 = ""
9LTTNGUST_libc-uclibc = ""
10LTTNGUST_mips = ""
11LTTNGUST_mipsel = ""
12LTTNGUST_mips64 = ""
13LTTNGUST_mips64el = ""
14LTTNGUST_mips64n32 = ""
15LTTNGUST_mips64eln32 = ""
16LTTNGUST_sh4 = ""
17LTTNGUST_libc-musl = ""
18
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
20 file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \
21 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
22 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050023
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024inherit autotools texinfo
25
Patrick Williamsc0f7c042017-02-23 20:41:17 -060026SRCREV = "1a982b689ce4e20523bdf69e47fdd574c4f63934"
27
28SRC_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
42UPSTREAM_CHECK_GITTAGREGEX = "gdb\-(?P<pver>.+)\-release"
43
44S = "${WORKDIR}/git"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050045
46B = "${WORKDIR}/build-${TARGET_SYS}"
47
48EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
49
50EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}"
51
52EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050053 --with-curses --disable-multilib --disable-sim \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050054 --without-lzma --without-guile \
55 ${GDBPROPREFIX} ${EXPAT} \
56 ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
57 --disable-rpath \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060058 --disable-gas --disable-binutils \
59 --disable-ld --disable-gold \
60 --disable-gprof \
61"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050062
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050063PACKAGECONFIG ??= "readline"
64# Use --without-system-readline to compile with readline 5.
65PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060066PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3 python3-codecs"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050067PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"
68
Patrick Williamsc124f4f2015-09-15 14:41:29 -050069GDBPROPREFIX = "--program-prefix=''"
70
71do_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.
80do_install_append() {
81 rm -rf ${D}${libdir}
82 rm -rf ${D}${includedir}
83 rm -rf ${D}${datadir}/locale
84}
85
86RRECOMMENDS_gdb_append_linux = " glibc-thread-db "
87RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db "
88RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db "
89RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db "