diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-19 13:11:54 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-19 17:18:08 +0100 |
commit | 1ed15fbd4c45ec5fbdc51e769ccf06ea58a72446 (patch) | |
tree | fc52bff064fb6fed911fb2ec6a23a88dafb57c6c | |
parent | 52d1f7bee70ec498edfb4fcee503ab167bdcf634 (diff) | |
download | poky-1ed15fbd4c45ec5fbdc51e769ccf06ea58a72446.tar.gz |
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.
(From OE-Core rev: 8a313f6d32ae0bdac0393887712b09f1b685aaa5)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | 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 6540349ff7..1af9b1575c 100644 --- a/meta/classes/staging.bbclass +++ b/meta/classes/staging.bbclass | |||
@@ -105,6 +105,7 @@ python do_populate_sysroot () { | |||
105 | } | 105 | } |
106 | 106 | ||
107 | SSTATETASKS += "do_populate_sysroot" | 107 | SSTATETASKS += "do_populate_sysroot" |
108 | do_populate_sysroot[cleandirs] = "${SYSROOT_DESTDIR}" | ||
108 | do_populate_sysroot[sstate-name] = "populate-sysroot" | 109 | do_populate_sysroot[sstate-name] = "populate-sysroot" |
109 | do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}" | 110 | do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}" |
110 | do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_HOST}/" | 111 | do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_HOST}/" |