]> code.ossystems Code Review - openembedded-core.git/commitdiff
image.bbclass: Ensure ${S} is cleaned at the start of rootfs generation
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 May 2012 14:16:07 +0000 (14:16 +0000)
committerScott Garman <scott.a.garman@intel.com>
Tue, 12 Jun 2012 20:29:29 +0000 (13:29 -0700)
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@linuxfoundation.org>
meta/classes/image.bbclass

index 907c59ba0f820fc5d10f0074b7e33ae1aced1a60..9557433e8e02e789a98ccefe44873cb6a0a82cc8 100644 (file)
@@ -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