summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-25 18:48:41 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-26 13:55:21 (GMT)
commit58f0d04f782a41583a89549bab7a71b1ef8d0a8d (patch)
treec1346a2689851283c3abedf7e4e30aa89e3c4400 /bitbake/lib
parentdfdb2eb33e7b899224f011cf6fad50d529a65183 (diff)
downloadpoky-58f0d04f782a41583a89549bab7a71b1ef8d0a8d.tar.gz
bitbake: runqueue.py: Optimise the hashvalidate call to only process tasks we may actually want
Currently we call the hashvalidate for anything without a valid setscene stamp. This improves the code to account for existing stamp files so that we only process setscene hashes for things we might actually end up using. This avoids hash processing and makes things slightly more efficient and the logs less confusing. (Bitbake rev: 2e71a65bd910e8be894b8284eb0a50de7270c081) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/runqueue.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 2925741..fd33d07 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1510,6 +1510,12 @@ class RunQueueExecuteScenequeue(RunQueueExecute):
1510 self.task_skip(task) 1510 self.task_skip(task)
1511 continue 1511 continue
1512 1512
1513 if self.rq.check_stamp_task(realtask, taskname, recurse = True, cache=self.stampcache):
1514 logger.debug(2, 'Normal stamp current for task %s(%s)', task, self.rqdata.get_user_idstring(realtask))
1515 stamppresent.append(task)
1516 self.task_skip(task)
1517 continue
1518
1513 sq_fn.append(fn) 1519 sq_fn.append(fn)
1514 sq_hashfn.append(self.rqdata.dataCache.hashfn[fn]) 1520 sq_hashfn.append(self.rqdata.dataCache.hashfn[fn])
1515 sq_hash.append(self.rqdata.runq_hash[realtask]) 1521 sq_hash.append(self.rqdata.runq_hash[realtask])