From 5eecccd75edc9a5adbdf966a6a87f46695aa72a9 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 2 Jun 2014 17:04:34 +0000 Subject: build: make the squashfs block size configurable Signed-off-by: Felix Fietkau SVN-Revision: 40979 --- config/Config-images.in | 7 ++++++- include/image.mk | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config/Config-images.in b/config/Config-images.in index b2d7543..f4bb2ce 100644 --- a/config/Config-images.in +++ b/config/Config-images.in @@ -137,12 +137,17 @@ menu "Target Images" help Build a jffs2 root filesystem for NAND flash - config TARGET_ROOTFS_SQUASHFS + menuconfig TARGET_ROOTFS_SQUASHFS bool "squashfs" default y if USES_SQUASHFS help Build a squashfs-lzma root filesystem + config TARGET_SQUASHFS_BLOCK_SIZE + int "Block size (in KiB)" + depends on TARGET_ROOTFS_SQUASHFS + default 256 + menuconfig TARGET_ROOTFS_UBIFS bool "ubifs" default y if USES_UBIFS diff --git a/include/image.mk b/include/image.mk index a03d418..53180e4 100644 --- a/include/image.mk +++ b/include/image.mk @@ -46,7 +46,7 @@ endif JFFS2OPTS += $(MKFS_DEVTABLE_OPT) -SQUASHFS_BLOCKSIZE := 256k +SQUASHFS_BLOCKSIZE := $(CONFIG_TARGET_SQUASHFS_BLOCK_SIZE)k SQUASHFSOPT := -b $(SQUASHFS_BLOCKSIZE) SQUASHFSOPT += -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1' SQUASHFSCOMP := gzip -- cgit v1.1