mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
Some files in the populate_sysroot tasks have hardcoded paths in them, particularly if they are postinst-useradd- files or crossscripts. Add some filtering logic to remove these paths. This means that the hashequiv "outhash" matches correcting in more cases allowing for better build artefact reuse. To make this work a new variable is added SSTATE_HASHEQUIV_FILEMAP which maps file globbing to replacement patterns (paths or regex) on a per sstate task basis. It is hoped this shouldn't be needed in many cases. We are in the process to developing QA tests which will better detect issues in this area to allow optimal sstate reuse. (From OE-Core rev: d9852ffbbe728dac33dc081538a08af98f52fd4a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
41 lines
903 B
BlitzBasic
41 lines
903 B
BlitzBasic
SUMMARY = "QEMU wrapper script"
|
|
HOMEPAGE = "http://qemu.org"
|
|
LICENSE = "MIT"
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
DEPENDS += "qemu-native"
|
|
|
|
inherit qemu
|
|
|
|
do_populate_sysroot[depends] = ""
|
|
|
|
do_install () {
|
|
install -d ${D}${bindir_crossscripts}/
|
|
|
|
qemu_binary=${@qemu_target_binary(d)}
|
|
qemu_options='${QEMU_OPTIONS} -E LD_LIBRARY_PATH=$D${libdir}:$D${base_libdir}'
|
|
|
|
cat >> ${D}${bindir_crossscripts}/${MLPREFIX}qemuwrapper << EOF
|
|
#!/bin/sh
|
|
# Wrapper script to run binaries under qemu user-mode emulation
|
|
set -x
|
|
|
|
if [ ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d)} = False -a "${PN}" != "nativesdk-qemuwrapper-cross" ]; then
|
|
echo "qemuwrapper: qemu usermode is not supported"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
$qemu_binary $qemu_options "\$@"
|
|
EOF
|
|
|
|
chmod +x ${D}${bindir_crossscripts}/${MLPREFIX}qemuwrapper
|
|
}
|
|
|
|
SYSROOT_DIRS += "${bindir_crossscripts}"
|
|
|
|
INHIBIT_DEFAULT_DEPS = "1"
|
|
|
|
BBCLASSEXTEND = "nativesdk"
|