diff options
author | Igor Romanov <i.romanov@inango-systems.com> | 2017-09-28 21:08:31 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-08 22:24:03 +0000 |
commit | 3e5cf0c92fa6f488ba0efffa8d756a75ee7ea373 (patch) | |
tree | 28c62944ae6e5dfd28bed1406185256a6edcead5 /meta/classes | |
parent | 0877fb2fd30469719b9ba5c8367b098ab8cc5c43 (diff) | |
download | poky-3e5cf0c92fa6f488ba0efffa8d756a75ee7ea373.tar.gz |
image.bbclass: Fix 'vardepsexclude' mechanism for image_cmd_${FSTYPE}
Current mechanism doesn't allow to use any non-determenistic variable, except 'DATE' and 'DATETIME', inside IMAGE_CMD_${FSTYPE} prototype.
Passing 'vardepsexclude' values from IMAGE_CMD_${FSTYPE}, so users will be able to avoid taskhash mismatch problems.
(From OE-Core rev: cb19166c540969f56959e25c1068934bdc40b013)
Signed-off-by: Igor Romanov <i.romanov@inango-systems.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/image.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 0d14250c0d..20240ba9f0 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -440,6 +440,9 @@ python () { | |||
440 | localdata.delVar('DATETIME') | 440 | localdata.delVar('DATETIME') |
441 | localdata.delVar('DATE') | 441 | localdata.delVar('DATE') |
442 | localdata.delVar('TMPDIR') | 442 | localdata.delVar('TMPDIR') |
443 | vardepsexclude = (d.getVarFlag('IMAGE_CMD_' + realt, 'vardepsexclude', True) or '').split() | ||
444 | for dep in vardepsexclude: | ||
445 | localdata.delVar(dep) | ||
443 | 446 | ||
444 | image_cmd = localdata.getVar("IMAGE_CMD") | 447 | image_cmd = localdata.getVar("IMAGE_CMD") |
445 | vardeps.add('IMAGE_CMD_' + realt) | 448 | vardeps.add('IMAGE_CMD_' + realt) |
@@ -503,7 +506,7 @@ python () { | |||
503 | d.prependVarFlag(task, 'postfuncs', ' create_symlinks') | 506 | d.prependVarFlag(task, 'postfuncs', ' create_symlinks') |
504 | d.appendVarFlag(task, 'subimages', ' ' + ' '.join(subimages)) | 507 | d.appendVarFlag(task, 'subimages', ' ' + ' '.join(subimages)) |
505 | d.appendVarFlag(task, 'vardeps', ' ' + ' '.join(vardeps)) | 508 | d.appendVarFlag(task, 'vardeps', ' ' + ' '.join(vardeps)) |
506 | d.appendVarFlag(task, 'vardepsexclude', 'DATETIME DATE') | 509 | d.appendVarFlag(task, 'vardepsexclude', 'DATETIME DATE ' + ' '.join(vardepsexclude)) |
507 | 510 | ||
508 | bb.debug(2, "Adding task %s before %s, after %s" % (task, 'do_image_complete', after)) | 511 | bb.debug(2, "Adding task %s before %s, after %s" % (task, 'do_image_complete', after)) |
509 | bb.build.addtask(task, 'do_image_complete', after, d) | 512 | bb.build.addtask(task, 'do_image_complete', after, d) |