summaryrefslogtreecommitdiff
path: root/scripts/build/binary_rootfs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/binary_rootfs')
-rwxr-xr-xscripts/build/binary_rootfs13
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/build/binary_rootfs b/scripts/build/binary_rootfs
index a81c21fd5..5934ad672 100755
--- a/scripts/build/binary_rootfs
+++ b/scripts/build/binary_rootfs
@@ -287,7 +287,18 @@ case "${LB_CHROOT_FILESYSTEM}" in
esac
fi
- MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -comp xz"
+ # Set squashfs compression type or default to xz
+ if [ -n "${LB_CHROOT_SQUASHFS_COMPRESSION_TYPE}" ]
+ then
+ MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -comp ${LB_CHROOT_SQUASHFS_COMPRESSION_TYPE}"
+ else
+ MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -comp xz"
+ fi
+
+ if [ -n "${LB_CHROOT_SQUASHFS_COMPRESSION_LEVEL}" ]
+ then
+ MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -Xcompression-level ${LB_CHROOT_SQUASHFS_COMPRESSION_LEVEL}"
+ fi
case "${LB_BUILD_WITH_CHROOT}" in
true)