mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
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>
This commit is contained in:
@@ -105,6 +105,7 @@ python do_populate_sysroot () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SSTATETASKS += "do_populate_sysroot"
|
SSTATETASKS += "do_populate_sysroot"
|
||||||
|
do_populate_sysroot[cleandirs] = "${SYSROOT_DESTDIR}"
|
||||||
do_populate_sysroot[sstate-name] = "populate-sysroot"
|
do_populate_sysroot[sstate-name] = "populate-sysroot"
|
||||||
do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}"
|
do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}"
|
||||||
do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_HOST}/"
|
do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_HOST}/"
|
||||||
|
|||||||
Reference in New Issue
Block a user