* [PATCH] cache: allow to set EXCLUDE_FROM_WORLD outside recipe
@ 2012-12-23 20:22 Martin Jansa
2012-12-23 20:36 ` Chris Larson
0 siblings, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2012-12-23 20:22 UTC (permalink / raw)
To: bitbake-devel
* 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
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
lib/bb/cache.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/cache.py b/lib/bb/cache.py
index a3c073a..3486f39 100644
--- a/lib/bb/cache.py
+++ b/lib/bb/cache.py
@@ -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)
--
1.8.0.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] cache: allow to set EXCLUDE_FROM_WORLD outside recipe
2012-12-23 20:22 [PATCH] cache: allow to set EXCLUDE_FROM_WORLD outside recipe Martin Jansa
@ 2012-12-23 20:36 ` Chris Larson
2012-12-23 20:45 ` Martin Jansa
0 siblings, 1 reply; 5+ messages in thread
From: Chris Larson @ 2012-12-23 20:36 UTC (permalink / raw)
To: Martin Jansa; +Cc: bitbake-devel@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 364 bytes --]
On Sun, Dec 23, 2012 at 1:22 PM, Martin Jansa <martin.jansa@gmail.com>wrote:
> * 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
>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
>
EXCLUDE_FROM_WORLD_pn-foo = "1"
--
Christopher Larson
[-- Attachment #2: Type: text/html, Size: 826 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] cache: allow to set EXCLUDE_FROM_WORLD outside recipe
2012-12-23 20:36 ` Chris Larson
@ 2012-12-23 20:45 ` Martin Jansa
2012-12-23 23:48 ` Chris Larson
0 siblings, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2012-12-23 20:45 UTC (permalink / raw)
To: Chris Larson; +Cc: bitbake-devel@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 567 bytes --]
On Sun, Dec 23, 2012 at 01:36:42PM -0700, Chris Larson wrote:
> On Sun, Dec 23, 2012 at 1:22 PM, Martin Jansa <martin.jansa@gmail.com>wrote:
>
> > * 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
> >
> > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> >
>
> EXCLUDE_FROM_WORLD_pn-foo = "1"
I've used what LOCALCOUNT is using, but I can change it to _pn-foo if
wanted.
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] cache: allow to set EXCLUDE_FROM_WORLD outside recipe
2012-12-23 20:45 ` Martin Jansa
@ 2012-12-23 23:48 ` Chris Larson
2012-12-27 12:38 ` Martin Jansa
0 siblings, 1 reply; 5+ messages in thread
From: Chris Larson @ 2012-12-23 23:48 UTC (permalink / raw)
To: Martin Jansa; +Cc: bitbake-devel@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 802 bytes --]
On Sun, Dec 23, 2012 at 1:45 PM, Martin Jansa <martin.jansa@gmail.com>wrote:
> On Sun, Dec 23, 2012 at 01:36:42PM -0700, Chris Larson wrote:
> > On Sun, Dec 23, 2012 at 1:22 PM, Martin Jansa <martin.jansa@gmail.com
> >wrote:
> >
> > > * 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
> > >
> > > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> > >
> >
> > 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.
--
Christopher Larson
[-- Attachment #2: Type: text/html, Size: 1355 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] cache: allow to set EXCLUDE_FROM_WORLD outside recipe
2012-12-23 23:48 ` Chris Larson
@ 2012-12-27 12:38 ` Martin Jansa
0 siblings, 0 replies; 5+ messages in thread
From: Martin Jansa @ 2012-12-27 12:38 UTC (permalink / raw)
To: Chris Larson; +Cc: bitbake-devel@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]
On Sun, Dec 23, 2012 at 04:48:30PM -0700, Chris Larson wrote:
> On Sun, Dec 23, 2012 at 1:45 PM, Martin Jansa <martin.jansa@gmail.com>wrote:
>
> > On Sun, Dec 23, 2012 at 01:36:42PM -0700, Chris Larson wrote:
> > > On Sun, Dec 23, 2012 at 1:22 PM, Martin Jansa <martin.jansa@gmail.com
> > >wrote:
> > >
> > > > * 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
> > > >
> > > > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> > > >
> > >
> > > 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,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-12-27 12:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-23 20:22 [PATCH] cache: allow to set EXCLUDE_FROM_WORLD outside recipe Martin Jansa
2012-12-23 20:36 ` Chris Larson
2012-12-23 20:45 ` Martin Jansa
2012-12-23 23:48 ` Chris Larson
2012-12-27 12:38 ` Martin Jansa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.