]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
kernel-devsrc: fix reproducibility and buildpaths QA warning
authorBruce Ashfield <bruce.ashfield@gmail.com>
Tue, 5 Jul 2022 19:55:09 +0000 (15:55 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Jul 2022 23:07:50 +0000 (00:07 +0100)
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 <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/linux/kernel-devsrc.bb

index 9654488a54089fc14f1ba6ed8936a64f4f8c0bd8..ee5d8d9ab070a1d9dcdebb944ed7e4dffb27f50b 100644 (file)
@@ -128,8 +128,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
     )