aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-21 17:09:10 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-04 10:42:32 +0000
commit243ccd6b8b389231f6c4a8e251c2bd6b2cf6eaad (patch)
tree4a462640740a2a07ad827fc83ff62f4f16cf03b6 /meta/classes
parentd994340ec32ec04226ec185a8998775602c8b8bf (diff)
downloadopenembedded-core-contrib-243ccd6b8b389231f6c4a8e251c2bd6b2cf6eaad.tar.gz
openembedded-core-contrib-243ccd6b8b389231f6c4a8e251c2bd6b2cf6eaad.tar.bz2
openembedded-core-contrib-243ccd6b8b389231f6c4a8e251c2bd6b2cf6eaad.zip
wic: add WKS_FILE_DEPENDS variable
This variable should be used to specify dependencies that will be added to DEPENDS only if wic image build is 'active' i.e. when 'wic' is in IMAGE_FSTYPES. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/image_types_wic.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/image_types_wic.bbclass b/meta/classes/image_types_wic.bbclass
index d012a5d5ca..500c8c5653 100644
--- a/meta/classes/image_types_wic.bbclass
+++ b/meta/classes/image_types_wic.bbclass
@@ -40,6 +40,8 @@ USING_WIC = "${@bb.utils.contains_any('IMAGE_FSTYPES', 'wic ' + ' '.join('wic.%s
WKS_FILE_CHECKSUM = "${@'${WKS_FULL_PATH}:%s' % os.path.exists('${WKS_FULL_PATH}') if '${USING_WIC}' else ''}"
do_image_wic[file-checksums] += "${WKS_FILE_CHECKSUM}"
do_image_wic[depends] += "wic-tools:do_build"
+WKS_FILE_DEPENDS ??= ''
+DEPENDS += "${@ '${WKS_FILE_DEPENDS}' if d.getVar('USING_WIC') else '' }"
python do_write_wks_template () {
"""Write out expanded template contents to WKS_FULL_PATH."""