diff options
author | Diego Sueiro <diego.sueiro@arm.com> | 2020-10-27 15:55:35 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-11-03 16:28:24 -0500 |
commit | 3620511fadd2b0faab085b5b616268f1e8ce5f1f (patch) | |
tree | 76217d9063c0a22854ef39d3348528d44c89686b | |
parent | d47e7143e0f93f0c4cd5aed995c4397c9a7002d9 (diff) | |
download | meta-virtualization-3620511fadd2b0faab085b5b616268f1e8ce5f1f.tar.gz |
xen: run do_deploy after do_compile and do_populate_sysroot
When having rm_work and bitbake needs to re-run do_deploy, we need to ensure
that the ${B} is re-generated, otherwise the deploy-xen will be empty.
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-extended/xen/xen-hypervisor.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/recipes-extended/xen/xen-hypervisor.inc b/recipes-extended/xen/xen-hypervisor.inc index 3bfee8ee..6a75d166 100644 --- a/recipes-extended/xen/xen-hypervisor.inc +++ b/recipes-extended/xen/xen-hypervisor.inc | |||
@@ -76,11 +76,13 @@ do_deploy() { | |||
76 | # at least run afer that task has completed | 76 | # at least run afer that task has completed |
77 | # - the hypervisor binaries may be included in the image filesystem, so we | 77 | # - the hypervisor binaries may be included in the image filesystem, so we |
78 | # must ensure that the binaries deployed match what is staged in the sysroot: | 78 | # must ensure that the binaries deployed match what is staged in the sysroot: |
79 | # so do deploy must run after do_populate_sysroot -- which is always after | 79 | # so do_deploy must run after do_populate_sysroot and after do_compile is |
80 | # do_compile, so that handles 'after do_compile' too | 80 | # also needed for when having rm_work and bitbake needs to re-run do_deploy, |
81 | # we ensure that the ${B} is re-generated, otherwise the deploy-xen will be | ||
82 | # empty | ||
81 | # - add the task before do_build to ensure that deployment has completed when | 83 | # - add the task before do_build to ensure that deployment has completed when |
82 | # the recipe build done stamp is written | 84 | # the recipe build done stamp is written |
83 | addtask deploy after do_populate_sysroot before do_build | 85 | addtask deploy after do_compile do_populate_sysroot before do_build |
84 | # To ensure that a deployed hypervisor has matching tools, add a dependency to | 86 | # To ensure that a deployed hypervisor has matching tools, add a dependency to |
85 | # make sure that the tools have built and been staged: | 87 | # make sure that the tools have built and been staged: |
86 | do_deploy[depends] += "xen-tools:do_populate_sysroot" | 88 | do_deploy[depends] += "xen-tools:do_populate_sysroot" |