summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb/gdb-common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb-common.inc')
-rw-r--r--meta/recipes-devtools/gdb/gdb-common.inc70
1 files changed, 70 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
new file mode 100644
index 0000000000..93078028b0
--- /dev/null
+++ b/meta/recipes-devtools/gdb/gdb-common.inc
@@ -0,0 +1,70 @@
1SUMMARY = "GNU debugger"
2HOMEPAGE = "http://www.gnu.org/software/gdb/"
3LICENSE = "GPLv3+"
4SECTION = "devel"
5DEPENDS = "expat zlib ncurses readline ${LTTNGUST}"
6
7LTTNGUST = "lttng-ust"
8LTTNGUST_aarch64 = ""
9LTTNGUST_libc-uclibc = ""
10LTTNGUST_mips = ""
11LTTNGUST_mipsel = ""
12LTTNGUST_mips64 = ""
13LTTNGUST_mips64el = ""
14LTTNGUST_mips64n32 = ""
15LTTNGUST_mips64eln32 = ""
16LTTNGUST_sh4 = ""
17
18INC_PR = "r0"
19
20LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
21 file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \
22 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
23 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6"
24inherit autotools texinfo
25
26SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \
27 "
28export CC_FOR_BUILD = "${BUILD_CC}"
29export CXX_FOR_BUILD = "${BUILD_CXX}"
30export CPP_FOR_BUILD = "${BUILD_CPP}"
31export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
32export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
33export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
34
35B = "${WORKDIR}/build-${TARGET_SYS}"
36
37EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
38
39EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}"
40
41EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x --disable-werror \
42 --with-curses --disable-multilib --with-system-readline --disable-sim \
43 --without-lzma \
44 ${GDBPROPREFIX} ${EXPAT} \
45 ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)} \
46 --disable-rpath \
47 "
48
49GDBPROPREFIX = "--program-prefix=''"
50
51do_configure () {
52 # override this function to avoid the autoconf/automake/aclocal/autoheader
53 # calls for now
54 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
55 oe_runconf
56}
57
58# we don't want gdb to provide bfd/iberty/opcodes, which instead will override the
59# right bits installed by binutils.
60do_install_append() {
61 rm -rf ${D}${libdir}
62 rm -rf ${D}${includedir}
63 rm -rf ${D}${datadir}/locale
64}
65
66RRECOMMENDS_gdb_append_linux = " glibc-thread-db "
67RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db "
68RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db "
69RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db "
70