]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
staging.bbclass: do not add extend_recipe_sysroot to prefuncs of prepare_recipe_sysroot
authorChen Qi <Qi.Chen@windriver.com>
Tue, 23 May 2023 03:35:48 +0000 (20:35 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 May 2023 09:29:05 +0000 (10:29 +0100)
When running prepare_recipe_sysroot task, the extend_recipe_sysroot
is run twice.

What prepare_recipe_sysroot does is executing extend_recipe_sysroot,
there's no need to add extend_recipe_sysroot to its prefuncs.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/staging.bbclass

index 6eefba4d7332cb9776d883efddf5cfaa48ec6cb4..3a300c32e7cc2eaeb3954bb7fe3c674d04a91b40 100644 (file)
@@ -654,7 +654,7 @@ python staging_taskhandler() {
     bbtasks = e.tasklist
     for task in bbtasks:
         deps = d.getVarFlag(task, "depends")
-        if task == "do_configure" or (deps and "populate_sysroot" in deps):
+        if task != 'do_prepare_recipe_sysroot' and (task == "do_configure" or (deps and "populate_sysroot" in deps)):
             d.prependVarFlag(task, "prefuncs", "extend_recipe_sysroot ")
 }
 staging_taskhandler[eventmask] = "bb.event.RecipeTaskPreProcess"