kernel-devsrc: fix reproducibility and buildpaths QA warning
PATCH 1/1 kernel-devsrc: fix reproducibility and buildpaths QA warning
From: Bruce Ashfield <[email protected]>
We've been removing .vdso-offsets.h.cmd for quite some time, as it is not required to regenerate scripts or to satisfy the prepare target in the kernel source.
That being said, there is a secondary location that this file may be found, and since we aren't detecting or removing it, we end up with embedded build paths, which cause both reproducibility and buildpaths QA warnings.
We can test for both files, and force remove them if present, and we'll fix this new location of the file and not risk breaking any old kernels.
Signed-off-by Bruce Ashfield <[email protected]>
--- meta/recipes-kernel/linux/kernel-devsrc.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-kernel/linux/kernel-devsrc.bb +4 -2
@@ -142,8 +142,10 @@ do_install() { # breaks workflows. cp -a --parents include/generated/autoconf.h $kerneldir/build 2>/dev/null || : - if [ -e $kerneldir/include/generated/.vdso-offsets.h.cmd ]; then - rm $kerneldir/include/generated/.vdso-offsets.h.cmd + if [ -e $kerneldir/include/generated/.vdso-offsets.h.cmd ] || + [ -e $kerneldir/build/include/generated/.vdso-offsets.h.cmd ]; then + rm -f $kerneldir/include/generated/.vdso-offsets.h.cmd + rm -f $kerneldir/build/include/generated/.vdso-offsets.h.cmd fi )
Signature · 1 line
2.19.1