aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gdb/gdb-cross-sdk.inc
blob: fbff553d29b77d8e6b0b3c335d660dc228296f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require gdb-cross.inc
LICENSE = "GPLv3"

INC_PR = "r7"

inherit sdk

DEPENDS = "ncurses-sdk zlib-sdk flex-native"
EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' LDFLAGS='${BUILD_LDFLAGS}'"

do_configure_append () {
	cd ${B}
	oe_runmake configure-host
	sed -e 's,-lncurses,${STAGING_LIBDIR_NATIVE}/libncurses.a ${STAGING_LIBDIR_NATIVE}/libtinfo.a ,g' -i ${B}/gdb/Makefile
	sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/gdb/Makefile
	sed -e 's,-lexpat, ${STAGING_LIBDIR_NATIVE}/libexpat.a ,g' -i ${B}/gdb/Makefile
	sed -e 's,libexpat.so,libexpat.a ,g' -i ${B}/gdb/Makefile
	sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/sim/arm/Makefile
}