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

Submitted by Richard Purdie on Jan. 20, 2012, 4:15 p.m. | Patch ID: 19831


Message ID 1327076118.4268.2.camel@ted
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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.parse.init_parser(data)
         bb.event.fire(bb.event.ConfigParsed(), data)
+        bb.parse.init_parser(data)
         self.configuration.data = data
     def handleCollections( self, collections ):