summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
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
parenta59935fb3a7260e2be7769a783ac907a1d73e699 (diff)
downloadpoky-b80a8d28f85f1b3c5b2ee8e417d230cc583a5bf0.tar.gz
bitbake: Add support for 'noexec' tasks
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/build.py1
-rw-r--r--bitbake/lib/bb/runqueue.py12
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):
429 getTask('recrdeptask') 429 getTask('recrdeptask')
430 getTask('nostamp') 430 getTask('nostamp')
431 getTask('fakeroot') 431 getTask('fakeroot')
432 getTask('noexec')
432 task_deps['parents'][task] = [] 433 task_deps['parents'][task] = []
433 for dep in flags['deps']: 434 for dep in flags['deps']:
434 dep = data.expand(dep, d) 435 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):
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,