]> code.ossystems Code Review - openembedded-core.git/commitdiff
staging.bbclass: Ensure the task starts from a clean directory
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Jul 2012 13:11:54 +0000 (13:11 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Jul 2012 15:58:42 +0000 (16:58 +0100)
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@linuxfoundation.org>
meta/classes/staging.bbclass

index 6540349ff7a70451268dda643e8135b042bf434a..1af9b1575cc65300a98702169f1c98dc447e22de 100644 (file)
@@ -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}/"