summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-10 19:59:33 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-10 23:00:44 +0100
commit177d4be3c1714270e4d94fcea3106934a7d5c6e5 (patch)
treec8d8912d830f7a2f54cd1d07653b5ad0c2784edc /meta/classes
parent684eefd7a3ab473c4fcada981fbecd92a8f3c3cc (diff)
downloadpoky-177d4be3c1714270e4d94fcea3106934a7d5c6e5.tar.gz
staging: Fix sysroot problem with populate_sysroot dependencies on do_fetch
Dependencies on svn:// urls were failing as the cleandirs on do_fetch was destroying any sysroot setup by the extend_recipe_sysroot function. Add code so that if the task do_fetch, we move the cleandirs to the extend_recipe_sysroot task else we'd wipe out the sysroot we just created. This allows fetcher do_populate_sysroot dependencies to work correctly again. (From OE-Core rev: cd5e0a32184d98beb8d81e6b5527166d3ca4fb3c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/staging.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
index 27fcd1efa9..c50abd0551 100644
--- a/meta/classes/staging.bbclass
+++ b/meta/classes/staging.bbclass
@@ -647,6 +647,11 @@ python staging_taskhandler() {
647 deps = d.getVarFlag(task, "depends") 647 deps = d.getVarFlag(task, "depends")
648 if deps and "populate_sysroot" in deps: 648 if deps and "populate_sysroot" in deps:
649 d.appendVarFlag(task, "prefuncs", " extend_recipe_sysroot") 649 d.appendVarFlag(task, "prefuncs", " extend_recipe_sysroot")
650 # If this is do_fetch, we need to move the cleandirs above to the extend_recipe_sysroot task
651 # else we'd wipe out the sysroot we just created.
652 if task == "do_fetch":
653 d.setVarFlag("extend_recipe_sysroot", "cleandirs", d.getVarFlag(task, "cleandirs"))
654 d.delVarFlag(task, "cleandirs")
650} 655}
651staging_taskhandler[eventmask] = "bb.event.RecipeTaskPreProcess" 656staging_taskhandler[eventmask] = "bb.event.RecipeTaskPreProcess"
652addhandler staging_taskhandler 657addhandler staging_taskhandler