mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 20:27:58 +02:00
Newlib is a C library that is intended to be used on embedded systems. It is a conglomeration of several library parts, all under free software licenses that make them easily usable on embedded products. Newlib provides a C library alternative that can run on baremetal, mainly for resource constrained devices. Libgloss is the BSP part of the C library, which can be easily modified to port for new hardware platforms. (From OE-Core rev: fe490ff829440b94124317759d856e2e2daf5047) Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
33 lines
796 B
BlitzBasic
33 lines
796 B
BlitzBasic
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"
|