diff options
| author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-01-06 17:02:21 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-06 15:55:56 +0000 |
| commit | 7d7d3a0009a6d4e91b5696771cf1ae142af957fb (patch) | |
| tree | 9a28db20227707eb888fc1cd2686f13c5265553f | |
| parent | 1c0884399815cf0e42a0990bf30c6216eea741ed (diff) | |
| download | poky-7d7d3a0009a6d4e91b5696771cf1ae142af957fb.tar.gz | |
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 <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 4 |
1 files 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: | |||
| 1088 | return False | 1088 | return False |
| 1089 | 1089 | ||
| 1090 | if not retval: | 1090 | if not retval: |
| 1091 | bb.event.fire(bb.event.BuildCompleted(buildname, targets, failures), self.configuration.event_data) | 1091 | bb.event.fire(bb.event.BuildCompleted(buildname, targets, failures), self.configuration.data) |
| 1092 | self.command.finishAsyncCommand() | 1092 | self.command.finishAsyncCommand() |
| 1093 | return False | 1093 | return False |
| 1094 | if retval is True: | 1094 | if retval is True: |
| @@ -1098,7 +1098,7 @@ class BBCooker: | |||
| 1098 | self.buildSetVars() | 1098 | self.buildSetVars() |
| 1099 | 1099 | ||
| 1100 | buildname = self.configuration.data.getVar("BUILDNAME") | 1100 | buildname = self.configuration.data.getVar("BUILDNAME") |
| 1101 | bb.event.fire(bb.event.BuildStarted(buildname, targets), self.configuration.event_data) | 1101 | bb.event.fire(bb.event.BuildStarted(buildname, targets), self.configuration.data) |
| 1102 | 1102 | ||
| 1103 | localdata = data.createCopy(self.configuration.data) | 1103 | localdata = data.createCopy(self.configuration.data) |
| 1104 | bb.data.update_data(localdata) | 1104 | bb.data.update_data(localdata) |
