aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-04-15 16:22:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-05-21 12:40:24 +0100
commit5c30cbe35e921f118e7da6b804af281627329d77 (patch)
treefcefbcd5909bd67c2ebf180d9d74cadbfaa563fd
parent647c13d4ae746a1bb9bd76ff318477dadb4d292f (diff)
downloadbitbake-5c30cbe35e921f118e7da6b804af281627329d77.tar.gz
event/ast: Add RecipePostKeyExpansion event
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/event.py4
-rw-r--r--lib/bb/parse/ast.py3
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py
index d1359f010..0e6d9b296 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -389,6 +389,10 @@ class RecipeEvent(Event):
class RecipePreFinalise(RecipeEvent):
""" Recipe Parsing Complete but not yet finalised"""
+class RecipePostKeyExpansion(RecipeEvent):
+ """ Recipe Parsing Complete but not yet finalised"""
+
+
class RecipeTaskPreProcess(RecipeEvent):
"""
Recipe Tasks about to be finalised
diff --git a/lib/bb/parse/ast.py b/lib/bb/parse/ast.py
index eb8cfa21b..785aa974e 100644
--- a/lib/bb/parse/ast.py
+++ b/lib/bb/parse/ast.py
@@ -338,6 +338,9 @@ def finalize(fn, d, variant = None):
bb.event.fire(bb.event.RecipePreFinalise(fn), d)
bb.data.expandKeys(d)
+
+ bb.event.fire(bb.event.RecipePostKeyExpansion(fn), d)
+
runAnonFuncs(d)
tasklist = d.getVar('__BBTASKS', False) or []