build: make the squashfs block size configurable
authorFelix Fietkau <nbd@openwrt.org>
Mon, 2 Jun 2014 17:04:34 +0000 (17:04 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 2 Jun 2014 17:04:34 +0000 (17:04 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40979

config/Config-images.in
include/image.mk

index b2d7543d021e18a7e3cde43a4867794c9b709c59..f4bb2ce2cbbb3f4d059e954a031227e2e2b681cc 100644 (file)
@@ -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
index a03d4185293057b6824bbef8930cff7c5109c210..53180e43df73b7cbba73695e8771a9e593b33626 100644 (file)
@@ -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