summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-09-01 17:51:00 +0000
committerRichard Purdie <richard@openedhand.com>2007-09-01 17:51:00 +0000
commit1e829f1ef9534f1b106a0e010c7045fbc9b0f811 (patch)
tree09ea7e90e87d78b3b54ad5605be2351d024b4813
parentdfa8101ba0b2191612dd79404581cff07dece60b (diff)
downloadpoky-1e829f1ef9534f1b106a0e010c7045fbc9b0f811.tar.gz
gdb: metadata cleanup
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2634 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--meta/packages/gdb/gdb-common.inc22
-rw-r--r--meta/packages/gdb/gdb-cross.inc4
-rw-r--r--meta/packages/gdb/gdb.inc50
-rw-r--r--meta/packages/gdb/gdb_6.6.bb32
4 files changed, 58 insertions, 50 deletions
diff --git a/meta/packages/gdb/gdb-common.inc b/meta/packages/gdb/gdb-common.inc
new file mode 100644
index 0000000000..a910feec0f
--- /dev/null
+++ b/meta/packages/gdb/gdb-common.inc
@@ -0,0 +1,22 @@
1DESCRIPTION = "gdb - GNU debugger"
2HOMEPAGE = "http://www.gnu.org/software/gdb/"
3LICENSE="GPL"
4SECTION = "devel"z
5PRIORITY = "optional"
6
7inherit autotools
8
9SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz"
10
11FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gdb-${PV}"
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
20S = "${WORKDIR}/gdb-${PV}"
21B = "${WORKDIR}/build-${TARGET_SYS}"
22
diff --git a/meta/packages/gdb/gdb-cross.inc b/meta/packages/gdb/gdb-cross.inc
index 3996bc6fd5..75de1cfef7 100644
--- a/meta/packages/gdb/gdb-cross.inc
+++ b/meta/packages/gdb/gdb-cross.inc
@@ -1,4 +1,4 @@
1require gdb.inc 1require gdb-common.inc
2 2
3DEPENDS = "ncurses-native" 3DEPENDS = "ncurses-native"
4 4
@@ -15,6 +15,6 @@ do_configure () {
15 oe_runconf 15 oe_runconf
16} 16}
17 17
18do_stage() { 18do_stage () {
19 oe_runmake install 19 oe_runmake install
20} 20}
diff --git a/meta/packages/gdb/gdb.inc b/meta/packages/gdb/gdb.inc
index 0c236925dc..d3b9d864e7 100644
--- a/meta/packages/gdb/gdb.inc
+++ b/meta/packages/gdb/gdb.inc
@@ -1,22 +1,40 @@
1DESCRIPTION = "gdb - GNU debugger" 1require gdb-common.inc
2HOMEPAGE = "http://www.gnu.org/software/gdb/"
3LICENSE="GPL"
4SECTION = "devel"
5PRIORITY = "optional"
6 2
7inherit autotools 3DEPENDS = "ncurses readline"
8 4
9SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz" 5PACKAGES =+ "gdbserver"
6FILES_gdbserver = "${bindir}/gdbserver"
10 7
11FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gdb-${PV}" 8RRECOMMENDS_gdb_append_linux = " glibc-thread-db "
9RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db "
12 10
13export CC_FOR_BUILD = "${BUILD_CC}" 11inherit gettext
14export CXX_FOR_BUILD = "${BUILD_CXX}" 12
15export CPP_FOR_BUILD = "${BUILD_CPP}" 13SRC_URI += "file://kill_arm_map_symbols.patch;patch=1 \
16export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" 14 file://gdbserver-cflags-last.diff;patch=1;pnum=0"
17export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}" 15#FIXME file://uclibc.patch;patch=1 \
18export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}" 16
17EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
18
19EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \
20 --with-curses --disable-multilib --with-readline --disable-sim \
21 --program-prefix=''"
22
23LDFLAGS_append = " -s"
24export CFLAGS_append=" -L${STAGING_LIBDIR}"
25
26do_configure () {
27 # override this function to avoid the autoconf/automake/aclocal/autoheader
28 # calls for now
29 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
30 CPPFLAGS="" oe_runconf
31}
32
33do_install () {
34 make -C bfd/doc chew LDFLAGS= CFLAGS=-O2
35 oe_runmake DESTDIR='${D}' install
36 install -d ${D}${bindir}
37 install -m 0755 gdb/gdbserver/gdbserver ${D}${bindir}
38}
19 39
20S = "${WORKDIR}/gdb-${PV}"
21B = "${WORKDIR}/build-${TARGET_SYS}"
22 40
diff --git a/meta/packages/gdb/gdb_6.6.bb b/meta/packages/gdb/gdb_6.6.bb
index 58bcf94938..418e0d4d8a 100644
--- a/meta/packages/gdb/gdb_6.6.bb
+++ b/meta/packages/gdb/gdb_6.6.bb
@@ -1,38 +1,6 @@
1require gdb.inc 1require gdb.inc
2 2
3DEPENDS = "ncurses readline"
4PR = "r0" 3PR = "r0"
5 4
6PACKAGES =+ 'gdbserver '
7FILES_gdbserver = '${bindir}/gdbserver'
8 5
9RRECOMMENDS_gdb = "glibc-thread-db"
10 6
11inherit gettext
12
13SRC_URI += "file://kill_arm_map_symbols.patch;patch=1 \
14#FIXME file://uclibc.patch;patch=1 \
15 file://gdbserver-cflags-last.diff;patch=1;pnum=0"
16
17LDFLAGS_append = " -s"
18export CFLAGS_append=" -L${STAGING_LIBDIR}"
19
20EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
21
22EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \
23 --with-curses --disable-multilib --with-readline --disable-sim \
24 --program-prefix=''"
25
26do_configure () {
27# override this function to avoid the autoconf/automake/aclocal/autoheader
28# calls for now
29 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
30 CPPFLAGS="" oe_runconf
31}
32
33do_install () {
34 make -C bfd/doc chew LDFLAGS= CFLAGS=-O2
35 oe_runmake DESTDIR='${D}' install
36 install -d ${D}${bindir}
37 install -m 0755 gdb/gdbserver/gdbserver ${D}${bindir}
38}