summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2021-06-10 14:08:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-06-11 23:50:58 +0100
commit5e6218929d8d0ab704b26463f2bee0504cfedc1f (patch)
treed96b3bb706b374fd4c612046ca94ac69a9b0b58c /meta
parente8e5b166e977754bfa926385f8adbc77ea21b59d (diff)
downloadpoky-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.bbclass6
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.
279COMPRESSIONTYPES ?= "" 279COMPRESSIONTYPES ?= ""
280 280
281CONVERSIONTYPES = "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}" 281CONVERSIONTYPES = "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}"
282CONVERSION_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" 282CONVERSION_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
283CONVERSION_CMD_gz = "gzip -f -9 -n -c --rsyncable ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.gz" 283CONVERSION_CMD_gz = "gzip -f -9 -n -c --rsyncable ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.gz"
284CONVERSION_CMD_bz2 = "pbzip2 -f -k ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" 284CONVERSION_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}${
302CONVERSION_CMD_vdi = "qemu-img convert -O vdi ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.vdi" 302CONVERSION_CMD_vdi = "qemu-img convert -O vdi ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.vdi"
303CONVERSION_CMD_qcow2 = "qemu-img convert -O qcow2 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qcow2" 303CONVERSION_CMD_qcow2 = "qemu-img convert -O qcow2 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qcow2"
304CONVERSION_CMD_base64 = "base64 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.base64" 304CONVERSION_CMD_base64 = "base64 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.base64"
305CONVERSION_CMD_zsync = "zsyncmake_curl ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
306CONVERSION_CMD_gzsync = "zsyncmake_curl -z ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
305CONVERSION_DEPENDS_lzma = "xz-native" 307CONVERSION_DEPENDS_lzma = "xz-native"
306CONVERSION_DEPENDS_gz = "pigz-native" 308CONVERSION_DEPENDS_gz = "pigz-native"
307CONVERSION_DEPENDS_bz2 = "pbzip2-native" 309CONVERSION_DEPENDS_bz2 = "pbzip2-native"
@@ -319,6 +321,8 @@ CONVERSION_DEPENDS_qcow2 = "qemu-system-native"
319CONVERSION_DEPENDS_base64 = "coreutils-native" 321CONVERSION_DEPENDS_base64 = "coreutils-native"
320CONVERSION_DEPENDS_vhdx = "qemu-system-native" 322CONVERSION_DEPENDS_vhdx = "qemu-system-native"
321CONVERSION_DEPENDS_vhd = "qemu-system-native" 323CONVERSION_DEPENDS_vhd = "qemu-system-native"
324CONVERSION_DEPENDS_zsync = "zsync-curl-native"
325CONVERSION_DEPENDS_gzsync = "zsync-curl-native"
322 326
323RUNNABLE_IMAGE_TYPES ?= "ext2 ext3 ext4" 327RUNNABLE_IMAGE_TYPES ?= "ext2 ext3 ext4"
324RUNNABLE_MACHINE_PATTERNS ?= "qemu" 328RUNNABLE_MACHINE_PATTERNS ?= "qemu"