diff options
author | Alexander D. Kanevskiy <kad@kad.name> | 2016-05-02 15:22:33 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-14 23:05:14 +0100 |
commit | 39498d0e9043f95c423ca6e9fc18233c8fa59622 (patch) | |
tree | 7be2561cad345f692d6153b68735f838624f0bff | |
parent | 8a8ed5239d11e650cc71133b8982560e9b5f8cd6 (diff) | |
download | poky-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>
-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 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 | ||
265 | COMPRESSIONTYPES = "gz bz2 lzma xz lz4 zip sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum" | 265 | COMPRESSIONTYPES = "gz bz2 lzma xz lz4 zip sum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum bmap" |
266 | COMPRESS_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" | 266 | COMPRESS_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" |
267 | COMPRESS_CMD_gz = "gzip -f -9 -c ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.gz" | 267 | COMPRESS_CMD_gz = "gzip -f -9 -c ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.gz" |
268 | COMPRESS_CMD_bz2 = "pbzip2 -f -k ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}" | 268 | COMPRESS_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} > | |||
276 | COMPRESS_CMD_sha256sum = "sha256sum ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sha256sum" | 276 | COMPRESS_CMD_sha256sum = "sha256sum ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sha256sum" |
277 | COMPRESS_CMD_sha384sum = "sha384sum ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sha384sum" | 277 | COMPRESS_CMD_sha384sum = "sha384sum ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sha384sum" |
278 | COMPRESS_CMD_sha512sum = "sha512sum ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sha512sum" | 278 | COMPRESS_CMD_sha512sum = "sha512sum ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.sha512sum" |
279 | COMPRESS_CMD_bmap = "bmaptool create ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} -o ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.bmap" | ||
279 | COMPRESS_DEPENDS_lzma = "xz-native" | 280 | COMPRESS_DEPENDS_lzma = "xz-native" |
280 | COMPRESS_DEPENDS_gz = "" | 281 | COMPRESS_DEPENDS_gz = "" |
281 | COMPRESS_DEPENDS_bz2 = "pbzip2-native" | 282 | COMPRESS_DEPENDS_bz2 = "pbzip2-native" |
@@ -283,6 +284,7 @@ COMPRESS_DEPENDS_xz = "xz-native" | |||
283 | COMPRESS_DEPENDS_lz4 = "lz4-native" | 284 | COMPRESS_DEPENDS_lz4 = "lz4-native" |
284 | COMPRESS_DEPENDS_zip = "zip-native" | 285 | COMPRESS_DEPENDS_zip = "zip-native" |
285 | COMPRESS_DEPENDS_sum = "mtd-utils-native" | 286 | COMPRESS_DEPENDS_sum = "mtd-utils-native" |
287 | COMPRESS_DEPENDS_bmap = "bmap-tools-native" | ||
286 | 288 | ||
287 | RUNNABLE_IMAGE_TYPES ?= "ext2 ext3 ext4" | 289 | RUNNABLE_IMAGE_TYPES ?= "ext2 ext3 ext4" |
288 | RUNNABLE_MACHINE_PATTERNS ?= "qemu" | 290 | RUNNABLE_MACHINE_PATTERNS ?= "qemu" |