diff options
-rw-r--r-- | bitbake/lib/bb/build.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 1f4107fb65..5e1aaee802 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -282,7 +282,13 @@ def exec_task(task, d): | |||
282 | data.update_data(localdata) | 282 | data.update_data(localdata) |
283 | data.expandKeys(localdata) | 283 | data.expandKeys(localdata) |
284 | event.fire(TaskStarted(task, localdata), localdata) | 284 | event.fire(TaskStarted(task, localdata), localdata) |
285 | prefuncs = (data.getVarFlag(task, 'prefuncs', localdata) or "").split() | ||
286 | for func in prefuncs: | ||
287 | exec_func(func, localdata) | ||
285 | exec_func(task, localdata) | 288 | exec_func(task, localdata) |
289 | postfuncs = (data.getVarFlag(task, 'postfuncs', localdata) or "").split() | ||
290 | for func in postfuncs: | ||
291 | exec_func(func, localdata) | ||
286 | event.fire(TaskSucceeded(task, localdata), localdata) | 292 | event.fire(TaskSucceeded(task, localdata), localdata) |
287 | except FuncFailed as message: | 293 | except FuncFailed as message: |
288 | # Try to extract the optional logfile | 294 | # Try to extract the optional logfile |