aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/parse/ast.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-12 13:25:36 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-19 15:22:00 +0000
commit4dcd0e53f5ff4bf4f2d6cbdc51ff33a5f5f206af (patch)
treeb052330d9ea804b447513d5db6d6406f723f8e4b /lib/bb/parse/ast.py
parentc53e43f3c6a675c0934a7a4e358fd66b049ffca3 (diff)
downloadbitbake-4dcd0e53f5ff4bf4f2d6cbdc51ff33a5f5f206af.tar.gz
event/ast: Add RecipeTaskPreProcess event before task finalisation
There are various pieces of code which need to run after the tasks are finalised but before bitbake locks in on the task dependencies. This adds such an event so dependency changes in anonymous python can be accounted for and acted upon by these specific event handlers. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/parse/ast.py')
-rw-r--r--lib/bb/parse/ast.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/parse/ast.py b/lib/bb/parse/ast.py
index 853dda86b..8b5b36619 100644
--- a/lib/bb/parse/ast.py
+++ b/lib/bb/parse/ast.py
@@ -358,6 +358,7 @@ def finalize(fn, d, variant = None):
bb.data.update_data(d)
tasklist = d.getVar('__BBTASKS', False) or []
+ bb.event.fire(bb.event.RecipeTaskPreProcess(fn, list(tasklist)), d)
bb.build.add_tasks(tasklist, d)
bb.parse.siggen.finalise(fn, d, variant)