]> code.ossystems Code Review - openembedded-core.git/commit
deploy.bbclass: Clean DEPLOYDIR before do_deploy
authorDaniel Klauer <daniel.klauer@gin.de>
Tue, 30 Jun 2020 11:38:54 +0000 (13:38 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 Jun 2020 22:02:11 +0000 (23:02 +0100)
commit7083a7d56f4d90c81d2e6652ee291d20fd908bbe
treef94bfd129c7edae744bd916dd735730e511bf2df
parent17619c1a41fa961afc317e4aafab9cdc4ff14a49
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.

Signed-off-by: Daniel Klauer <daniel.klauer@gin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/deploy.bbclass
meta/classes/kernel.bbclass
meta/recipes-core/meta/signing-keys.bb
meta/recipes-core/ovmf/ovmf_git.bb