diff options
Diffstat (limited to 'meta/packages/gdb/gdb.inc')
-rw-r--r-- | meta/packages/gdb/gdb.inc | 50 |
1 files changed, 34 insertions, 16 deletions
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 | ||