diff mbox series

[meta-oe] bpftool: start builds from a clean build dir

Message ID 20260807093018.2108683-2-mark.yang@lge.com
State Under Review
Headers show
Series [meta-oe] bpftool: start builds from a clean build dir | expand

Commit Message

mark.yang Aug. 7, 2026, 9:30 a.m. UTC
From: "mark.yang" <mark.yang@lge.com>

Nothing cleans ${B} between rebuilds and the kernel makefiles cache
their feature detection results there, so a sysroot-only change (say
binutils leaving DEPENDS) skips the relink and packages a stale
binary that still links libbfd.

Signed-off-by: mark.yang <mark.yang@lge.com>
---
 meta-oe/recipes-kernel/bpftool/bpftool.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-kernel/bpftool/bpftool.bb b/meta-oe/recipes-kernel/bpftool/bpftool.bb
index 66e48cfd84..419be18d99 100644
--- a/meta-oe/recipes-kernel/bpftool/bpftool.bb
+++ b/meta-oe/recipes-kernel/bpftool/bpftool.bb
@@ -26,6 +26,8 @@  SECURITY_CFLAGS = ""
 
 do_configure[depends] += "virtual/kernel:do_shared_workdir"
 
+do_configure[cleandirs] = "${B}"
+
 COMPATIBLE_HOST = "(x86_64|aarch64|riscv64).*-linux"
 
 do_compile() {