diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-02 17:04:34 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-06-02 17:04:34 +0000 |
commit | a4816ec4b54391de7d59cdb1947b786ebb375f37 (patch) | |
tree | 66a804cf23e1a5b90cc78156dd00173fc8d88b98 | |
parent | 4843ecacb9924f2712c0033668e51a3f0a67b55f (diff) | |
download | master-187ad058-a4816ec4b54391de7d59cdb1947b786ebb375f37.tar.gz master-187ad058-a4816ec4b54391de7d59cdb1947b786ebb375f37.tar.bz2 master-187ad058-a4816ec4b54391de7d59cdb1947b786ebb375f37.zip |
build: make the squashfs block size configurable
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40979 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | config/Config-images.in | 7 | ||||
-rw-r--r-- | include/image.mk | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/config/Config-images.in b/config/Config-images.in index b2d7543d02..f4bb2ce2cb 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 a03d418529..53180e43df 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 |