[oe-commits] Richard Purdie : image.bbclass: Ensure ${S} is cleaned at the start of rootfs generation

git at git.openembedded.org git at git.openembedded.org
Fri May 25 10:29:21 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 363424cdc78cafa278008f973c2b4288297ebf8c
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=363424cdc78cafa278008f973c2b4288297ebf8c

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Fri May 11 14:16:07 2012 +0000

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.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/image.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 4610731..573c905 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -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





More information about the Openembedded-commits mailing list