diff options
author | Ross Burton <ross@burtonini.com> | 2021-06-10 14:08:27 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-06-11 23:50:58 +0100 |
commit | 5e6218929d8d0ab704b26463f2bee0504cfedc1f (patch) | |
tree | d96b3bb706b374fd4c612046ca94ac69a9b0b58c /meta | |
parent | e8e5b166e977754bfa926385f8adbc77ea21b59d (diff) | |
download | poky-5e6218929d8d0ab704b26463f2bee0504cfedc1f.tar.gz |
image_types: add zsync conversions
Add image conversion types to create zsync[1] metadata. Use .zsync if
the image is already compressed and .gzsync if zsync should compress the
image itself.
The required tool, zsync-curl, has been submitted to meta-oe.
[1] http://zsync.moria.org.uk
(From OE-Core rev: e04113f8b139754c512278555558a1b88b35bc9e)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image_types.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 2a45d45c71..954d6739ec 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -278,7 +278,7 @@ IMAGE_TYPES = " \ | |||
278 | # CONVERSION_CMD/DEPENDS. | 278 | # CONVERSION_CMD/DEPENDS. |
279 | COMPRESSIONTYPES ?= "" | 279 | COMPRESSIONTYPES ?= "" |
280 | 280 | ||
281 | CONVERSIONTYPES = "gz bz2 lzma xz lz4 lzo zip zst sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum bmap u-boot vmdk vhd vhdx vdi qcow2 base64 ${COMPRESSIONTYPES}" | 281 | CONVERSIONTYPES = "gz bz2 lzma xz lz4 lzo zip zst sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum bmap u-boot vmdk vhd vhdx vdi qcow2 base64 gzsync zsync ${COMPRESSIONTYPES}" |
282 | CONVERSION_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" | 282 | CONVERSION_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" |
283 | CONVERSION_CMD_gz = "gzip -f -9 -n -c --rsyncable ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.gz" | 283 | CONVERSION_CMD_gz = "gzip -f -9 -n -c --rsyncable ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.gz" |
284 | CONVERSION_CMD_bz2 = "pbzip2 -f -k ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" | 284 | CONVERSION_CMD_bz2 = "pbzip2 -f -k ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" |
@@ -302,6 +302,8 @@ CONVERSION_CMD_vhd = "qemu-img convert -O vpc -o subformat=fixed ${IMAGE_NAME}${ | |||
302 | CONVERSION_CMD_vdi = "qemu-img convert -O vdi ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.vdi" | 302 | CONVERSION_CMD_vdi = "qemu-img convert -O vdi ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.vdi" |
303 | CONVERSION_CMD_qcow2 = "qemu-img convert -O qcow2 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qcow2" | 303 | CONVERSION_CMD_qcow2 = "qemu-img convert -O qcow2 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qcow2" |
304 | CONVERSION_CMD_base64 = "base64 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.base64" | 304 | CONVERSION_CMD_base64 = "base64 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.base64" |
305 | CONVERSION_CMD_zsync = "zsyncmake_curl ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" | ||
306 | CONVERSION_CMD_gzsync = "zsyncmake_curl -z ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" | ||
305 | CONVERSION_DEPENDS_lzma = "xz-native" | 307 | CONVERSION_DEPENDS_lzma = "xz-native" |
306 | CONVERSION_DEPENDS_gz = "pigz-native" | 308 | CONVERSION_DEPENDS_gz = "pigz-native" |
307 | CONVERSION_DEPENDS_bz2 = "pbzip2-native" | 309 | CONVERSION_DEPENDS_bz2 = "pbzip2-native" |
@@ -319,6 +321,8 @@ CONVERSION_DEPENDS_qcow2 = "qemu-system-native" | |||
319 | CONVERSION_DEPENDS_base64 = "coreutils-native" | 321 | CONVERSION_DEPENDS_base64 = "coreutils-native" |
320 | CONVERSION_DEPENDS_vhdx = "qemu-system-native" | 322 | CONVERSION_DEPENDS_vhdx = "qemu-system-native" |
321 | CONVERSION_DEPENDS_vhd = "qemu-system-native" | 323 | CONVERSION_DEPENDS_vhd = "qemu-system-native" |
324 | CONVERSION_DEPENDS_zsync = "zsync-curl-native" | ||
325 | CONVERSION_DEPENDS_gzsync = "zsync-curl-native" | ||
322 | 326 | ||
323 | RUNNABLE_IMAGE_TYPES ?= "ext2 ext3 ext4" | 327 | RUNNABLE_IMAGE_TYPES ?= "ext2 ext3 ext4" |
324 | RUNNABLE_MACHINE_PATTERNS ?= "qemu" | 328 | RUNNABLE_MACHINE_PATTERNS ?= "qemu" |