Skip to contentSkip to conversation

bpftool: start builds from a clean build dir

PATCH New [email protected] 1 participant 1 message Aug 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpftool: start builds from a clean build dir

From: "mark.yang" <[email protected]>

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.

---
 meta-oe/recipes-kernel/bpftool/bpftool.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-kernel/bpftool/bpftool.bb +2 -0
index 66e48cfd84..419be18d99 100644
@@ -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() {