summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Looijmans <mike.looijmans@topic.nl>2014-08-12 09:54:59 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-15 18:21:51 +0100
commitc23b321b4446685ee4286cc4422772a950ff6370 (patch)
treee0afe78bcd4a8291dc444e710751fa612bae5806
parent6ac0696d10e6d9973803fab1a9364349d7554ed5 (diff)
downloadpoky-c23b321b4446685ee4286cc4422772a950ff6370.tar.gz
Support image type "squashfs-lzo"
Add "squashfs-lzo" to the image types. LZO compression support has been in both kernel and squashfs tools for many years, but OE never enabled it. (From OE-Core rev: ab659b1c1e13fd6863893abff86990d88aa36790) Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 99a07da0fc..d298897268 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -63,6 +63,7 @@ IMAGE_CMD_btrfs () {
63 63
64IMAGE_CMD_squashfs = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs ${EXTRA_IMAGECMD} -noappend" 64IMAGE_CMD_squashfs = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs ${EXTRA_IMAGECMD} -noappend"
65IMAGE_CMD_squashfs-xz = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-xz ${EXTRA_IMAGECMD} -noappend -comp xz" 65IMAGE_CMD_squashfs-xz = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-xz ${EXTRA_IMAGECMD} -noappend -comp xz"
66IMAGE_CMD_squashfs-lzo = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-lzo ${EXTRA_IMAGECMD} -noappend -comp lzo"
66IMAGE_CMD_tar = "tar -cvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar -C ${IMAGE_ROOTFS} ." 67IMAGE_CMD_tar = "tar -cvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar -C ${IMAGE_ROOTFS} ."
67 68
68IMAGE_CMD_cpio () { 69IMAGE_CMD_cpio () {
@@ -121,12 +122,13 @@ IMAGE_DEPENDS_ext4 = "e2fsprogs-native"
121IMAGE_DEPENDS_btrfs = "btrfs-tools-native" 122IMAGE_DEPENDS_btrfs = "btrfs-tools-native"
122IMAGE_DEPENDS_squashfs = "squashfs-tools-native" 123IMAGE_DEPENDS_squashfs = "squashfs-tools-native"
123IMAGE_DEPENDS_squashfs-xz = "squashfs-tools-native" 124IMAGE_DEPENDS_squashfs-xz = "squashfs-tools-native"
125IMAGE_DEPENDS_squashfs-lzo = "squashfs-tools-native"
124IMAGE_DEPENDS_elf = "virtual/kernel mkelfimage-native" 126IMAGE_DEPENDS_elf = "virtual/kernel mkelfimage-native"
125IMAGE_DEPENDS_ubi = "mtd-utils-native" 127IMAGE_DEPENDS_ubi = "mtd-utils-native"
126IMAGE_DEPENDS_ubifs = "mtd-utils-native" 128IMAGE_DEPENDS_ubifs = "mtd-utils-native"
127 129
128# This variable is available to request which values are suitable for IMAGE_FSTYPES 130# This variable is available to request which values are suitable for IMAGE_FSTYPES
129IMAGE_TYPES = "jffs2 jffs2.sum 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" 131IMAGE_TYPES = "jffs2 jffs2.sum cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz ext2.lzma btrfs iso hddimg squashfs squashfs-xz squashfs-lzo ubi ubifs tar tar.gz tar.bz2 tar.xz tar.lz4 cpio cpio.gz cpio.xz cpio.lzma cpio.lz4 vmdk elf"
130 132
131COMPRESSIONTYPES = "gz bz2 lzma xz lz4 sum" 133COMPRESSIONTYPES = "gz bz2 lzma xz lz4 sum"
132COMPRESS_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}.rootfs.${type}" 134COMPRESS_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}.rootfs.${type}"