diff options
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/gdb/gdb-common.inc | 22 | ||||
-rw-r--r-- | meta/packages/gdb/gdb-cross.inc | 4 | ||||
-rw-r--r-- | meta/packages/gdb/gdb.inc | 50 | ||||
-rw-r--r-- | meta/packages/gdb/gdb_6.6.bb | 32 |
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 @@ | |||
1 | DESCRIPTION = "gdb - GNU debugger" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/gdb/" | ||
3 | LICENSE="GPL" | ||
4 | SECTION = "devel"z | ||
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-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 @@ | |||
1 | require gdb.inc | 1 | require gdb-common.inc |
2 | 2 | ||
3 | DEPENDS = "ncurses-native" | 3 | DEPENDS = "ncurses-native" |
4 | 4 | ||
@@ -15,6 +15,6 @@ do_configure () { | |||
15 | oe_runconf | 15 | oe_runconf |
16 | } | 16 | } |
17 | 17 | ||
18 | do_stage() { | 18 | do_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 @@ | |||
1 | DESCRIPTION = "gdb - GNU debugger" | 1 | require gdb-common.inc |
2 | HOMEPAGE = "http://www.gnu.org/software/gdb/" | ||
3 | LICENSE="GPL" | ||
4 | SECTION = "devel" | ||
5 | PRIORITY = "optional" | ||
6 | 2 | ||
7 | inherit autotools | 3 | DEPENDS = "ncurses readline" |
8 | 4 | ||
9 | SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz" | 5 | PACKAGES =+ "gdbserver" |
6 | FILES_gdbserver = "${bindir}/gdbserver" | ||
10 | 7 | ||
11 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gdb-${PV}" | 8 | RRECOMMENDS_gdb_append_linux = " glibc-thread-db " |
9 | RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db " | ||
12 | 10 | ||
13 | export CC_FOR_BUILD = "${BUILD_CC}" | 11 | inherit gettext |
14 | export CXX_FOR_BUILD = "${BUILD_CXX}" | 12 | |
15 | export CPP_FOR_BUILD = "${BUILD_CPP}" | 13 | SRC_URI += "file://kill_arm_map_symbols.patch;patch=1 \ |
16 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" | 14 | file://gdbserver-cflags-last.diff;patch=1;pnum=0" |
17 | export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}" | 15 | #FIXME file://uclibc.patch;patch=1 \ |
18 | export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}" | 16 | |
17 | EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" | ||
18 | |||
19 | EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \ | ||
20 | --with-curses --disable-multilib --with-readline --disable-sim \ | ||
21 | --program-prefix=''" | ||
22 | |||
23 | LDFLAGS_append = " -s" | ||
24 | export CFLAGS_append=" -L${STAGING_LIBDIR}" | ||
25 | |||
26 | do_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 | |||
33 | do_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 | ||
20 | S = "${WORKDIR}/gdb-${PV}" | ||
21 | B = "${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 @@ | |||
1 | require gdb.inc | 1 | require gdb.inc |
2 | 2 | ||
3 | DEPENDS = "ncurses readline" | ||
4 | PR = "r0" | 3 | PR = "r0" |
5 | 4 | ||
6 | PACKAGES =+ 'gdbserver ' | ||
7 | FILES_gdbserver = '${bindir}/gdbserver' | ||
8 | 5 | ||
9 | RRECOMMENDS_gdb = "glibc-thread-db" | ||
10 | 6 | ||
11 | inherit gettext | ||
12 | |||
13 | SRC_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 | |||
17 | LDFLAGS_append = " -s" | ||
18 | export CFLAGS_append=" -L${STAGING_LIBDIR}" | ||
19 | |||
20 | EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'" | ||
21 | |||
22 | EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \ | ||
23 | --with-curses --disable-multilib --with-readline --disable-sim \ | ||
24 | --program-prefix=''" | ||
25 | |||
26 | do_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 | |||
33 | do_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 | } | ||