Add squashfs-lz4 support to IMAGE_TYPES.

Submitted by Kevin Cribbs on Jan. 10, 2016, 9:17 p.m. | Patch ID: 112033

Details

Message ID 5692CA73.4080400@comcast.net
State New
Headers show

Commit Message

Kevin Cribbs Jan. 10, 2016, 9:17 p.m.
From 88993b84808dd7dc0549ea09b12bd4091f818889 Mon Sep 17 00:00:00 2001
From: Kevin Cribbs <kec_temp_wr@comcast.net>
Date: Sun, 10 Jan 2016 15:35:27 -0500
Subject: [PATCH] Add squashfs-lz4 support to IMAGE_TYPES.

---
  meta/classes/image_types.bbclass | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)

${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-lz4 ${EXTRA_IMAGECMD} 
-noappend -comp lz4"

  # By default, tar from the host is used, which can be quite old. If
  # you need special parameters (like --xattrs) which are only supported
@@ -227,6 +228,7 @@ IMAGE_DEPENDS_btrfs = "btrfs-tools-native"
  IMAGE_DEPENDS_squashfs = "squashfs-tools-native"
  IMAGE_DEPENDS_squashfs-xz = "squashfs-tools-native"
  IMAGE_DEPENDS_squashfs-lzo = "squashfs-tools-native"
+IMAGE_DEPENDS_squashfs-lz4 = "squashfs-tools-native"
  IMAGE_DEPENDS_elf = "virtual/kernel mkelfimage-native"
  IMAGE_DEPENDS_ubi = "mtd-utils-native"
  IMAGE_DEPENDS_ubifs = "mtd-utils-native"
@@ -243,7 +245,7 @@ IMAGE_TYPES = " \
      btrfs \
      iso \
      hddimg \
-    squashfs squashfs-xz squashfs-lzo \
+    squashfs squashfs-xz squashfs-lzo squashfs-lz4 \
      ubi ubifs multiubi \
      tar tar.gz tar.bz2 tar.xz tar.lz4 \
      cpio cpio.gz cpio.xz cpio.lzma cpio.lz4 \

Patch hide | download patch | download mbox

diff --git a/meta/classes/image_types.bbclass 
b/meta/classes/image_types.bbclass
index dea3bb0..e44456b 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -79,6 +79,7 @@  IMAGE_CMD_btrfs () {
  IMAGE_CMD_squashfs = "mksquashfs ${IMAGE_ROOTFS} 
${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs ${EXTRA_IMAGECMD} 
-noappend"
  IMAGE_CMD_squashfs-xz = "mksquashfs ${IMAGE_ROOTFS} 
${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-xz ${EXTRA_IMAGECMD} 
-noappend -comp xz"
  IMAGE_CMD_squashfs-lzo = "mksquashfs ${IMAGE_ROOTFS} 
${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-lzo ${EXTRA_IMAGECMD} 
-noappend -comp lzo"
+IMAGE_CMD_squashfs-lz4 = "mksquashfs ${IMAGE_ROOTFS}