diff options
author | Silvio Fricke <silvio.fricke@gmail.com> | 2019-02-11 07:02:48 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-12 14:04:31 +0000 |
commit | 1689d590e5e7f9c260cfd5b04a94af6095acf8ac (patch) | |
tree | 3dd5c55fee2daee8a2030814810a45fbb9e33334 /meta/classes | |
parent | 9c60ee4656d36e5208d7e19f8b2bce1a75f47944 (diff) | |
download | poky-1689d590e5e7f9c260cfd5b04a94af6095acf8ac.tar.gz |
image_types: add base64 conversion
Sometimes it is useful to have a base64 representation of an image.
(From OE-Core rev: 9d00b146c4125b195fac5a0743fe7d8e59edef7f)
Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/image_types.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 70bd315306..ddca5b624e 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -280,7 +280,7 @@ IMAGE_TYPES = " \ | |||
280 | # CONVERSION_CMD/DEPENDS. | 280 | # CONVERSION_CMD/DEPENDS. |
281 | COMPRESSIONTYPES ?= "" | 281 | COMPRESSIONTYPES ?= "" |
282 | 282 | ||
283 | CONVERSIONTYPES = "gz bz2 lzma xz lz4 lzo zip sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum bmap u-boot vmdk vdi qcow2 ${COMPRESSIONTYPES}" | 283 | CONVERSIONTYPES = "gz bz2 lzma xz lz4 lzo zip sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum bmap u-boot vmdk vdi qcow2 base64 ${COMPRESSIONTYPES}" |
284 | CONVERSION_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" | 284 | CONVERSION_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" |
285 | CONVERSION_CMD_gz = "pigz -f -9 -n -c ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.gz" | 285 | CONVERSION_CMD_gz = "pigz -f -9 -n -c ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.gz" |
286 | CONVERSION_CMD_bz2 = "pbzip2 -f -k ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" | 286 | CONVERSION_CMD_bz2 = "pbzip2 -f -k ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" |
@@ -300,6 +300,7 @@ CONVERSION_CMD_u-boot = "mkimage -A ${UBOOT_ARCH} -O linux -T ramdisk -C none -n | |||
300 | CONVERSION_CMD_vmdk = "qemu-img convert -O vmdk ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.vmdk" | 300 | CONVERSION_CMD_vmdk = "qemu-img convert -O vmdk ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.vmdk" |
301 | CONVERSION_CMD_vdi = "qemu-img convert -O vdi ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.vdi" | 301 | CONVERSION_CMD_vdi = "qemu-img convert -O vdi ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.vdi" |
302 | CONVERSION_CMD_qcow2 = "qemu-img convert -O qcow2 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qcow2" | 302 | CONVERSION_CMD_qcow2 = "qemu-img convert -O qcow2 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qcow2" |
303 | CONVERSION_CMD_base64 = "base64 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.base64" | ||
303 | CONVERSION_DEPENDS_lzma = "xz-native" | 304 | CONVERSION_DEPENDS_lzma = "xz-native" |
304 | CONVERSION_DEPENDS_gz = "pigz-native" | 305 | CONVERSION_DEPENDS_gz = "pigz-native" |
305 | CONVERSION_DEPENDS_bz2 = "pbzip2-native" | 306 | CONVERSION_DEPENDS_bz2 = "pbzip2-native" |
@@ -313,6 +314,7 @@ CONVERSION_DEPENDS_u-boot = "u-boot-tools-native" | |||
313 | CONVERSION_DEPENDS_vmdk = "qemu-native" | 314 | CONVERSION_DEPENDS_vmdk = "qemu-native" |
314 | CONVERSION_DEPENDS_vdi = "qemu-native" | 315 | CONVERSION_DEPENDS_vdi = "qemu-native" |
315 | CONVERSION_DEPENDS_qcow2 = "qemu-native" | 316 | CONVERSION_DEPENDS_qcow2 = "qemu-native" |
317 | CONVERSION_DEPENDS_base64 = "coreutils-native" | ||
316 | 318 | ||
317 | RUNNABLE_IMAGE_TYPES ?= "ext2 ext3 ext4" | 319 | RUNNABLE_IMAGE_TYPES ?= "ext2 ext3 ext4" |
318 | RUNNABLE_MACHINE_PATTERNS ?= "qemu" | 320 | RUNNABLE_MACHINE_PATTERNS ?= "qemu" |