Files
meta-openembedded/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.3.bb
Andrea Adami 56dde5189f klcc-cross: force rebuild for each MACHINE of the same arch
In case of subsequent builds for machines belonging to the same arch
we have to rebuild the klcc-cross wrapper because it is harcoding
the path to the headers in machine sysroot.
This hack is necessary to avoid to mark the klibc infrastructure as
machine-specific.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
2014-02-28 23:36:59 +00:00

37 lines
978 B
BlitzBasic

require klibc.inc
SUMMARY = "The klcc crosscompiler for klibc"
SRC_URI += "file://use-env-for-perl.patch"
DEPENDS = "klibc"
FILESPATH =. "${FILE_DIRNAME}/klibc-${PV}:"
inherit cross
do_compile() {
oe_runmake 'INSTALLDIR=${STAGING_DIR_TARGET}${target_libdir}/klibc' klcc
}
do_install() {
install -d ${D}${bindir}
install -m 0755 klcc/klcc ${D}${bindir}/${TARGET_PREFIX}klcc
}
# disable task already run in klibc recipe
do_configure[noexec] = "1"
# disable unneeded tasks
do_package[noexec] = "1"
do_packagedata[noexec] = "1"
do_package_write_ipk[noexec] = "1"
do_package_write_rpm[noexec] = "1"
do_package_write_deb[noexec] = "1"
do_package_write_tar[noexec] = "1"
# The linux-libc-headers and klibc custom headers are not machine-specific
# but are installed into machine sysroot.
# Klcc wrapper is hardcoding som eof these paths thus, to keep te recipe
# arch-specific, we force the rebuild of klcc-cross for each machine.
do_compile[vardeps] += "MACHINE"