diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-devtools/gdb/gdb-common.inc | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb-common.inc')
-rw-r--r-- | meta/recipes-devtools/gdb/gdb-common.inc | 70 |
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 @@ | |||
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 | |||
18 | INC_PR = "r0" | ||
19 | |||
20 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ | ||
21 | file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \ | ||
22 | file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \ | ||
23 | file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6" | ||
24 | inherit autotools texinfo | ||
25 | |||
26 | SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \ | ||
27 | " | ||
28 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
29 | export CXX_FOR_BUILD = "${BUILD_CXX}" | ||
30 | export CPP_FOR_BUILD = "${BUILD_CPP}" | ||
31 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" | ||
32 | export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}" | ||
33 | export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}" | ||
34 | |||
35 | B = "${WORKDIR}/build-${TARGET_SYS}" | ||
36 | |||
37 | EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" | ||
38 | |||
39 | EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}" | ||
40 | |||
41 | EXTRA_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 | |||
49 | GDBPROPREFIX = "--program-prefix=''" | ||
50 | |||
51 | do_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. | ||
60 | do_install_append() { | ||
61 | rm -rf ${D}${libdir} | ||
62 | rm -rf ${D}${includedir} | ||
63 | rm -rf ${D}${datadir}/locale | ||
64 | } | ||
65 | |||
66 | RRECOMMENDS_gdb_append_linux = " glibc-thread-db " | ||
67 | RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db " | ||
68 | RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db " | ||
69 | RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db " | ||
70 | |||