summaryrefslogtreecommitdiffstats
path: root/meta/packages/gdb
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-07-22 18:04:10 +0000
committerRichard Purdie <richard@openedhand.com>2007-07-22 18:04:10 +0000
commit27137aac6f9854462602f0c8a4afe385fe5eb93c (patch)
treea8bb6ea3c023f55a8d538eaf5be3c55c62824351 /meta/packages/gdb
parent59092344b9c7f8fa86facdb1c3672c0a3b50f487 (diff)
downloadpoky-27137aac6f9854462602f0c8a4afe385fe5eb93c.tar.gz
gdb: Add gdb-cross-sdk, factor out code into .inc files
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2202 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/gdb')
-rw-r--r--meta/packages/gdb/gdb-cross-sdk_6.6.bb7
-rw-r--r--meta/packages/gdb/gdb-cross.inc20
-rw-r--r--meta/packages/gdb/gdb-cross_6.6.bb36
-rw-r--r--meta/packages/gdb/gdb.inc22
-rw-r--r--meta/packages/gdb/gdb_6.6.bb22
5 files changed, 56 insertions, 51 deletions
diff --git a/meta/packages/gdb/gdb-cross-sdk_6.6.bb b/meta/packages/gdb/gdb-cross-sdk_6.6.bb
new file mode 100644
index 0000000000..b96348959f
--- /dev/null
+++ b/meta/packages/gdb/gdb-cross-sdk_6.6.bb
@@ -0,0 +1,7 @@
1require gdb-cross.inc
2
3inherit sdk
4
5do_stage() {
6 :
7}
diff --git a/meta/packages/gdb/gdb-cross.inc b/meta/packages/gdb/gdb-cross.inc
new file mode 100644
index 0000000000..3996bc6fd5
--- /dev/null
+++ b/meta/packages/gdb/gdb-cross.inc
@@ -0,0 +1,20 @@
1require gdb.inc
2
3DEPENDS = "ncurses-native"
4
5SRC_URI += "file://sim-install-6.6.patch;patch=1"
6
7EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' LDFLAGS='${BUILD_LDFLAGS}'"
8
9EXTRA_OECONF = "--with-curses --with-readline"
10
11do_configure () {
12# override this function to avoid the autoconf/automake/aclocal/autoheader
13# calls for now
14 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
15 oe_runconf
16}
17
18do_stage() {
19 oe_runmake install
20}
diff --git a/meta/packages/gdb/gdb-cross_6.6.bb b/meta/packages/gdb/gdb-cross_6.6.bb
index 58a2ce359f..0e65931882 100644
--- a/meta/packages/gdb/gdb-cross_6.6.bb
+++ b/meta/packages/gdb/gdb-cross_6.6.bb
@@ -1,35 +1,3 @@
1LICENSE = "GPL" 1require gdb-cross.inc
2DESCRIPTION = "gdb - GNU debugger"
3SECTION = "base"
4PRIORITY = "optional"
5DEPENDS = "ncurses-native"
6 2
7inherit autotools cross 3inherit cross
8
9S = "${WORKDIR}/gdb-${PV}"
10SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \
11 file://sim-install-6.6.patch;patch=1"
12
13FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gdb-${PV}"
14
15export CC_FOR_BUILD = "${BUILD_CC}"
16export CXX_FOR_BUILD = "${BUILD_CXX}"
17export CPP_FOR_BUILD = "${BUILD_CPP}"
18export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
19export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
20export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
21
22EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' LDFLAGS='${BUILD_LDFLAGS}'"
23
24EXTRA_OECONF = "--with-curses --with-readline"
25
26do_configure () {
27# override this function to avoid the autoconf/automake/aclocal/autoheader
28# calls for now
29 gnu-configize
30 oe_runconf
31}
32
33do_stage() {
34 oe_runmake install
35}
diff --git a/meta/packages/gdb/gdb.inc b/meta/packages/gdb/gdb.inc
new file mode 100644
index 0000000000..0c236925dc
--- /dev/null
+++ b/meta/packages/gdb/gdb.inc
@@ -0,0 +1,22 @@
1DESCRIPTION = "gdb - GNU debugger"
2HOMEPAGE = "http://www.gnu.org/software/gdb/"
3LICENSE="GPL"
4SECTION = "devel"
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_6.6.bb b/meta/packages/gdb/gdb_6.6.bb
index 1bfe3dfecf..356df8f339 100644
--- a/meta/packages/gdb/gdb_6.6.bb
+++ b/meta/packages/gdb/gdb_6.6.bb
@@ -1,8 +1,5 @@
1DESCRIPTION = "gdb - GNU debugger" 1require gdb.inc
2HOMEPAGE = "http://www.gnu.org/software/gdb/" 2
3LICENSE="GPL"
4SECTION = "devel"
5PRIORITY = "optional"
6DEPENDS = "ncurses readline" 3DEPENDS = "ncurses readline"
7PR = "r0" 4PR = "r0"
8 5
@@ -11,30 +8,21 @@ FILES_gdbserver = '${bindir}/gdbserver'
11 8
12RRECOMMENDS_gdb = "glibc-thread-db" 9RRECOMMENDS_gdb = "glibc-thread-db"
13 10
14inherit autotools gettext 11inherit gettext
15 12
16SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \ 13SRC_URI += file://kill_arm_map_symbols.patch;patch=1 \
17#FIXME file://uclibc.patch;patch=1 \ 14#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" 15 file://gdbserver-cflags-last.diff;patch=1;pnum=0"
20 16
21LDFLAGS_append = " -s" 17LDFLAGS_append = " -s"
22export CC_FOR_BUILD = "${BUILD_CC}"
23export CXX_FOR_BUILD = "${BUILD_CXX}"
24export CPP_FOR_BUILD = "${BUILD_CPP}"
25export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
26export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
27export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
28export CFLAGS_append=" -L${STAGING_LIBDIR}" 18export CFLAGS_append=" -L${STAGING_LIBDIR}"
19
29EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" 20EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
30 21
31EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \ 22EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \
32 --with-curses --disable-multilib --with-readline --disable-sim \ 23 --with-curses --disable-multilib --with-readline --disable-sim \
33 --program-prefix=''" 24 --program-prefix=''"
34 25
35S = "${WORKDIR}/gdb-${PV}"
36B = "${WORKDIR}/build-${TARGET_SYS}"
37
38do_configure () { 26do_configure () {
39# override this function to avoid the autoconf/automake/aclocal/autoheader 27# override this function to avoid the autoconf/automake/aclocal/autoheader
40# calls for now 28# calls for now