From patchwork Fri Jan 6 09:02:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 03/16] cooker: user bb.configuration.data to inject events Date: Fri, 06 Jan 2012 09:02:21 -0000 From: Dongxiao Xu X-Patchwork-Id: 18605 Message-Id: <7f993ecf6ca80c9b68d47d8c450772313159a394.1325840050.git.dongxiao.xu@intel.com> To: bitbake-devel@lists.openembedded.org 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. Signed-off-by: Dongxiao Xu --- lib/bb/cooker.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index b33e9ff..fe44839 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -1089,7 +1089,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: @@ -1099,7 +1099,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)