diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/gdb/gdb-cross_6.6.bb | 35 | ||||
-rw-r--r-- | meta/packages/gdb/gdb_6.6.bb | 50 |
2 files changed, 85 insertions, 0 deletions
diff --git a/meta/packages/gdb/gdb-cross_6.6.bb b/meta/packages/gdb/gdb-cross_6.6.bb new file mode 100644 index 0000000000..32076b529e --- /dev/null +++ b/meta/packages/gdb/gdb-cross_6.6.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | LICENSE = "GPL" | ||
2 | DESCRIPTION = "gdb - GNU debugger" | ||
3 | SECTION = "base" | ||
4 | PRIORITY = "optional" | ||
5 | DEPENDS = "ncurses-native" | ||
6 | |||
7 | inherit autotools sdk | ||
8 | |||
9 | S = "${WORKDIR}/gdb-${PV}" | ||
10 | SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \ | ||
11 | file://sim-install.patch;patch=1" | ||
12 | |||
13 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gdb-${PV}" | ||
14 | |||
15 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
16 | export CXX_FOR_BUILD = "${BUILD_CXX}" | ||
17 | export CPP_FOR_BUILD = "${BUILD_CPP}" | ||
18 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" | ||
19 | export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}" | ||
20 | export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}" | ||
21 | |||
22 | EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' LDFLAGS='${BUILD_LDFLAGS}'" | ||
23 | |||
24 | EXTRA_OECONF = "--with-curses --with-readline" | ||
25 | |||
26 | do_configure () { | ||
27 | # override this function to avoid the autoconf/automake/aclocal/autoheader | ||
28 | # calls for now | ||
29 | gnu-configize | ||
30 | oe_runconf | ||
31 | } | ||
32 | |||
33 | do_stage() { | ||
34 | : | ||
35 | } | ||
diff --git a/meta/packages/gdb/gdb_6.6.bb b/meta/packages/gdb/gdb_6.6.bb new file mode 100644 index 0000000000..1bfe3dfecf --- /dev/null +++ b/meta/packages/gdb/gdb_6.6.bb | |||
@@ -0,0 +1,50 @@ | |||
1 | DESCRIPTION = "gdb - GNU debugger" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/gdb/" | ||
3 | LICENSE="GPL" | ||
4 | SECTION = "devel" | ||
5 | PRIORITY = "optional" | ||
6 | DEPENDS = "ncurses readline" | ||
7 | PR = "r0" | ||
8 | |||
9 | PACKAGES =+ 'gdbserver ' | ||
10 | FILES_gdbserver = '${bindir}/gdbserver' | ||
11 | |||
12 | RRECOMMENDS_gdb = "glibc-thread-db" | ||
13 | |||
14 | inherit autotools gettext | ||
15 | |||
16 | SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \ | ||
17 | #FIXME file://uclibc.patch;patch=1 \ | ||
18 | file://kill_arm_map_symbols.patch;patch=1 \ | ||
19 | file://gdbserver-cflags-last.diff;patch=1;pnum=0" | ||
20 | |||
21 | LDFLAGS_append = " -s" | ||
22 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
23 | export CXX_FOR_BUILD = "${BUILD_CXX}" | ||
24 | export CPP_FOR_BUILD = "${BUILD_CPP}" | ||
25 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" | ||
26 | export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}" | ||
27 | export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}" | ||
28 | export CFLAGS_append=" -L${STAGING_LIBDIR}" | ||
29 | EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" | ||
30 | |||
31 | EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \ | ||
32 | --with-curses --disable-multilib --with-readline --disable-sim \ | ||
33 | --program-prefix=''" | ||
34 | |||
35 | S = "${WORKDIR}/gdb-${PV}" | ||
36 | B = "${WORKDIR}/build-${TARGET_SYS}" | ||
37 | |||
38 | do_configure () { | ||
39 | # override this function to avoid the autoconf/automake/aclocal/autoheader | ||
40 | # calls for now | ||
41 | (cd ${S} && gnu-configize) || die "failure in running gnu-configize" | ||
42 | CPPFLAGS="" oe_runconf | ||
43 | } | ||
44 | |||
45 | do_install () { | ||
46 | make -C bfd/doc chew LDFLAGS= CFLAGS=-O2 | ||
47 | oe_runmake DESTDIR='${D}' install | ||
48 | install -d ${D}${bindir} | ||
49 | install -m 0755 gdb/gdbserver/gdbserver ${D}${bindir} | ||
50 | } | ||