From 4d15aaabf36c22feddea579150236396ae01b131 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 8 Jun 2011 19:49:05 +0100 Subject: runqueue.py: Export further hash information into the task environment Signed-off-by: Richard Purdie --- lib/bb/runqueue.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index de7e73ca4..2494cb2e9 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1111,6 +1111,11 @@ class RunQueueExecute: try: the_data = bb.cache.Cache.loadDataFull(fn, self.cooker.get_file_appends(fn), self.cooker.configuration.data) the_data.setVar('BB_TASKHASH', self.rqdata.runq_hash[task]) + for h in self.rqdata.hashes: + the_data.setVar("BBHASH_%s" % h, self.rqdata.hashes[h]) + for h in self.rqdata.hash_deps: + the_data.setVar("BBHASHDEPS_%s" % h, self.rqdata.hash_deps[h]) + os.environ.update(bb.data.exported_vars(the_data)) except Exception as exc: if not quieterrors: -- cgit 1.2.3-korg