aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/newlib/libgloss_3.0.0.bb
blob: 664a9228154378af33c22b1726e91f157aaa56dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require newlib.inc

DEPENDS += "newlib"

FILESEXTRAPATHS_prepend := "${THISDIR}/libgloss:"

SRC_URI_append_powerpc = " file://fix-rs6000-crt0.patch"
SRC_URI_append_arm = " file://fix_makefile_include_arm_h.patch"

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

do_install_prepend() {
	# install doesn't create this itself, avoid install error
	install -d ${D}${prefix}/${TARGET_SYS}/lib
}

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

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

# Split packages correctly
FILES_${PN} += "${libdir}/*.ld ${libdir}/*.specs"
FILES_${PN}-dev += "${libdir}/cpu-init/*"

INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"