aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2023-03-27 07:48:34 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-29 13:39:29 +0100
commit3f4ede2d67a2d75d3faf8887f90371bd7554d492 (patch)
tree3c2e4bdae55ad6421b8a7781663e5f871b5fac0b
parent935ab36f64d25c09f83209cd369714c2bc89aa7f (diff)
downloadbitbake-contrib-3f4ede2d67a2d75d3faf8887f90371bd7554d492.tar.gz
cache: Make EXCLUDE_FROM_WORLD boolean
Fixed: Set EXCLUDE_FROM_WORLD = "0" in recipe_A: $ bitbake world -g Check pn-buildlist, the recipe_A won't be built, this patch fixes the problem: EXCLUDE_FROM_WORLD = "1": Not build in world EXCLUDE_FROM_WORLD = "0": Add back to world build Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/cache.py b/lib/bb/cache.py
index b309775bb..10910a680 100644
--- a/lib/bb/cache.py
+++ b/lib/bb/cache.py
@@ -216,7 +216,7 @@ class CoreRecipeInfo(RecipeInfoCommon):
# Collect files we may need for possible world-dep
# calculations
- if not self.not_world:
+ if not bb.utils.to_boolean(self.not_world):
cachedata.possible_world.append(fn)
#else:
# logger.debug2("EXCLUDE FROM WORLD: %s", fn)