build: make the squashfs block size configurable

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40979
This commit is contained in:
Felix Fietkau 2014-06-02 17:04:34 +00:00
parent 2f79cb03c5
commit 5eecccd75e
2 changed files with 7 additions and 2 deletions

View file

@ -137,12 +137,17 @@ menu "Target Images"
help help
Build a jffs2 root filesystem for NAND flash Build a jffs2 root filesystem for NAND flash
config TARGET_ROOTFS_SQUASHFS menuconfig TARGET_ROOTFS_SQUASHFS
bool "squashfs" bool "squashfs"
default y if USES_SQUASHFS default y if USES_SQUASHFS
help help
Build a squashfs-lzma root filesystem 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 menuconfig TARGET_ROOTFS_UBIFS
bool "ubifs" bool "ubifs"
default y if USES_UBIFS default y if USES_UBIFS

View file

@ -46,7 +46,7 @@ endif
JFFS2OPTS += $(MKFS_DEVTABLE_OPT) JFFS2OPTS += $(MKFS_DEVTABLE_OPT)
SQUASHFS_BLOCKSIZE := 256k SQUASHFS_BLOCKSIZE := $(CONFIG_TARGET_SQUASHFS_BLOCK_SIZE)k
SQUASHFSOPT := -b $(SQUASHFS_BLOCKSIZE) SQUASHFSOPT := -b $(SQUASHFS_BLOCKSIZE)
SQUASHFSOPT += -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1' SQUASHFSOPT += -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1'
SQUASHFSCOMP := gzip SQUASHFSCOMP := gzip