summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen.kooi@linaro.org>2014-01-14 12:00:49 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-14 17:03:53 +0000
commit47d9fa8e3f27880f4537149b98f17ca4e346b864 (patch)
treeae0ff06627d417bc013bf4d88aa18e428f677a05 /meta/classes
parent2fa4364a7d851305d87a49db8a326f035d05942d (diff)
downloadpoky-47d9fa8e3f27880f4537149b98f17ca4e346b864.tar.gz
image_types bbclass: add support for tar.lz4 and cpio.lz4
(From OE-Core rev: 0a541a0497902ee9993449b47da853b6c6a306d9) Signed-off-by: Koen Kooi <koen.kooi@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/image_types.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 54ecb15764..48675b8794 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -241,17 +241,19 @@ IMAGE_DEPENDS_ubi = "mtd-utils-native"
241IMAGE_DEPENDS_ubifs = "mtd-utils-native" 241IMAGE_DEPENDS_ubifs = "mtd-utils-native"
242 242
243# This variable is available to request which values are suitable for IMAGE_FSTYPES 243# This variable is available to request which values are suitable for IMAGE_FSTYPES
244IMAGE_TYPES = "jffs2 sum.jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz ext2.lzma btrfs iso hddimg squashfs squashfs-xz ubi ubifs tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma vmdk elf" 244IMAGE_TYPES = "jffs2 sum.jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz ext2.lzma btrfs iso hddimg squashfs squashfs-xz ubi ubifs tar tar.gz tar.bz2 tar.xz tar.lz4 cpio cpio.gz cpio.xz cpio.lzma cpio.lz4 vmdk elf"
245 245
246COMPRESSIONTYPES = "gz bz2 lzma xz" 246COMPRESSIONTYPES = "gz bz2 lzma xz lz4"
247COMPRESS_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}.rootfs.${type}" 247COMPRESS_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}.rootfs.${type}"
248COMPRESS_CMD_gz = "gzip -f -9 -c ${IMAGE_NAME}.rootfs.${type} > ${IMAGE_NAME}.rootfs.${type}.gz" 248COMPRESS_CMD_gz = "gzip -f -9 -c ${IMAGE_NAME}.rootfs.${type} > ${IMAGE_NAME}.rootfs.${type}.gz"
249COMPRESS_CMD_bz2 = "bzip2 -f -k ${IMAGE_NAME}.rootfs.${type}" 249COMPRESS_CMD_bz2 = "bzip2 -f -k ${IMAGE_NAME}.rootfs.${type}"
250COMPRESS_CMD_xz = "xz -f -k -c ${XZ_COMPRESSION_LEVEL} ${XZ_THREADS} --check=${XZ_INTEGRITY_CHECK} ${IMAGE_NAME}.rootfs.${type} > ${IMAGE_NAME}.rootfs.${type}.xz" 250COMPRESS_CMD_xz = "xz -f -k -c ${XZ_COMPRESSION_LEVEL} ${XZ_THREADS} --check=${XZ_INTEGRITY_CHECK} ${IMAGE_NAME}.rootfs.${type} > ${IMAGE_NAME}.rootfs.${type}.xz"
251COMPRESS_CMD_lz4 = "lz4c -9 -c ${IMAGE_NAME}.rootfs.${type} > ${IMAGE_NAME}.rootfs.${type}.lz4"
251COMPRESS_DEPENDS_lzma = "xz-native" 252COMPRESS_DEPENDS_lzma = "xz-native"
252COMPRESS_DEPENDS_gz = "" 253COMPRESS_DEPENDS_gz = ""
253COMPRESS_DEPENDS_bz2 = "" 254COMPRESS_DEPENDS_bz2 = ""
254COMPRESS_DEPENDS_xz = "xz-native" 255COMPRESS_DEPENDS_xz = "xz-native"
256COMPRESS_DEPENDS_lz4 = "lz4-native"
255 257
256RUNNABLE_IMAGE_TYPES ?= "ext2 ext3" 258RUNNABLE_IMAGE_TYPES ?= "ext2 ext3"
257RUNNABLE_MACHINE_PATTERNS ?= "qemu" 259RUNNABLE_MACHINE_PATTERNS ?= "qemu"