summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/build.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index 1f4107fb6..5e1aaee80 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -282,7 +282,13 @@ def exec_task(task, d):
data.update_data(localdata)
data.expandKeys(localdata)
event.fire(TaskStarted(task, localdata), localdata)
+ prefuncs = (data.getVarFlag(task, 'prefuncs', localdata) or "").split()
+ for func in prefuncs:
+ exec_func(func, localdata)
exec_func(task, localdata)
+ postfuncs = (data.getVarFlag(task, 'postfuncs', localdata) or "").split()
+ for func in postfuncs:
+ exec_func(func, localdata)
event.fire(TaskSucceeded(task, localdata), localdata)
except FuncFailed as message:
# Try to extract the optional logfile