summaryrefslogtreecommitdiffstats
path: root/meta-xilinx/meta-xilinx-bsp/recipes-core/newlib/newlib_3.0.0.bb
blob: 3d313503f819d1931d18df85714c07157957bb3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require newlib.inc

do_configure_prepend_microblaze() {
	# hack for microblaze, which needs xilinx.ld to literally do any linking (its hard coded in its LINK_SPEC)
	export CC="${CC} -L${S}/libgloss/microblaze"
}

do_configure() {
	${S}/configure ${EXTRA_OECONF}
}

do_install_append() {
	# Move include files and libs to default directories so they can be picked up later
	mv -v ${D}${prefix}/${TARGET_SYS}/lib ${D}${libdir}
	mv -v ${D}${prefix}/${TARGET_SYS}/include ${D}${includedir}

	# Remove original directory
	rmdir ${D}${prefix}/${TARGET_SYS}
}
OpenPOWER on IntegriCloud