cache: allow to set EXCLUDE_FROM_WORLD outside recipe
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
@@ -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
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 fileSigned-off-by Martin Jansa <[email protected]>
EXCLUDE_FROM_WORLD_pn-foo = "1"
Signature · 1 line
Christopher Larson
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 fileSigned-off-by Martin Jansa <[email protected]>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]
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 includefile
Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Signed-off-by Martin Jansa <[email protected]>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
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 includefile
Quoted 4 lines
Quoted 3 lines
Signed-off-by Martin Jansa <[email protected]>
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]