diff options
author | Richard Purdie <richard@openedhand.com> | 2007-07-22 18:04:10 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-07-22 18:04:10 +0000 |
commit | 27137aac6f9854462602f0c8a4afe385fe5eb93c (patch) | |
tree | a8bb6ea3c023f55a8d538eaf5be3c55c62824351 | |
parent | 59092344b9c7f8fa86facdb1c3672c0a3b50f487 (diff) | |
download | poky-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
-rw-r--r-- | meta/packages/gdb/gdb-cross-sdk_6.6.bb | 7 | ||||
-rw-r--r-- | meta/packages/gdb/gdb-cross.inc | 20 | ||||
-rw-r--r-- | meta/packages/gdb/gdb-cross_6.6.bb | 36 | ||||
-rw-r--r-- | meta/packages/gdb/gdb.inc | 22 | ||||
-rw-r--r-- | meta/packages/gdb/gdb_6.6.bb | 22 |
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 @@ | |||
1 | require gdb-cross.inc | ||
2 | |||
3 | inherit sdk | ||
4 | |||
5 | do_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 @@ | |||
1 | require gdb.inc | ||
2 | |||
3 | DEPENDS = "ncurses-native" | ||
4 | |||
5 | SRC_URI += "file://sim-install-6.6.patch;patch=1" | ||
6 | |||
7 | EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' LDFLAGS='${BUILD_LDFLAGS}'" | ||
8 | |||
9 | EXTRA_OECONF = "--with-curses --with-readline" | ||
10 | |||
11 | do_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 | |||
18 | do_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 @@ | |||
1 | LICENSE = "GPL" | 1 | require gdb-cross.inc |
2 | DESCRIPTION = "gdb - GNU debugger" | ||
3 | SECTION = "base" | ||
4 | PRIORITY = "optional" | ||
5 | DEPENDS = "ncurses-native" | ||
6 | 2 | ||
7 | inherit autotools cross | 3 | inherit cross |
8 | |||
9 | S = "${WORKDIR}/gdb-${PV}" | ||
10 | SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \ | ||
11 | file://sim-install-6.6.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 | 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 @@ | |||
1 | DESCRIPTION = "gdb - GNU debugger" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/gdb/" | ||
3 | LICENSE="GPL" | ||
4 | SECTION = "devel" | ||
5 | PRIORITY = "optional" | ||
6 | |||
7 | inherit autotools | ||
8 | |||
9 | SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz" | ||
10 | |||
11 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gdb-${PV}" | ||
12 | |||
13 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
14 | export CXX_FOR_BUILD = "${BUILD_CXX}" | ||
15 | export CPP_FOR_BUILD = "${BUILD_CPP}" | ||
16 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" | ||
17 | export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}" | ||
18 | export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}" | ||
19 | |||
20 | S = "${WORKDIR}/gdb-${PV}" | ||
21 | B = "${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 @@ | |||
1 | DESCRIPTION = "gdb - GNU debugger" | 1 | require gdb.inc |
2 | HOMEPAGE = "http://www.gnu.org/software/gdb/" | 2 | |
3 | LICENSE="GPL" | ||
4 | SECTION = "devel" | ||
5 | PRIORITY = "optional" | ||
6 | DEPENDS = "ncurses readline" | 3 | DEPENDS = "ncurses readline" |
7 | PR = "r0" | 4 | PR = "r0" |
8 | 5 | ||
@@ -11,30 +8,21 @@ FILES_gdbserver = '${bindir}/gdbserver' | |||
11 | 8 | ||
12 | RRECOMMENDS_gdb = "glibc-thread-db" | 9 | RRECOMMENDS_gdb = "glibc-thread-db" |
13 | 10 | ||
14 | inherit autotools gettext | 11 | inherit gettext |
15 | 12 | ||
16 | SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \ | 13 | SRC_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 | ||
21 | LDFLAGS_append = " -s" | 17 | 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}" | 18 | export CFLAGS_append=" -L${STAGING_LIBDIR}" |
19 | |||
29 | EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" | 20 | EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" |
30 | 21 | ||
31 | EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \ | 22 | EXTRA_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 | ||
35 | S = "${WORKDIR}/gdb-${PV}" | ||
36 | B = "${WORKDIR}/build-${TARGET_SYS}" | ||
37 | |||
38 | do_configure () { | 26 | do_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 |