aboutsummaryrefslogtreecommitdiffstats
path: root/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:42:20 +0100
commita981df3cc9bf410d24f39919959952bdc6c76d03 (patch)
tree7377a17bf8049710b6335eef4be622c402238bdd /lib/bb/event.py
parentf22ac9149cc9ab96510bb377deb82cd9bceb95c1 (diff)
downloadbitbake-a981df3cc9bf410d24f39919959952bdc6c76d03.tar.gz
bitbake-a981df3cc9bf410d24f39919959952bdc6c76d03.tar.bz2
bitbake-a981df3cc9bf410d24f39919959952bdc6c76d03.zip
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/event.py')
-rw-r--r--lib/bb/event.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py
index a3288b61..7d47edb9 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -206,13 +206,17 @@ def getName(e):
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"""