[oe-commits] Richard Purdie : staging.bbclass: Ensure the task starts from a clean directory
git at git.openembedded.org
git at git.openembedded.org
Thu Jul 19 16:20:20 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: 8a313f6d32ae0bdac0393887712b09f1b685aaa5
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8a313f6d32ae0bdac0393887712b09f1b685aaa5
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Thu Jul 19 13:11:54 2012 +0000
staging.bbclass: Ensure the task starts from a clean directory
I found that some files were not getting removed from the sysroot, despite them
clearly being removed by the recipe. I found SYSROOT_DESTDIR is only ever copied
into, not cleaned. This patch ensures its empty when the task starts so that
stale files are removed and not persisted.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/staging.bbclass | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
index 6540349..1af9b15 100644
--- a/meta/classes/staging.bbclass
+++ b/meta/classes/staging.bbclass
@@ -105,6 +105,7 @@ python do_populate_sysroot () {
}
SSTATETASKS += "do_populate_sysroot"
+do_populate_sysroot[cleandirs] = "${SYSROOT_DESTDIR}"
do_populate_sysroot[sstate-name] = "populate-sysroot"
do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}"
do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_HOST}/"
More information about the Openembedded-commits
mailing list