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 "
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}"
29 # override this function to avoid the autoconf/automake/aclocal/autoheader
31 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
33 # Remove duplicate spaces to work around configure complaining about
35 LDFLAGS=$(echo "${LDFLAGS}" | sed "s/ / /")
37 CPPFLAGS="" oe_runconf
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}