summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorAlexander D. Kanevskiy <kad@kad.name>2016-05-02 15:22:33 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-14 23:05:14 +0100
commit39498d0e9043f95c423ca6e9fc18233c8fa59622 (patch)
tree7be2561cad345f692d6153b68735f838624f0bff /meta/classes
parent8a8ed5239d11e650cc71133b8982560e9b5f8cd6 (diff)
downloadpoky-39498d0e9043f95c423ca6e9fc18233c8fa59622.tar.gz
image types: add bmap generation option
bmap image conversion type allows to create block map files for sparse images. Bmap file can be used together with bmap-tools for efficiently flash images to raw devices (hdd or usb drive) [YOCTO #9414] (From OE-Core rev: d3495d7b5ac90439691bafc5717a3bf1cf014737) Signed-off-by: Alexander D. Kanevskiy <kad@kad.name> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/image_types.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index a4ed5bd531..ea45809a39 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -262,7 +262,7 @@ IMAGE_TYPES = " \
262 wic wic.gz wic.bz2 wic.lzma \ 262 wic wic.gz wic.bz2 wic.lzma \
263" 263"
264 264
265COMPRESSIONTYPES = "gz bz2 lzma xz lz4 zip sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum" 265COMPRESSIONTYPES = "gz bz2 lzma xz lz4 zip sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum bmap"
266COMPRESS_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" 266COMPRESS_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
267COMPRESS_CMD_gz = "gzip -f -9 -c ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.gz" 267COMPRESS_CMD_gz = "gzip -f -9 -c ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.gz"
268COMPRESS_CMD_bz2 = "pbzip2 -f -k ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" 268COMPRESS_CMD_bz2 = "pbzip2 -f -k ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"
@@ -276,6 +276,7 @@ COMPRESS_CMD_sha224sum = "sha224sum ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} >
276COMPRESS_CMD_sha256sum = "sha256sum ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sha256sum" 276COMPRESS_CMD_sha256sum = "sha256sum ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sha256sum"
277COMPRESS_CMD_sha384sum = "sha384sum ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sha384sum" 277COMPRESS_CMD_sha384sum = "sha384sum ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sha384sum"
278COMPRESS_CMD_sha512sum = "sha512sum ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sha512sum" 278COMPRESS_CMD_sha512sum = "sha512sum ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sha512sum"
279COMPRESS_CMD_bmap = "bmaptool create ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} -o ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.bmap"
279COMPRESS_DEPENDS_lzma = "xz-native" 280COMPRESS_DEPENDS_lzma = "xz-native"
280COMPRESS_DEPENDS_gz = "" 281COMPRESS_DEPENDS_gz = ""
281COMPRESS_DEPENDS_bz2 = "pbzip2-native" 282COMPRESS_DEPENDS_bz2 = "pbzip2-native"
@@ -283,6 +284,7 @@ COMPRESS_DEPENDS_xz = "xz-native"
283COMPRESS_DEPENDS_lz4 = "lz4-native" 284COMPRESS_DEPENDS_lz4 = "lz4-native"
284COMPRESS_DEPENDS_zip = "zip-native" 285COMPRESS_DEPENDS_zip = "zip-native"
285COMPRESS_DEPENDS_sum = "mtd-utils-native" 286COMPRESS_DEPENDS_sum = "mtd-utils-native"
287COMPRESS_DEPENDS_bmap = "bmap-tools-native"
286 288
287RUNNABLE_IMAGE_TYPES ?= "ext2 ext3 ext4" 289RUNNABLE_IMAGE_TYPES ?= "ext2 ext3 ext4"
288RUNNABLE_MACHINE_PATTERNS ?= "qemu" 290RUNNABLE_MACHINE_PATTERNS ?= "qemu"