From: Bruce Ashfield <[email protected]>

The riscv vDSO gained a CFI-instrumented build (VDSO_CFI_BUILD): when
enabled, arch/riscv/kernel/vdso/Makefile emits the offsets header as
include/generated/vdso-cfi-offsets.h instead of vdso-offsets.h. The
associated kbuild .cmd file records the full compiler invocation and
leaks TMPDIR / the build-host HOME into both the kernel-devsrc and
linux-headers packages, failing do_package_qa on qemuriscv64:

  QA Issue: File .../include/generated/.vdso-cfi-offsets.h.cmd in package
  kernel-devsrc contains reference to TMPDIR [buildpaths]

Remove it alongside the existing vdso*-offsets .cmd files. linux-headers
copies $kerneldir/build/* after this step, so dropping the build-tree
copy clears both packages. riscv-only today and a no-op (rm -f)
elsewhere, so it is safe for all architectures.

Signed-off-by: Bruce Ashfield <[email protected]>
---
 meta/recipes-kernel/linux/kernel-devsrc.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb 
b/meta/recipes-kernel/linux/kernel-devsrc.bb
index 4ae121eb62..47c0abfa38 100644
--- a/meta/recipes-kernel/linux/kernel-devsrc.bb
+++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
@@ -129,6 +129,8 @@ do_install() {
 
         rm -f $kerneldir/include/generated/.vdso-offsets.h.cmd
         rm -f $kerneldir/build/include/generated/.vdso-offsets.h.cmd
+        rm -f $kerneldir/include/generated/.vdso-cfi-offsets.h.cmd
+        rm -f $kerneldir/build/include/generated/.vdso-cfi-offsets.h.cmd
         rm -f $kerneldir/build/include/generated/.compat_vdso-offsets.h.cmd
         rm -f $kerneldir/build/include/generated/.vdso32-offsets.h.cmd
         rm -f $kerneldir/build/include/generated/.vdso64-offsets.h.cmd
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#243928): 
https://lists.openembedded.org/g/openembedded-core/message/243928
Mute This Topic: https://lists.openembedded.org/mt/120859741/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to