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