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 | |
parent | a59935fb3a7260e2be7769a783ac907a1d73e699 (diff) | |
download | openembedded-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')
-rw-r--r-- | bitbake/lib/bb/build.py | 1 | ||||
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 5fa18aa6af..18a75edca3 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py @@ -429,6 +429,7 @@ def add_tasks(tasklist, d): getTask('recrdeptask') getTask('nostamp') getTask('fakeroot') + getTask('noexec') task_deps['parents'][task] = [] for dep in flags['deps']: dep = data.expand(dep, d) 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, |