Skip to contentSkip to conversation

image.bbclass: Ensure ${S} is cleaned at the start of rootfs generation

PATCH New Richard Purdie 1 participant 1 message May 11, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 image.bbclass: Ensure ${S} is cleaned at the start of rootfs generation

Some image classes such as bootimg save files into ${S} as part of rootfs generation. For correctness we should therefore clean this at the start of image generation to ensure reproducibility.

I found this issue when some files I thought should disappear from my rootfs would not disappear.

---

meta/classes/image.bbclass +1 -0
index 907c59b..9557433 100644
@@ -131,6 +131,7 @@ PSEUDO_PASSWD = "${IMAGE_ROOTFS}"
 do_rootfs[nostamp] = "1"
 do_rootfs[dirs] = "${TOPDIR}"
 do_rootfs[lockfiles] += "${IMAGE_ROOTFS}.lock"
+do_rootfs[cleandirs] += "${S}"
 do_build[nostamp] = "1"
 
 # Must call real_do_rootfs() from inside here, rather than as a separate