From 62931865d5dc02b7f3029b85c7d76401acf2d8d8 Mon Sep 17 00:00:00 2001 From: Daniel Klauer Date: Tue, 30 Jun 2020 13:38:54 +0200 Subject: deploy.bbclass: Clean DEPLOYDIR before do_deploy do_deploy should clean up ${DEPLOYDIR} before running, just like do_install cleans up ${D} before running. This reduces the risk of DEPLOYDIR being accidentally contaminated by files from previous runs, possibly even with different config, in case of incremental builds. It is convenient to have this in deploy.bbclass, so it doesn't have to be duplicated in every recipe, considering for example meta-freescale, which has 23 affected recipes. All recipes using deploy.bbclass (grep -r 'inherit .*deploy') in poky, meta-openembedded and meta-freescale look like they either benefit from this or are at least not affected negatively by it. The only exception I've noticed was uboot-sign.bbclass, which was however fixed by the previous patch. (From OE-Core rev: 7083a7d56f4d90c81d2e6652ee291d20fd908bbe) Signed-off-by: Daniel Klauer Signed-off-by: Richard Purdie --- meta/classes/deploy.bbclass | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/classes/deploy.bbclass') diff --git a/meta/classes/deploy.bbclass b/meta/classes/deploy.bbclass index 6d52908783..737c26122b 100644 --- a/meta/classes/deploy.bbclass +++ b/meta/classes/deploy.bbclass @@ -8,4 +8,5 @@ python do_deploy_setscene () { } addtask do_deploy_setscene do_deploy[dirs] = "${DEPLOYDIR} ${B}" +do_deploy[cleandirs] = "${DEPLOYDIR}" do_deploy[stamp-extra-info] = "${MACHINE_ARCH}" -- cgit v1.2.3-54-g00ecf