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