summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-11-06 14:33:05 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-11-06 14:33:05 +0000
commitb80a8d28f85f1b3c5b2ee8e417d230cc583a5bf0 (patch)
tree584240bc84de2eedeb82676d3034f34f8d54a9da /bitbake/lib/bb/runqueue.py
parenta59935fb3a7260e2be7769a783ac907a1d73e699 (diff)
downloadopenembedded-core-b80a8d28f85f1b3c5b2ee8e417d230cc583a5bf0.tar.gz
openembedded-core-b80a8d28f85f1b3c5b2ee8e417d230cc583a5bf0.tar.bz2
openembedded-core-b80a8d28f85f1b3c5b2ee8e417d230cc583a5bf0.zip
bitbake: Add support for 'noexec' tasks
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r--bitbake/lib/bb/runqueue.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 848dccac34..178a5a61b9 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1212,6 +1212,18 @@ class RunQueueExecuteTasks(RunQueueExecute):
self.task_skip(task)
return True
+ taskdep = self.rqdata.dataCache.task_deps[fn]
+ if 'noexec' in taskdep and taskname in taskdep['noexec']:
+ bb.msg.note(1, bb.msg.domain.RunQueue,
+ "Noexec task %d of %d (ID: %s, %s)" % (self.stats.completed + self.stats.active + self.stats.failed + 1,
+ self.stats.total,
+ task,
+ self.rqdata.get_user_idstring(task)))
+ self.runq_running[task] = 1
+ self.runq_buildable[task] = 1
+ self.task_complete(task)
+ return True
+
bb.event.fire(runQueueTaskStarted(task, self.stats, self.rq), self.cfgData)
bb.msg.note(1, bb.msg.domain.RunQueue,
"Running task %d of %d (ID: %s, %s)" % (self.stats.completed + self.stats.active + self.stats.failed + 1,