diff mbox series

[1/2] cache: Make EXCLUDE_FROM_WORLD boolean

Message ID afe937d03290c1cccaa5b85c0fd5130acf1f14d5.1679928440.git.liezhi.yang@windriver.com
State Accepted, archived
Commit 3f4ede2d67a2d75d3faf8887f90371bd7554d492
Headers show
Series [1/2] cache: Make EXCLUDE_FROM_WORLD boolean | expand

Commit Message

Robert Yang March 27, 2023, 2:48 p.m. UTC
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>
---
 bitbake/lib/bb/cache.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index b309775bb9..10910a6809 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/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)