diff options
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb-common.inc')
-rw-r--r-- | meta/recipes-devtools/gdb/gdb-common.inc | 48 |
1 files changed, 48 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..16b653e46e --- /dev/null +++ b/meta/recipes-devtools/gdb/gdb-common.inc | |||
@@ -0,0 +1,48 @@ | |||
1 | DESCRIPTION = "gdb - GNU debugger" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/gdb/" | ||
3 | LICENSE="GPLv3+" | ||
4 | SECTION = "devel" | ||
5 | PRIORITY = "optional" | ||
6 | DEPENDS = "ncurses readline elfutils" | ||
7 | |||
8 | inherit autotools | ||
9 | |||
10 | SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \ | ||
11 | file://no-werror.patch" | ||
12 | |||
13 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
14 | export CXX_FOR_BUILD = "${BUILD_CXX}" | ||
15 | export CPP_FOR_BUILD = "${BUILD_CPP}" | ||
16 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" | ||
17 | export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}" | ||
18 | export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}" | ||
19 | |||
20 | B = "${WORKDIR}/build-${TARGET_SYS}" | ||
21 | |||
22 | EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" | ||
23 | |||
24 | EXPAT = "--without-expat" | ||
25 | |||
26 | EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \ | ||
27 | --with-curses --disable-multilib --with-system-readline --disable-sim \ | ||
28 | ${GDBPROPREFIX} --with-libelf=${STAGING_DIR_TARGET} ${EXPAT}" | ||
29 | GDBPROPREFIX = "--program-prefix=''" | ||
30 | |||
31 | do_configure () { | ||
32 | # override this function to avoid the autoconf/automake/aclocal/autoheader | ||
33 | # calls for now | ||
34 | (cd ${S} && gnu-configize) || die "failure in running gnu-configize" | ||
35 | oe_runconf | ||
36 | } | ||
37 | |||
38 | # we don't want gdb to provide bfd/iberty/opcodes, which instead will override the | ||
39 | # right bits installed by binutils. | ||
40 | do_install_append() { | ||
41 | rm -rf ${D}${libdir} | ||
42 | rm -rf ${D}${includedir} | ||
43 | rm -rf ${D}${datadir}/locale | ||
44 | } | ||
45 | |||
46 | RRECOMMENDS_gdb_append_linux = " glibc-thread-db " | ||
47 | RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db " | ||
48 | |||