diff options
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb-common.inc')
-rw-r--r-- | meta/recipes-devtools/gdb/gdb-common.inc | 68 |
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 @@ | |||
1 | SUMMARY = "GNU debugger" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/gdb/" | ||
3 | LICENSE = "GPLv3+" | ||
4 | SECTION = "devel" | ||
5 | DEPENDS = "expat 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_sh4 = "" | ||
15 | |||
16 | INC_PR = "r0" | ||
17 | |||
18 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ | ||
19 | file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \ | ||
20 | file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ | ||
21 | file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6" | ||
22 | inherit autotools | ||
23 | |||
24 | SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \ | ||
25 | " | ||
26 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
27 | export CXX_FOR_BUILD = "${BUILD_CXX}" | ||
28 | export CPP_FOR_BUILD = "${BUILD_CPP}" | ||
29 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" | ||
30 | export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}" | ||
31 | export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}" | ||
32 | |||
33 | B = "${WORKDIR}/build-${TARGET_SYS}" | ||
34 | |||
35 | EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" | ||
36 | |||
37 | EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}" | ||
38 | |||
39 | EXTRA_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 | |||
47 | GDBPROPREFIX = "--program-prefix=''" | ||
48 | |||
49 | do_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. | ||
58 | do_install_append() { | ||
59 | rm -rf ${D}${libdir} | ||
60 | rm -rf ${D}${includedir} | ||
61 | rm -rf ${D}${datadir}/locale | ||
62 | } | ||
63 | |||
64 | RRECOMMENDS_gdb_append_linux = " glibc-thread-db " | ||
65 | RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db " | ||
66 | RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db " | ||
67 | RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db " | ||
68 | |||