Patchwork [bitbake-devel] cooker.py: Allow siggen classes to be added by the metadata

login
register
mail settings
Submitter Richard Purdie
Date Jan. 20, 2012, 4:15 p.m.
Message ID <1327076118.4268.2.camel@ted>
Download mbox | patch
Permalink /patch/19831/
State New
Headers show

Comments

Richard Purdie - Jan. 20, 2012, 4:15 p.m.
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>
---

Patch

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 ):