summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb/gdb-common.inc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-devtools/gdb/gdb-common.inc
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
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