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" |
| 5 | DEPENDS = "expat zlib ncurses readline ${LTTNGUST}" |
| 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" |
| 25 | inherit autotools texinfo |
| 26 | |
| 27 | SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \ |
| 28 | " |
| 29 | export CC_FOR_BUILD = "${BUILD_CC}" |
| 30 | export CXX_FOR_BUILD = "${BUILD_CXX}" |
| 31 | export CPP_FOR_BUILD = "${BUILD_CPP}" |
| 32 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" |
| 33 | export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}" |
| 34 | export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}" |
| 35 | |
| 36 | B = "${WORKDIR}/build-${TARGET_SYS}" |
| 37 | |
| 38 | EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" |
| 39 | |
| 40 | EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}" |
| 41 | |
| 42 | EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \ |
| 43 | --with-curses --disable-multilib --with-system-readline --disable-sim \ |
| 44 | --without-lzma --without-guile \ |
| 45 | ${GDBPROPREFIX} ${EXPAT} \ |
| 46 | ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \ |
| 47 | --disable-rpath \ |
| 48 | " |
| 49 | |
| 50 | GDBPROPREFIX = "--program-prefix=''" |
| 51 | |
| 52 | do_configure () { |
| 53 | # override this function to avoid the autoconf/automake/aclocal/autoheader |
| 54 | # calls for now |
| 55 | (cd ${S} && gnu-configize) || die "failure in running gnu-configize" |
| 56 | oe_runconf |
| 57 | } |
| 58 | |
| 59 | # we don't want gdb to provide bfd/iberty/opcodes, which instead will override the |
| 60 | # right bits installed by binutils. |
| 61 | do_install_append() { |
| 62 | rm -rf ${D}${libdir} |
| 63 | rm -rf ${D}${includedir} |
| 64 | rm -rf ${D}${datadir}/locale |
| 65 | } |
| 66 | |
| 67 | RRECOMMENDS_gdb_append_linux = " glibc-thread-db " |
| 68 | RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db " |
| 69 | RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db " |
| 70 | RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db " |
| 71 | |