Openembedded Bitbake Development
 help / color / mirror / Atom feed
* [PATCH] cooker.py: Allow siggen classes to be added by the metadata
@ 2012-01-20 16:15 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-01-20 16:15 UTC (permalink / raw)
  To: bitbake-devel

By calling init_parser which sets up the siggen code after the ConfigParsed
event is fired, we can allow the metadata to add siggen classes which
was always what the code intended.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 4197a02..927c571 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -855,8 +855,8 @@ class BBCooker:
         if data.getVar("BB_WORKERCONTEXT", False) is None:
             bb.fetch.fetcher_init(data)
         bb.codeparser.parser_cache_init(data)
-        bb.parse.init_parser(data)
         bb.event.fire(bb.event.ConfigParsed(), data)
+        bb.parse.init_parser(data)
         self.configuration.data = data
 
     def handleCollections( self, collections ):





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-20 16:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-20 16:15 [PATCH] cooker.py: Allow siggen classes to be added by the metadata Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox