diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2017-08-29 02:54:00 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-16 00:01:42 +0100 |
commit | 4af13a4855c74cea9cf6c168fd73165d7094bf93 (patch) | |
tree | 1bf3773271c4143acb5e626f499606ddcd9f65be /meta/classes | |
parent | 23b359b6e26d0b17037bf955bd15a16a3fd9ab8f (diff) | |
download | openembedded-core-4af13a4855c74cea9cf6c168fd73165d7094bf93.tar.gz openembedded-core-4af13a4855c74cea9cf6c168fd73165d7094bf93.tar.bz2 openembedded-core-4af13a4855c74cea9cf6c168fd73165d7094bf93.zip |
image.bbclass: delete DATE variable too
When creating a custom image which uses the DATE variable the basehash
seems to change every day and lead to errors such as:
ERROR: console-tdx-image-2.7.6-r0 do_image_customimg: Error executing a python function in exec_python_func() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:set_image_size(d)
...
Add DATE to the variables which should not get expanded early and to the
vardepsexclude list for the image task.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/image.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 2c1dc8145d..7949b465a3 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -437,6 +437,7 @@ python () { # date/time values. It will get expanded at execution time. # Similarly TMPDIR since otherwise we see QA stamp comparision problems localdata.delVar('DATETIME') + localdata.delVar('DATE') localdata.delVar('TMPDIR') image_cmd = localdata.getVar("IMAGE_CMD") @@ -501,7 +502,7 @@ python () { d.prependVarFlag(task, 'postfuncs', ' create_symlinks') d.appendVarFlag(task, 'subimages', ' ' + ' '.join(subimages)) d.appendVarFlag(task, 'vardeps', ' ' + ' '.join(vardeps)) - d.appendVarFlag(task, 'vardepsexclude', 'DATETIME') + d.appendVarFlag(task, 'vardepsexclude', 'DATETIME DATE') bb.debug(2, "Adding task %s before %s, after %s" % (task, 'do_image_complete', after)) bb.build.addtask(task, 'do_image_complete', after, d) |