[oe-commits] [openembedded-core] 08/49: image_types_wic.bbclass: Ensure '-c image_wic' works

git at git.openembedded.org git at git.openembedded.org
Thu Dec 21 00:19:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit a0243b339ec2b1488b5addcd56e34c69fd657579
Author: Otavio Salvador <otavio at ossystems.com.br>
AuthorDate: Tue Dec 19 16:14:23 2017 -0200

    image_types_wic.bbclass: Ensure '-c image_wic' works
    
    The 'wic' image may use files which has been deployed (e.g in
    do_deploy) for some partitions that may need to be copied in a
    specific partition or filesystem (e.g a bootloader).
    
    When using 'bitbake <image> -c image_wic', from a clean build, the
    contents of do_deploy must also be available so we need to ensure all
    do_deploy of the image dependencies has been complete.
    
    Reported-by: Fabio Berton <fabio.berton at ossystems.com.br>
    Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/image_types_wic.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/image_types_wic.bbclass b/meta/classes/image_types_wic.bbclass
index 222ae00..dcf620c 100644
--- a/meta/classes/image_types_wic.bbclass
+++ b/meta/classes/image_types_wic.bbclass
@@ -41,6 +41,9 @@ WKS_FILE_CHECKSUM = "${@'${WKS_FULL_PATH}:%s' % os.path.exists('${WKS_FULL_PATH}
 do_image_wic[file-checksums] += "${WKS_FILE_CHECKSUM}"
 do_image_wic[depends] += "${@' '.join('%s-native:do_populate_sysroot' % r for r in ('parted', 'gptfdisk', 'dosfstools', 'mtools'))}"
 
+# We ensure all artfacts are deployed (e.g virtual/bootloader)
+do_image_wic[recrdeptask] += "do_deploy"
+
 WKS_FILE_DEPENDS_DEFAULT = "syslinux-native bmap-tools-native cdrtools-native btrfs-tools-native squashfs-tools-native e2fsprogs-native"
 WKS_FILE_DEPENDS_BOOTLOADERS = ""
 WKS_FILE_DEPENDS_BOOTLOADERS_x86 = "syslinux grub-efi systemd-boot"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list