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.inc48
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 @@
1DESCRIPTION = "gdb - GNU debugger"
2HOMEPAGE = "http://www.gnu.org/software/gdb/"
3LICENSE="GPLv3+"
4SECTION = "devel"
5PRIORITY = "optional"
6DEPENDS = "ncurses readline elfutils"
7
8inherit autotools
9
10SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \
11 file://no-werror.patch"
12
13export CC_FOR_BUILD = "${BUILD_CC}"
14export CXX_FOR_BUILD = "${BUILD_CXX}"
15export CPP_FOR_BUILD = "${BUILD_CPP}"
16export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
17export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
18export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
19
20B = "${WORKDIR}/build-${TARGET_SYS}"
21
22EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
23
24EXPAT = "--without-expat"
25
26EXTRA_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}"
29GDBPROPREFIX = "--program-prefix=''"
30
31do_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.
40do_install_append() {
41 rm -rf ${D}${libdir}
42 rm -rf ${D}${includedir}
43 rm -rf ${D}${datadir}/locale
44}
45
46RRECOMMENDS_gdb_append_linux = " glibc-thread-db "
47RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db "
48