diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2013-09-06 17:53:20 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-06 22:31:33 +0100 |
commit | 373e2096054d0f6bbeb96e8c6596c495df486160 (patch) | |
tree | df6b953e976c005a72b0e9558b6a1e80056e91fc /bitbake/bin/bitbake-worker | |
parent | c8957a4fbe8182f8a25c968c04988cebe07f6508 (diff) | |
download | poky-373e2096054d0f6bbeb96e8c6596c495df486160.tar.gz |
bitbake: bitbake: Ensure ${DATE} and ${TIME} are consistent
Due to the worker split the ${DATE} and ${TIME} variables could end up
with different values for different workers.
E.g., a task like do_rootfs that is run within a fakeroot environment
had a slightly different view of the time than another task that was not
fakerooted which made it impossible to correctly refer to the image
generated by do_rootfs from the other task.
(Bitbake rev: 756cc69ebf8bfe8455d0c90f288dd51be2499773)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake-worker')
-rwxr-xr-x | bitbake/bin/bitbake-worker | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker index 2f21e7c662..66b6aabfdb 100755 --- a/bitbake/bin/bitbake-worker +++ b/bitbake/bin/bitbake-worker | |||
@@ -148,6 +148,8 @@ def fork_off_task(cfg, data, workerdata, fn, task, taskname, appends, quieterror | |||
148 | 148 | ||
149 | data.setVar("BB_WORKERCONTEXT", "1") | 149 | data.setVar("BB_WORKERCONTEXT", "1") |
150 | data.setVar("BUILDNAME", workerdata["buildname"]) | 150 | data.setVar("BUILDNAME", workerdata["buildname"]) |
151 | data.setVar("DATE", workerdata["date"]) | ||
152 | data.setVar("TIME", workerdata["time"]) | ||
151 | bb.parse.siggen.set_taskdata(workerdata["hashes"], workerdata["hash_deps"], workerdata["sigchecksums"]) | 153 | bb.parse.siggen.set_taskdata(workerdata["hashes"], workerdata["hash_deps"], workerdata["sigchecksums"]) |
152 | ret = 0 | 154 | ret = 0 |
153 | try: | 155 | try: |