2004-10-09 06:46:15 +02:00
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS
|
2005-09-09 02:12:13 +02:00
|
|
|
bool "squashfs root filesystem"
|
2004-10-09 06:46:15 +02:00
|
|
|
help
|
|
|
|
Build a squashfs root filesystem
|
2010-04-09 12:15:59 +02:00
|
|
|
|
|
|
|
if BR2_TARGET_ROOTFS_SQUASHFS
|
|
|
|
|
2022-05-17 05:24:58 +02:00
|
|
|
choice
|
|
|
|
prompt "block size"
|
|
|
|
default BR2_TARGET_ROOTFS_SQUASHFS_BS_128K
|
|
|
|
help
|
|
|
|
Data block size. Bigger values can improve
|
|
|
|
compression ratio.
|
|
|
|
|
|
|
|
If unsure, leave at 128k (default).
|
|
|
|
|
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS_BS_4K
|
|
|
|
bool "4k"
|
|
|
|
|
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS_BS_8K
|
|
|
|
bool "8k"
|
|
|
|
|
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS_BS_16K
|
|
|
|
bool "16k"
|
|
|
|
|
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS_BS_32K
|
|
|
|
bool "32k"
|
|
|
|
|
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS_BS_64K
|
|
|
|
bool "64k"
|
|
|
|
|
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS_BS_128K
|
|
|
|
bool "128k"
|
|
|
|
|
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS_BS_256K
|
|
|
|
bool "256k"
|
|
|
|
|
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS_BS_512K
|
|
|
|
bool "512k"
|
|
|
|
|
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS_BS_1024K
|
|
|
|
bool "1024k"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS_BS
|
|
|
|
string
|
|
|
|
default "4K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_4K
|
2022-05-29 21:19:22 +02:00
|
|
|
default "8K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_8K
|
2022-05-17 05:24:58 +02:00
|
|
|
default "16K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_16K
|
|
|
|
default "32K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_32K
|
|
|
|
default "64K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_64K
|
|
|
|
default "128K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_128K
|
|
|
|
default "256K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_256K
|
|
|
|
default "512K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_512K
|
|
|
|
default "1024K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_1024K
|
|
|
|
|
2020-06-15 00:41:43 +02:00
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS_PAD
|
|
|
|
bool "pad to a 4K boundary"
|
|
|
|
default y # legacy was always ON
|
|
|
|
help
|
|
|
|
Say 'y' here (the default) to pad the the filesystem image
|
|
|
|
to a 4K boundary. Say 'n' to disable padding.
|
|
|
|
|
2010-09-20 16:19:26 +02:00
|
|
|
choice
|
|
|
|
prompt "Compression algorithm"
|
|
|
|
default BR2_TARGET_ROOTFS_SQUASHFS4_GZIP
|
|
|
|
help
|
|
|
|
Select the squashfs compression algorithm to use when
|
|
|
|
generating the filesystem.
|
|
|
|
|
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS4_GZIP
|
2013-11-11 17:23:23 +01:00
|
|
|
bool "gzip"
|
2010-09-20 16:19:26 +02:00
|
|
|
|
2014-05-15 23:31:36 +02:00
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS4_LZ4
|
|
|
|
bool "lz4"
|
|
|
|
|
2010-09-20 22:05:39 +02:00
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS4_LZMA
|
2013-11-11 17:23:23 +01:00
|
|
|
bool "lzma"
|
2010-09-20 22:05:39 +02:00
|
|
|
|
2010-09-20 16:19:26 +02:00
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS4_LZO
|
2013-11-11 17:23:23 +01:00
|
|
|
bool "lzo"
|
2010-09-20 16:19:26 +02:00
|
|
|
|
2011-03-04 15:10:14 +01:00
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS4_XZ
|
2013-11-11 17:23:23 +01:00
|
|
|
bool "xz"
|
2011-03-04 15:10:14 +01:00
|
|
|
|
2018-04-16 21:39:51 +02:00
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS4_ZSTD
|
|
|
|
bool "zstd"
|
|
|
|
|
2010-09-20 16:19:26 +02:00
|
|
|
endchoice
|
2020-06-15 00:41:43 +02:00
|
|
|
|
2022-05-17 05:24:59 +02:00
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS_EXTREME_COMP
|
|
|
|
bool "extreme compression when available"
|
|
|
|
default y if BR2_TARGET_ROOTFS_SQUASHFS4_LZ4 # legacy
|
|
|
|
help
|
|
|
|
Use options to increase compression ration as much as
|
|
|
|
possible, like using architecture-specific options, at
|
|
|
|
the cost of time when assembling the filesystem image.
|
|
|
|
|
|
|
|
For example:
|
|
|
|
- with gzip and lzo, use -Xcompression-level 9
|
|
|
|
- with xz use arch-specific bcj (branch-call-jump) filters
|
|
|
|
- with zstd use -Xcompression-level 22
|
|
|
|
- and more
|
|
|
|
|
|
|
|
config BR2_TARGET_ROOTFS_SQUASHFS_COMP_OPTS
|
|
|
|
string
|
|
|
|
default "-Xcompression-level 9" if BR2_TARGET_ROOTFS_SQUASHFS4_GZIP
|
|
|
|
default "-Xcompression-level 9" if BR2_TARGET_ROOTFS_SQUASHFS4_LZO
|
|
|
|
default "-Xhc" if BR2_TARGET_ROOTFS_SQUASHFS4_LZ4
|
|
|
|
default "-Xbcj arm,armthumb" if BR2_TARGET_ROOTFS_SQUASHFS4_XZ && (BR2_arm || BR_aarch64)
|
|
|
|
default "-Xbcj powerpc" if BR2_TARGET_ROOTFS_SQUASHFS4_XZ && (BR2_powerpc || BR2_powerpc64)
|
|
|
|
default "-Xbcj sparc" if BR2_TARGET_ROOTFS_SQUASHFS4_XZ && (BR2_sparc || BR2_sparc64)
|
|
|
|
default "-Xbcj x86" if BR2_TARGET_ROOTFS_SQUASHFS4_XZ && (BR2_i386 || BR2_x86_64)
|
|
|
|
default "-Xcompression-level 22" if BR2_TARGET_ROOTFS_SQUASHFS4_ZSTD
|
|
|
|
depends on BR2_TARGET_ROOTFS_SQUASHFS_EXTREME_COMP
|
|
|
|
|
2010-09-20 16:19:26 +02:00
|
|
|
endif
|