From b80a8d28f85f1b3c5b2ee8e417d230cc583a5bf0 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 6 Nov 2010 14:33:05 +0000 Subject: bitbake: Add support for 'noexec' tasks Signed-off-by: Richard Purdie --- bitbake/lib/bb/runqueue.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bitbake/lib/bb/runqueue.py') 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, -- cgit v1.2.3