class ConfigParsed(Event):
"""Configuration Parsing Complete"""
-class RecipeParsed(Event):
- """ Recipe Parsing Complete """
-
+class RecipeEvent(Event):
def __init__(self, fn):
self.fn = fn
Event.__init__(self)
+class RecipePreFinalise(RecipeEvent):
+ """ Recipe Parsing Complete but not yet finialised"""
+
+class RecipeParsed(RecipeEvent):
+ """ Recipe Parsing Complete """
+
class StampUpdate(Event):
"""Trigger for any adjustment of the stamp files to happen"""
def finalize(fn, d, variant = None):
bb.data.expandKeys(d)
- bb.data.update_data(d)
- code = []
- for funcname in bb.data.getVar("__BBANONFUNCS", d) or []:
- code.append("%s(d)" % funcname)
- bb.utils.simple_exec("\n".join(code), {"d": d})
- bb.data.update_data(d)
all_handlers = {}
for var in bb.data.getVar('__BBHANDLERS', d) or []:
handler = bb.data.getVar(var, d)
bb.event.register(var, handler)
+ bb.event.fire(bb.event.RecipePreFinalise(fn), d)
+
+ bb.data.update_data(d)
+ code = []
+ for funcname in bb.data.getVar("__BBANONFUNCS", d) or []:
+ code.append("%s(d)" % funcname)
+ bb.utils.simple_exec("\n".join(code), {"d": d})
+ bb.data.update_data(d)
+
tasklist = bb.data.getVar('__BBTASKS', d) or []
bb.build.add_tasks(tasklist, d)
bb.event.StampUpdate,
bb.event.ConfigParsed,
bb.event.RecipeParsed,
+ bb.event.RecipePreFinalise,
bb.runqueue.runQueueEvent,
bb.runqueue.runQueueExitWait)):
continue