[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    [OE-core] [PATCH 1/1] image_types.bbclass: Rebuild when WICVARS change
From:       mariano.lopez () linux ! intel ! com (mariano ! lopez at linux ! intel ! com)
Date:       2015-12-30 6:52:54
Message-ID: 75df2cf72d8739b620744ab04a5c44c1fa8d633c.1451458093.git.mariano.lopez () linux ! intel ! com
[Download RAW message or body]

From: Mariano Lopez <mariano.lopez at 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 at 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic