mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 16:28:43 +01:00
Licence changes: - Adds BSD-2 for libm ld128 functions on 5c5ae2c08 - Adds Synopsys arc-*-* targets on 820dd50 (From OE-Core rev: 0ab6ac79b9f9519d9ee2b2c8d5b217a7e665e6f3) Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
40 lines
1.1 KiB
BlitzBasic
40 lines
1.1 KiB
BlitzBasic
require newlib.inc
|
|
|
|
DEPENDS += "newlib"
|
|
|
|
FILESEXTRAPATHS:prepend := "${THISDIR}/libgloss:"
|
|
|
|
SRC_URI:append = " file://libgloss-build-without-nostdinc.patch"
|
|
SRC_URI:append:powerpc = " file://fix-rs6000-crt0.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
|
|
install -d ${D}${libdir}
|
|
mv -v ${D}${prefix}/${TARGET_SYS}/lib/* ${D}${libdir}
|
|
|
|
# Remove original directory
|
|
rmdir -p --ignore-fail-on-non-empty ${D}${prefix}/${TARGET_SYS}/lib
|
|
# Remove empty include dir
|
|
rmdir ${D}/${prefix}/${TARGET_SYS}/include
|
|
rmdir ${D}/${prefix}/${TARGET_SYS}/
|
|
|
|
}
|
|
|
|
# Split packages correctly
|
|
FILES:${PN} += "${libdir}/*.ld ${libdir}/*.specs"
|
|
FILES:${PN}-dev += "${libdir}/cpu-init/*"
|
|
# RiscV installation moved the syscall header to this location
|
|
FILES:${PN}-dev += "${prefix}/${TARGET_SYS}/include/machine/*.h"
|
|
|
|
INHIBIT_PACKAGE_STRIP = "1"
|
|
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|