From 7d7d3a0009a6d4e91b5696771cf1ae142af957fb Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Fri, 6 Jan 2012 17:02:21 +0800 Subject: cooker: user bb.configuration.data to inject events For buildTargets function, we use bb.configuration.data as parameter to inject events, since in hob environment, some variables are modified dynamically and bb.configuration.event_data may out of date. (Bitbake rev: 487a124942fd5cd9de71413b79a4049a6d26f1e8) Signed-off-by: Dongxiao Xu Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 15243f2194..6473839b30 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -1088,7 +1088,7 @@ class BBCooker: return False if not retval: - bb.event.fire(bb.event.BuildCompleted(buildname, targets, failures), self.configuration.event_data) + bb.event.fire(bb.event.BuildCompleted(buildname, targets, failures), self.configuration.data) self.command.finishAsyncCommand() return False if retval is True: @@ -1098,7 +1098,7 @@ class BBCooker: self.buildSetVars() buildname = self.configuration.data.getVar("BUILDNAME") - bb.event.fire(bb.event.BuildStarted(buildname, targets), self.configuration.event_data) + bb.event.fire(bb.event.BuildStarted(buildname, targets), self.configuration.data) localdata = data.createCopy(self.configuration.data) bb.data.update_data(localdata) -- cgit v1.2.3-54-g00ecf