diff options
author | Daniel Klauer <daniel.klauer@gin.de> | 2020-06-30 13:38:54 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-30 23:03:02 +0100 |
commit | 62931865d5dc02b7f3029b85c7d76401acf2d8d8 (patch) | |
tree | 0d9ee415c5017c5f3deffff80bff70ca0340b130 /meta/classes/kernel.bbclass | |
parent | acfda8e923fe73333da9353fc9cba8b35470a8ef (diff) | |
download | poky-62931865d5dc02b7f3029b85c7d76401acf2d8d8.tar.gz |
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 <daniel.klauer@gin.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index a1219f3156..301e3b86b2 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -729,8 +729,6 @@ kernel_do_deploy() { | |||
729 | done | 729 | done |
730 | fi | 730 | fi |
731 | } | 731 | } |
732 | do_deploy[cleandirs] = "${DEPLOYDIR}" | ||
733 | do_deploy[dirs] = "${DEPLOYDIR} ${B}" | ||
734 | do_deploy[prefuncs] += "package_get_auto_pr" | 732 | do_deploy[prefuncs] += "package_get_auto_pr" |
735 | 733 | ||
736 | addtask deploy after do_populate_sysroot do_packagedata | 734 | addtask deploy after do_populate_sysroot do_packagedata |