xref: /OK3568_Linux_fs/buildroot/fs/ext2/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2
2*4882a593Smuzhiyun	bool "ext2/3/4 root filesystem"
3*4882a593Smuzhiyun	select BR2_PACKAGE_HOST_E2FSPROGS
4*4882a593Smuzhiyun	help
5*4882a593Smuzhiyun	  Build an ext2/3/4 root filesystem
6*4882a593Smuzhiyun
7*4882a593Smuzhiyunif BR2_TARGET_ROOTFS_EXT2
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_2
10*4882a593Smuzhiyun	bool
11*4882a593Smuzhiyun
12*4882a593Smuzhiyunchoice
13*4882a593Smuzhiyun	bool "ext2/3/4 variant"
14*4882a593Smuzhiyun	default BR2_TARGET_ROOTFS_EXT2_2r1
15*4882a593Smuzhiyun
16*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_2r0
17*4882a593Smuzhiyun	bool "ext2 (rev0)"
18*4882a593Smuzhiyun	select BR2_TARGET_ROOTFS_EXT2_2
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_2r1
21*4882a593Smuzhiyun	bool "ext2 (rev1)"
22*4882a593Smuzhiyun	select BR2_TARGET_ROOTFS_EXT2_2
23*4882a593Smuzhiyun
24*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_3
25*4882a593Smuzhiyun	bool "ext3"
26*4882a593Smuzhiyun
27*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_4
28*4882a593Smuzhiyun	bool "ext4"
29*4882a593Smuzhiyun
30*4882a593Smuzhiyunendchoice
31*4882a593Smuzhiyun
32*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_GEN
33*4882a593Smuzhiyun	int
34*4882a593Smuzhiyun	default 2 if BR2_TARGET_ROOTFS_EXT2_2
35*4882a593Smuzhiyun	default 3 if BR2_TARGET_ROOTFS_EXT2_3
36*4882a593Smuzhiyun	default 4 if BR2_TARGET_ROOTFS_EXT2_4
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun# All ext generations are revision 1, except ext2r0, which is revision 0
39*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_REV
40*4882a593Smuzhiyun	int
41*4882a593Smuzhiyun	default 0   if BR2_TARGET_ROOTFS_EXT2_2r0
42*4882a593Smuzhiyun	default 1   if !BR2_TARGET_ROOTFS_EXT2_2r0
43*4882a593Smuzhiyun
44*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_LABEL
45*4882a593Smuzhiyun	string "filesystem label"
46*4882a593Smuzhiyun	default "rootfs"
47*4882a593Smuzhiyun
48*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_SIZE
49*4882a593Smuzhiyun	string "exact size"
50*4882a593Smuzhiyun	default BR2_TARGET_ROOTFS_EXT2_BLOCKS if BR2_TARGET_ROOTFS_EXT2_BLOCKS_WRAP # legacy 2017.08
51*4882a593Smuzhiyun	default "60M"
52*4882a593Smuzhiyun	help
53*4882a593Smuzhiyun	  The size of the filesystem image. If it does not have a
54*4882a593Smuzhiyun	  suffix, it is interpreted as power-of-two kilobytes. If it is
55*4882a593Smuzhiyun	  suffixed by 'k', 'm', 'g', 't' (either upper-case or
56*4882a593Smuzhiyun	  lower-case), then it is interpreted in power-of-two kilobytes,
57*4882a593Smuzhiyun	  megabytes, gigabytes, terabytes, etc.
58*4882a593Smuzhiyun
59*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_INODES
60*4882a593Smuzhiyun	int "exact number of inodes (leave at 0 for auto calculation)"
61*4882a593Smuzhiyun	default 0
62*4882a593Smuzhiyun
63*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_RESBLKS
64*4882a593Smuzhiyun	int "reserved blocks percentage"
65*4882a593Smuzhiyun	default 5
66*4882a593Smuzhiyun	help
67*4882a593Smuzhiyun	  The number of blocks on the filesystem (as a percentage of the
68*4882a593Smuzhiyun	  total number of blocks), that are reserved for use by root.
69*4882a593Smuzhiyun	  Traditionally, this has been 5%, and all ext-related tools
70*4882a593Smuzhiyun	  still default to reserving 5% when creating a new ext
71*4882a593Smuzhiyun	  filesystem.
72*4882a593Smuzhiyun
73*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_MKFS_OPTIONS
74*4882a593Smuzhiyun	string "additional mke2fs options"
75*4882a593Smuzhiyun	default "-O ^64bit"
76*4882a593Smuzhiyun	help
77*4882a593Smuzhiyun	  Specify a space-separated list of mke2fs options, including
78*4882a593Smuzhiyun	  any ext2/3/4 filesystem features.
79*4882a593Smuzhiyun
80*4882a593Smuzhiyun	  For more information about the mke2fs options, see the manual
81*4882a593Smuzhiyun	  page mke2fs(8).
82*4882a593Smuzhiyun
83*4882a593Smuzhiyun	  For more information about the ext2/3/4 features which can be
84*4882a593Smuzhiyun	  set, see the manual page ext4(5).
85*4882a593Smuzhiyun
86*4882a593Smuzhiyun	  The default is "-O ^64bit", i.e. disable 64-bit filesystem
87*4882a593Smuzhiyun	  support. This default value has been chosen because U-Boot
88*4882a593Smuzhiyun	  versions before 2017.02 don't support this filesystem
89*4882a593Smuzhiyun	  option: using it may make the filesystem unreadable by
90*4882a593Smuzhiyun	  U-Boot.
91*4882a593Smuzhiyun
92*4882a593Smuzhiyunchoice
93*4882a593Smuzhiyun	prompt "Compression method"
94*4882a593Smuzhiyun	default BR2_TARGET_ROOTFS_EXT2_NONE
95*4882a593Smuzhiyun	help
96*4882a593Smuzhiyun	  Select compressor for ext2/3/4 filesystem of the root
97*4882a593Smuzhiyun	  filesystem
98*4882a593Smuzhiyun
99*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_NONE
100*4882a593Smuzhiyun	bool "no compression"
101*4882a593Smuzhiyun	help
102*4882a593Smuzhiyun	  Do not compress the ext2/3/4 filesystem.
103*4882a593Smuzhiyun
104*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_GZIP
105*4882a593Smuzhiyun	bool "gzip"
106*4882a593Smuzhiyun	help
107*4882a593Smuzhiyun	  Do compress the ext2/3/4 filesystem with gzip.
108*4882a593Smuzhiyun
109*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_BZIP2
110*4882a593Smuzhiyun	bool "bzip2"
111*4882a593Smuzhiyun	help
112*4882a593Smuzhiyun	  Do compress the ext2/3/4 filesystem with bzip2.
113*4882a593Smuzhiyun
114*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_LZ4
115*4882a593Smuzhiyun	bool "lz4"
116*4882a593Smuzhiyun	help
117*4882a593Smuzhiyun	  Do compress the ext2 filesystem with lz4.
118*4882a593Smuzhiyun
119*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_LZMA
120*4882a593Smuzhiyun	bool "lzma"
121*4882a593Smuzhiyun	help
122*4882a593Smuzhiyun	  Do compress the ext2/3/4 filesystem with lzma.
123*4882a593Smuzhiyun
124*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_LZO
125*4882a593Smuzhiyun	bool "lzo"
126*4882a593Smuzhiyun	help
127*4882a593Smuzhiyun	  Do compress the ext2 filesystem with lzop.
128*4882a593Smuzhiyun
129*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_EXT2_XZ
130*4882a593Smuzhiyun	bool "xz"
131*4882a593Smuzhiyun	help
132*4882a593Smuzhiyun	  Do compress the ext2 filesystem with xz.
133*4882a593Smuzhiyun
134*4882a593Smuzhiyunendchoice
135*4882a593Smuzhiyun
136*4882a593Smuzhiyunendif # BR2_TARGET_ROOTFS_EXT2
137