forked from OpenDingux/buildroot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.in
118 lines (91 loc) · 3.23 KB
/
Config.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
config BR2_TARGET_ROOTFS_SQUASHFS
bool "squashfs root filesystem"
help
Build a squashfs root filesystem
if BR2_TARGET_ROOTFS_SQUASHFS
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
default "8K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_8K
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
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.
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
bool "gzip"
config BR2_TARGET_ROOTFS_SQUASHFS4_LZ4
bool "lz4"
config BR2_TARGET_ROOTFS_SQUASHFS4_LZMA
bool "lzma"
config BR2_TARGET_ROOTFS_SQUASHFS4_LZO
bool "lzo"
config BR2_TARGET_ROOTFS_SQUASHFS4_XZ
bool "xz"
config BR2_TARGET_ROOTFS_SQUASHFS4_ZSTD
bool "zstd"
endchoice
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
endif