Skip to contentSkip to conversation

cooker.py: Allow siggen classes to be added by the metadata

PATCH New Richard Purdie 1 participant 1 message Jan 20, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cooker.py: Allow siggen classes to be added by the metadata

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.

---

bitbake/lib/bb/cooker.py +1 -1
index 4197a02..927c571 100644
@@ -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 ):