* [PATCH 0/1] Rebuild when WICVARS change
@ 2015-12-30 6:52 mariano.lopez
2015-12-30 6:52 ` [PATCH 1/1] image_types.bbclass: " mariano.lopez
0 siblings, 1 reply; 2+ messages in thread
From: mariano.lopez @ 2015-12-30 6:52 UTC (permalink / raw)
To: openembedded-core
From: Mariano Lopez <mariano.lopez@linux.intel.com>
This patch adds these WICVARS to vardeps of do_rootfs when
a wic image is build. This will trigger a rebuild when
a variable needed by WIC changes.
The following changes since commit 2cd061a29a94fdcdfec86732e6bcbb71c12c4afc:
bluez5: include the patch only for 5.36 (2015-12-28 13:02:11 +0000)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib mariano/bug8693
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=mariano/bug8693
Mariano Lopez (1):
image_types.bbclass: Rebuild when WICVARS change
meta/classes/image_types.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--
1.8.4.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] image_types.bbclass: Rebuild when WICVARS change
2015-12-30 6:52 [PATCH 0/1] Rebuild when WICVARS change mariano.lopez
@ 2015-12-30 6:52 ` mariano.lopez
0 siblings, 0 replies; 2+ messages in thread
From: mariano.lopez @ 2015-12-30 6:52 UTC (permalink / raw)
To: openembedded-core
From: Mariano Lopez <mariano.lopez@linux.intel.com>
The procces to do a wic image is to save a file with
variables required by wic and then call wic using this
file. Because this is external to bitbake if the vars
change, the image won't be rebuild; an example of such
is IMAGE_BOOT_FILES.
This patch adds these variables to vardeps of do_rootfs
when a wic image is build. This will rebuild the image
if a variable needed by wic changes.
[YOCTO #8693]
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
---
meta/classes/image_types.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index afe8d0c..dea3bb0 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -198,9 +198,10 @@ IMAGE_CMD_wic () {
}
IMAGE_CMD_wic[vardepsexclude] = "WKS_FULL_PATH WKS_FILES"
-# Rebuild when the wks file changes
+# Rebuild when the wks file or vars in WICVARS change
USING_WIC = "${@bb.utils.contains_any('IMAGE_FSTYPES', 'wic ' + ' '.join('wic.%s' % c for c in '${COMPRESSIONTYPES}'.split()), '1', '', d)}"
do_rootfs[file-checksums] += "${@'${WKS_FULL_PATH}:%s' % os.path.exists('${WKS_FULL_PATH}') if '${USING_WIC}' else ''}"
+do_rootfs[vardeps] += "${@bb.utils.contains("USING_WIC", "1", "${WICVARS}", "", d)}"
EXTRA_IMAGECMD = ""
--
1.8.4.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-30 14:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-30 6:52 [PATCH 0/1] Rebuild when WICVARS change mariano.lopez
2015-12-30 6:52 ` [PATCH 1/1] image_types.bbclass: " mariano.lopez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox