diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-02-21 17:09:10 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 23:18:18 +0000 |
commit | ee860b3bf5117ef4b01530d336dd9c4e0d7b5550 (patch) | |
tree | 6f5c4960af8a927faf53528a9807bb9cce8bc6b2 | |
parent | e3c64a90d7735c061bc4c407519ab7ae6ba3d755 (diff) | |
download | poky-ee860b3bf5117ef4b01530d336dd9c4e0d7b5550.tar.gz |
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.
(From OE-Core rev: 243ccd6b8b389231f6c4a8e251c2bd6b2cf6eaad)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta-selftest/recipes-test/images/wic-image-minimal.bb | 2 | ||||
-rw-r--r-- | meta/classes/image_types_wic.bbclass | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/meta-selftest/recipes-test/images/wic-image-minimal.bb b/meta-selftest/recipes-test/images/wic-image-minimal.bb index 9e93b8e1a9..b687935c49 100644 --- a/meta-selftest/recipes-test/images/wic-image-minimal.bb +++ b/meta-selftest/recipes-test/images/wic-image-minimal.bb | |||
@@ -6,7 +6,7 @@ IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP}" | |||
6 | 6 | ||
7 | IMAGE_FSTYPES = "wic" | 7 | IMAGE_FSTYPES = "wic" |
8 | 8 | ||
9 | DEPENDS = "syslinux syslinux-native dosfstools-native mtools-native gptfdisk-native" | 9 | WKS_FILE_DEPENDS = "syslinux syslinux-native dosfstools-native mtools-native gptfdisk-native" |
10 | 10 | ||
11 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 11 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
12 | 12 | ||
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 | |||
40 | WKS_FILE_CHECKSUM = "${@'${WKS_FULL_PATH}:%s' % os.path.exists('${WKS_FULL_PATH}') if '${USING_WIC}' else ''}" | 40 | WKS_FILE_CHECKSUM = "${@'${WKS_FULL_PATH}:%s' % os.path.exists('${WKS_FULL_PATH}') if '${USING_WIC}' else ''}" |
41 | do_image_wic[file-checksums] += "${WKS_FILE_CHECKSUM}" | 41 | do_image_wic[file-checksums] += "${WKS_FILE_CHECKSUM}" |
42 | do_image_wic[depends] += "wic-tools:do_build" | 42 | do_image_wic[depends] += "wic-tools:do_build" |
43 | WKS_FILE_DEPENDS ??= '' | ||
44 | DEPENDS += "${@ '${WKS_FILE_DEPENDS}' if d.getVar('USING_WIC') else '' }" | ||
43 | 45 | ||
44 | python do_write_wks_template () { | 46 | python do_write_wks_template () { |
45 | """Write out expanded template contents to WKS_FULL_PATH.""" | 47 | """Write out expanded template contents to WKS_FULL_PATH.""" |