summaryrefslogtreecommitdiff
path: root/bitbake-dev/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2008-10-24 16:22:19 +0100
committerRob Bradford <rob@linux.intel.com>2008-10-27 10:19:54 +0000
commit2684070ac631787171a06926d324391756e6956b (patch)
tree25246af1cb186f8d2d0a26ffb33c52a45ed3f31b /bitbake-dev/lib/bb/cooker.py
parentacdff2b1542a3e6a333fa2c58a8a64dcb7b86808 (diff)
downloadopenembedded-core-2684070ac631787171a06926d324391756e6956b.tar.gz
openembedded-core-2684070ac631787171a06926d324391756e6956b.tar.bz2
openembedded-core-2684070ac631787171a06926d324391756e6956b.zip
bitbake-dev: Include target/command (from -c) in "buildTargets" command
This allows a UI to read / control which task for the given targets is used. This makes it more consistent with the "buildFile" command.
Diffstat (limited to 'bitbake-dev/lib/bb/cooker.py')
-rw-r--r--bitbake-dev/lib/bb/cooker.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake-dev/lib/bb/cooker.py b/bitbake-dev/lib/bb/cooker.py
index 339bb45ec1..01537ab2f7 100644
--- a/bitbake-dev/lib/bb/cooker.py
+++ b/bitbake-dev/lib/bb/cooker.py
@@ -151,7 +151,7 @@ class BBCooker:
bb.error("Please specify a package name for dependency graph generation.")
else:
if self.configuration.pkgs_to_build:
- self.commandlineAction = ["buildTargets", self.configuration.pkgs_to_build]
+ self.commandlineAction = ["buildTargets", self.configuration.pkgs_to_build, self.configuration.cmd]
else:
self.commandlineAction = None
bb.error("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.")
@@ -677,7 +677,7 @@ class BBCooker:
self.cookerIdle = False
self.server.register_idle_function(buildFileIdle, rq)
- def buildTargets(self, targets):
+ def buildTargets(self, targets, task):
"""
Attempt to build the targets specified
"""
@@ -721,7 +721,7 @@ class BBCooker:
runlist = []
for k in targets:
taskdata.add_provider(localdata, self.status, k)
- runlist.append([k, "do_%s" % self.configuration.cmd])
+ runlist.append([k, "do_%s" % task])
taskdata.add_unresolved(localdata, self.status)
rq = bb.runqueue.RunQueue(self, self.configuration.data, self.status, taskdata, runlist)