Skip to contentSkip to conversation

cache: allow to set EXCLUDE_FROM_WORLD outside recipe

PATCH In review Martin Jansa 2 participants 5 messages Dec 23, 2012 – Dec 27, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cache: allow to set EXCLUDE_FROM_WORLD outside recipe

* sometimes it's useful for distro/builder to set EXCLUDE_FROM_WORLD_foo = "1" to exclude recipes not supported by distro/builder in some include file

---
 lib/bb/cache.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/cache.py +1 -1
index a3c073a..3486f39 100644
@@ -128,7 +128,7 @@ class CoreRecipeInfo(RecipeInfoCommon):
         self.pr = self.getvar('PR', metadata)
         self.defaultpref = self.intvar('DEFAULT_PREFERENCE', metadata)
         self.broken = self.getvar('BROKEN', metadata)
-        self.not_world = self.getvar('EXCLUDE_FROM_WORLD', metadata)
+        self.not_world = self.getvar('EXCLUDE_FROM_WORLD', metadata) or self.getVar("EXCLUDE_FROM_WORLD_" + self.pn, metadata)
         self.stamp = self.getvar('STAMP', metadata)
         self.stampclean = self.getvar('STAMPCLEAN', metadata)        
         self.stamp_base = self.flaglist('stamp-base', self.tasks, metadata)
Signature · 1 line
1.8.0.2
#1 lore raw
Quoted 6 lines · Martin Jansa

* sometimes it's useful for distro/builder to set EXCLUDE_FROM_WORLD_foo = "1"
to exclude recipes not supported by distro/builder in some include file

EXCLUDE_FROM_WORLD_pn-foo = "1"

Signature · 1 line
Christopher Larson
#2 lore raw
Quoted 10 lines · Chris Larson
Quoted 6 lines · Martin Jansa

* sometimes it's useful for distro/builder to set EXCLUDE_FROM_WORLD_foo = "1"
to exclude recipes not supported by distro/builder in some include file

EXCLUDE_FROM_WORLD_pn-foo = "1"

I've used what LOCALCOUNT is using, but I can change it to _pn-foo if wanted.

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw
Quoted 10 lines · Martin Jansa
Quoted 4 lines · Chris Larson
Quoted 1 line · On Sun, Dec 23, 2012 at 1:22 PM, Martin Jansa <[email protected] wrote:

* sometimes it's useful for distro/builder to set

EXCLUDE_FROM_WORLD_foo =

Quoted 2 lines
Quoted 2 lines

"1"
to exclude recipes not supported by distro/builder in some include

file

Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

EXCLUDE_FROM_WORLD_pn-foo = "1"

I've used what LOCALCOUNT is using, but I can change it to _pn-foo if wanted.

The point was, you shouldn't need to patch anything in at all. pn-${PN} is in OVERRIDES. The above line should work fine as is with no bitbake changes.

Signature · 1 line
Christopher Larson
#4 lore raw
Quoted 15 lines · Chris Larson
Quoted 13 lines · Martin Jansa
Quoted 4 lines · Chris Larson
Quoted 1 line · On Sun, Dec 23, 2012 at 1:22 PM, Martin Jansa <[email protected] wrote:

* sometimes it's useful for distro/builder to set

EXCLUDE_FROM_WORLD_foo =

Quoted 2 lines
Quoted 2 lines

"1"
to exclude recipes not supported by distro/builder in some include

file

Quoted 4 lines
Quoted 3 lines
Quoted 8 lines
Quoted 4 lines
Quoted 1 line

EXCLUDE_FROM_WORLD_pn-foo = "1"

I've used what LOCALCOUNT is using, but I can change it to _pn-foo if wanted.

The point was, you shouldn't need to patch anything in at all. pn-${PN} is in OVERRIDES. The above line should work fine as is with no bitbake changes.

Ah, right, thanks!

No idea why that didn't work when I've tried it before this patch, but now it works fine.

Cheers,

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]