From 69fd1cee1962459464e3e06f627c7eab520d1249 Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Tue, 22 Mar 2022 13:06:38 -0500 Subject: mfgtool-initramfs-image: Switch to zstd compression The initramfs memory size is limited, so use zstd compression level 10 to cut the cpio archive size by some 30%. Signed-off-by: Tom Hochstein --- classes/mfgtool-initramfs-image.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/mfgtool-initramfs-image.bbclass b/classes/mfgtool-initramfs-image.bbclass index deae9c934..4f67621f2 100644 --- a/classes/mfgtool-initramfs-image.bbclass +++ b/classes/mfgtool-initramfs-image.bbclass @@ -12,7 +12,8 @@ FEATURE_PACKAGES_mtd = "packagegroup-fsl-mfgtool-mtd" FEATURE_PACKAGES_extfs = "packagegroup-fsl-mfgtool-extfs" FEATURE_PACKAGES_f2fs = "packagegroup-fsl-mfgtool-f2fs" -IMAGE_FSTYPES = "cpio.gz.u-boot" +ZSTD_COMPRESSION_LEVEL ?= "-10" +IMAGE_FSTYPES = "cpio.zst.u-boot" IMAGE_FSTYPES:mxs-generic-bsp = "cpio.gz.u-boot" IMAGE_ROOTFS_SIZE ?= "8192" -- cgit v1.2.3-54-g00ecf From 19e17a19f824fdca782382b4fbb1234acbba5336 Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Tue, 22 Mar 2022 17:16:26 -0500 Subject: kernel-itbimage: Add support for cpio.zstd Signed-off-by: Tom Hochstein --- classes/kernel-itbimage.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/kernel-itbimage.bbclass b/classes/kernel-itbimage.bbclass index 51a87319c..91bceb857 100644 --- a/classes/kernel-itbimage.bbclass +++ b/classes/kernel-itbimage.bbclass @@ -383,7 +383,7 @@ fitimage_assemble() { # if [ "x${ramdiskcount}" = "x1" ] ; then # Find and use the first initramfs image archive type we find - for img in cpio.lz4 cpio.lzo cpio.lzma cpio.xz cpio.gz ext2.gz cpio; do + for img in cpio.lz4 cpio.lzo cpio.lzma cpio.zst cpio.xz cpio.gz ext2.gz cpio; do initramfs_path="${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_NAME}.${img}" echo "Using $initramfs_path" if [ -e "${initramfs_path}" ]; then -- cgit v1.2.3-54-g00ecf