diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2022-07-05 15:55:09 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-08 00:09:42 +0100 |
commit | 44e84bfe0c89c9e93232071b11fa24d1b397e200 (patch) | |
tree | 66a00225e6d10855ec3625c54570124d9285a5fe /meta/recipes-kernel | |
parent | 474cc11b2ac6c12e2f304a47afee8d24b927e9b9 (diff) | |
download | poky-44e84bfe0c89c9e93232071b11fa24d1b397e200.tar.gz |
kernel-devsrc: fix reproducibility and buildpaths QA warning
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.
(From OE-Core rev: e0a9433685397b716920fa9ad5d5a7be95c496f7)
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>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/linux/kernel-devsrc.bb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb index 9654488a54..ee5d8d9ab0 100644 --- a/meta/recipes-kernel/linux/kernel-devsrc.bb +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb | |||
@@ -128,8 +128,10 @@ do_install() { | |||
128 | # breaks workflows. | 128 | # breaks workflows. |
129 | cp -a --parents include/generated/autoconf.h $kerneldir/build 2>/dev/null || : | 129 | cp -a --parents include/generated/autoconf.h $kerneldir/build 2>/dev/null || : |
130 | 130 | ||
131 | if [ -e $kerneldir/include/generated/.vdso-offsets.h.cmd ]; then | 131 | if [ -e $kerneldir/include/generated/.vdso-offsets.h.cmd ] || |
132 | rm $kerneldir/include/generated/.vdso-offsets.h.cmd | 132 | [ -e $kerneldir/build/include/generated/.vdso-offsets.h.cmd ]; then |
133 | rm -f $kerneldir/include/generated/.vdso-offsets.h.cmd | ||
134 | rm -f $kerneldir/build/include/generated/.vdso-offsets.h.cmd | ||
133 | fi | 135 | fi |
134 | ) | 136 | ) |
135 | 137 | ||