summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/event.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-09 17:30:17 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-09 22:43:46 +0100
commitb8321c5658124c50009a3c4dbead2df49e662812 (patch)
tree9493804fd8095e9f3f45804bd678abf6097e4008 /bitbake/lib/bb/event.py
parentaf93b8937e0eab940879646f579948d814faeb2b (diff)
downloadpoky-b8321c5658124c50009a3c4dbead2df49e662812.tar.gz
bitbake/event/ast: Add RecipePreFinalise event
One of the implications is we need to register the event handlers before executing the anonymous python functions. I can't find any issue with making that change in any existing metadata use cases. (Bitbake rev: a981df3cc9bf410d24f39919959952bdc6c76d03) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/event.py')
-rw-r--r--bitbake/lib/bb/event.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index a3288b619b..7d47edb9e7 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -206,13 +206,17 @@ def getName(e):
206class ConfigParsed(Event): 206class ConfigParsed(Event):
207 """Configuration Parsing Complete""" 207 """Configuration Parsing Complete"""
208 208
209class RecipeParsed(Event): 209class RecipeEvent(Event):
210 """ Recipe Parsing Complete """
211
212 def __init__(self, fn): 210 def __init__(self, fn):
213 self.fn = fn 211 self.fn = fn
214 Event.__init__(self) 212 Event.__init__(self)
215 213
214class RecipePreFinalise(RecipeEvent):
215 """ Recipe Parsing Complete but not yet finialised"""
216
217class RecipeParsed(RecipeEvent):
218 """ Recipe Parsing Complete """
219
216class StampUpdate(Event): 220class StampUpdate(Event):
217 """Trigger for any adjustment of the stamp files to happen""" 221 """Trigger for any adjustment of the stamp files to happen"""
218 222