yavta: import from meta-oe
[openembedded.git] / recipes / gdb / gdb.inc
blob48160f55467f2b0432e41e9d3039fb171a4d5d94
1 require gdb-common.inc
3 DEFAULT_PREFERENCE_avr32 = "-99"
5 DEPENDS = "ncurses readline zlib flex-native bison-native"
7 PACKAGES =+ "gdbserver"
8 FILES_gdbserver = "${bindir}/gdbserver"
10 RRECOMMENDS_gdb_append_libc-glibc = " glibc-thread-db "
11 RRECOMMENDS_gdb_append_libc-uclibc = " uclibc-thread-db "
13 inherit gettext
15 SRC_URI += "file://kill_arm_map_symbols.patch \
16             file://gdbserver-cflags-last.diff;striplevel=0"
17 #FIXME     file://uclibc.patch \
19 EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
21 EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \
22                 --with-curses --disable-multilib --with-readline --disable-sim \
23                 --program-prefix='' --disable-lto"
25 LDFLAGS_append = " -s"
26 export CFLAGS_append=" -L${STAGING_LIBDIR}"
28 do_configure () {
29         # override this function to avoid the autoconf/automake/aclocal/autoheader
30         # calls for now
31         (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
33         # Remove duplicate spaces to work around configure complaining about
34         # changed LDFLAGS.
35         LDFLAGS=$(echo "${LDFLAGS}" | sed "s/  / /")
37         CPPFLAGS="" oe_runconf
40 do_install () {
41         make -C bfd/doc chew LDFLAGS= CFLAGS=-O2
42         oe_runmake DESTDIR='${D}' install
43         install -d ${D}${bindir}
44         install -m 0755 gdb/gdbserver/gdbserver ${D}${bindir}