]> code.ossystems Code Review - openembedded-core.git/commit
image_types_wic: fix expansion error
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 22 Feb 2017 14:39:35 +0000 (16:39 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Feb 2017 20:29:10 +0000 (12:29 -0800)
commit20f8fddd28fe46d7e694804de3d894cdf9f7c636
tree7ad72e3d16282174f2df04fb9617172e5912c85d
parentdef3800c7e58d9d1b54ea1df27b190a0f6d1d544
image_types_wic: fix expansion error

Variable WKS_SEARCH_PATH was not fully expanded when used directly
in this expression:
    WKS_FULL_PATH = "${@wks_search('${WKS_FILES}'.split(), '${WKS_SEARCH_PATH}') or ''}"

This caused expansion error: bb.data_smart.ExpansionError:
Failure expanding variable WKS_FULL_PATH, .... which triggered exception
SyntaxError: invalid syntax (WKS_FULL_PATH, line 1)

Calling d.getVar instead of directly referencing variables
should fix the issue.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/image_types_wic.bbclass