diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2010-11-06 14:33:05 +0000 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-11-06 14:33:05 +0000 |
| commit | b80a8d28f85f1b3c5b2ee8e417d230cc583a5bf0 (patch) | |
| tree | 584240bc84de2eedeb82676d3034f34f8d54a9da /bitbake/lib/bb/runqueue.py | |
| parent | a59935fb3a7260e2be7769a783ac907a1d73e699 (diff) | |
| download | poky-b80a8d28f85f1b3c5b2ee8e417d230cc583a5bf0.tar.gz | |
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.py | 12 |
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): | |||
| 1212 | self.task_skip(task) | 1212 | self.task_skip(task) |
| 1213 | return True | 1213 | return True |
| 1214 | 1214 | ||
| 1215 | taskdep = self.rqdata.dataCache.task_deps[fn] | ||
| 1216 | if 'noexec' in taskdep and taskname in taskdep['noexec']: | ||
| 1217 | bb.msg.note(1, bb.msg.domain.RunQueue, | ||
| 1218 | "Noexec task %d of %d (ID: %s, %s)" % (self.stats.completed + self.stats.active + self.stats.failed + 1, | ||
| 1219 | self.stats.total, | ||
| 1220 | task, | ||
| 1221 | self.rqdata.get_user_idstring(task))) | ||
| 1222 | self.runq_running[task] = 1 | ||
| 1223 | self.runq_buildable[task] = 1 | ||
| 1224 | self.task_complete(task) | ||
| 1225 | return True | ||
| 1226 | |||
| 1215 | bb.event.fire(runQueueTaskStarted(task, self.stats, self.rq), self.cfgData) | 1227 | bb.event.fire(runQueueTaskStarted(task, self.stats, self.rq), self.cfgData) |
| 1216 | bb.msg.note(1, bb.msg.domain.RunQueue, | 1228 | bb.msg.note(1, bb.msg.domain.RunQueue, |
| 1217 | "Running task %d of %d (ID: %s, %s)" % (self.stats.completed + self.stats.active + self.stats.failed + 1, | 1229 | "Running task %d of %d (ID: %s, %s)" % (self.stats.completed + self.stats.active + self.stats.failed + 1, |
