Skip to contentSkip to conversation

image_types_wic.bbclass: Ensure '-c image_wic' works

PATCH In review Otavio Salvador 2 participants 3 messages Dec 19, 2017 – Dec 23, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---

Changes in v2:
- use 'do_deploy' instead of 'do_build'

 meta/classes/image_types_wic.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta/classes/image_types_wic.bbclass +3 -0
index 222ae00433..dcf620cee0 100644
@@ -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"
Signature · 1 line
2.15.1
#1 lore raw
Quoted 10 lines · Otavio Salvador

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.

This patch needs to be applied on:

- master
- rocko
- pyro
- morty
- krogoth

It is an annoying bug that has a simple fix.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#2 lore raw

Hello folks,

Quoted 15 lines · Otavio Salvador
Quoted 10 lines · Otavio Salvador

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.

This patch needs to be applied on:

Quoted 7 lines

- master
- rocko
- pyro
- morty
- krogoth

It is an annoying bug that has a simple fix.

This has been applied to master, now it is time to backport it to the stable releases that has the same error.

I made branches for rocko[1] and pyro[2]

1. https://github.com/OSSystems/oe-core/tree/rocko-next
2. https://github.com/OSSystems/oe-core/tree/pyro-next

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750