From cdd38494f00604fabcae5721c9ca1a3fd5759fe6 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Mon, 22 May 2023 20:35:48 -0700 Subject: staging.bbclass: do not add extend_recipe_sysroot to prefuncs of prepare_recipe_sysroot 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. (From OE-Core rev: bf7584a2ac16ee46ff5b41536b06bb46d0cbada7) Signed-off-by: Chen Qi Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/classes-global/staging.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/classes-global/staging.bbclass') diff --git a/meta/classes-global/staging.bbclass b/meta/classes-global/staging.bbclass index 6eefba4d73..3a300c32e7 100644 --- a/meta/classes-global/staging.bbclass +++ b/meta/classes-global/staging.bbclass @@ -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" -- cgit v1.2.3-54-g00ecf