summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-11 14:16:07 +0000
committerScott Garman <scott.a.garman@intel.com>2012-06-12 13:29:29 -0700
commit23b7d7dab475caca4558e3b20db534122bee1525 (patch)
tree7a4a5d718962cd578df2a389f034d0ad183ced56 /meta
parent83c5acfe4731990c296be1bf67059452a72f9584 (diff)
downloadopenembedded-core-23b7d7dab475caca4558e3b20db534122bee1525.tar.gz
openembedded-core-23b7d7dab475caca4558e3b20db534122bee1525.tar.bz2
openembedded-core-23b7d7dab475caca4558e3b20db534122bee1525.zip
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@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/image.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 907c59ba0f..9557433e8e 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