summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-29 15:02:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-04 15:03:53 +0100
commit86c7d3e0310f1602327365a360199efe5ea05fc8 (patch)
tree6ca83ac3466048b8b915a522f327c25810f2d7fe /meta/recipes-devtools
parent0b4198eeac06d40861256496169a2e6bb275916c (diff)
downloadpoky-86c7d3e0310f1602327365a360199efe5ea05fc8.tar.gz
sstatesig: Add processing for full build paths in sysroot files
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>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/perl/perl_5.34.0.bb7
-rw-r--r--meta/recipes-devtools/python/python3_3.9.6.bb8
-rw-r--r--meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb1
-rw-r--r--meta/recipes-devtools/rpm/rpm_4.16.1.3.bb5
4 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl_5.34.0.bb b/meta/recipes-devtools/perl/perl_5.34.0.bb
index 0e0fe7f985..175db4ee31 100644
--- a/meta/recipes-devtools/perl/perl_5.34.0.bb
+++ b/meta/recipes-devtools/perl/perl_5.34.0.bb
@@ -385,3 +385,10 @@ EOF
385 chmod 0755 ${SYSROOT_DESTDIR}${bindir}/nativeperl 385 chmod 0755 ${SYSROOT_DESTDIR}${bindir}/nativeperl
386 cat ${SYSROOT_DESTDIR}${bindir}/nativeperl 386 cat ${SYSROOT_DESTDIR}${bindir}/nativeperl
387} 387}
388
389SSTATE_HASHEQUIV_FILEMAP = " \
390 populate_sysroot:*/lib*/perl5/*/*/Config_heavy.pl:${TMPDIR} \
391 populate_sysroot:*/lib*/perl5/*/*/Config_heavy.pl:${COREBASE} \
392 populate_sysroot:*/lib*/perl5/config.sh:${TMPDIR} \
393 populate_sysroot:*/lib*/perl5/config.sh:${COREBASE} \
394 "
diff --git a/meta/recipes-devtools/python/python3_3.9.6.bb b/meta/recipes-devtools/python/python3_3.9.6.bb
index aae7837180..d09943f891 100644
--- a/meta/recipes-devtools/python/python3_3.9.6.bb
+++ b/meta/recipes-devtools/python/python3_3.9.6.bb
@@ -195,6 +195,14 @@ do_install:append:class-nativesdk () {
195} 195}
196 196
197SSTATE_SCAN_FILES += "Makefile _sysconfigdata.py" 197SSTATE_SCAN_FILES += "Makefile _sysconfigdata.py"
198SSTATE_HASHEQUIV_FILEMAP = " \
199 populate_sysroot:*/lib*/python3*/_sysconfigdata*.py:${TMPDIR} \
200 populate_sysroot:*/lib*/python3*/_sysconfigdata*.py:${COREBASE} \
201 populate_sysroot:*/lib*/python3*/config-*/Makefile:${TMPDIR} \
202 populate_sysroot:*/lib*/python3*/config-*/Makefile:${COREBASE} \
203 populate_sysroot:*/lib*/python-sysconfigdata/_sysconfigdata.py:${TMPDIR} \
204 populate_sysroot:*/lib*/python-sysconfigdata/_sysconfigdata.py:${COREBASE} \
205 "
198PACKAGE_PREPROCESS_FUNCS += "py_package_preprocess" 206PACKAGE_PREPROCESS_FUNCS += "py_package_preprocess"
199 207
200py_package_preprocess () { 208py_package_preprocess () {
diff --git a/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb b/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb
index a0448a1803..97b44ad2e5 100644
--- a/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb
+++ b/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb
@@ -18,6 +18,7 @@ do_install () {
18 18
19 cat >> ${D}${bindir_crossscripts}/${MLPREFIX}qemuwrapper << EOF 19 cat >> ${D}${bindir_crossscripts}/${MLPREFIX}qemuwrapper << EOF
20#!/bin/sh 20#!/bin/sh
21# Wrapper script to run binaries under qemu user-mode emulation
21set -x 22set -x
22 23
23if [ ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d)} = False -a "${PN}" != "nativesdk-qemuwrapper-cross" ]; then 24if [ ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d)} = False -a "${PN}" != "nativesdk-qemuwrapper-cross" ]; then
diff --git a/meta/recipes-devtools/rpm/rpm_4.16.1.3.bb b/meta/recipes-devtools/rpm/rpm_4.16.1.3.bb
index 60181f26c7..2ff9c2b112 100644
--- a/meta/recipes-devtools/rpm/rpm_4.16.1.3.bb
+++ b/meta/recipes-devtools/rpm/rpm_4.16.1.3.bb
@@ -195,3 +195,8 @@ rpm_package_preprocess () {
195 sed -i -e 's:--sysroot[^ ]*::g' \ 195 sed -i -e 's:--sysroot[^ ]*::g' \
196 ${PKGD}/${libdir}/rpm/macros 196 ${PKGD}/${libdir}/rpm/macros
197} 197}
198
199SSTATE_HASHEQUIV_FILEMAP = " \
200 populate_sysroot:*/rpm/macros:${TMPDIR} \
201 populate_sysroot:*/rpm/macros:${COREBASE} \
202 "