xref: /OK3568_Linux_fs/buildroot/package/mtd/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_MTD
2	bool "mtd, jffs2 and ubi/ubifs tools"
3	help
4	  Build mtd, jffs2 and ubi/ubifs tools
5
6	  http://www.linux-mtd.infradead.org/
7
8if BR2_PACKAGE_MTD
9
10# The two hidden options below match mtd configure script options
11# --enable-jffs and --enable-ubifs
12
13config BR2_PACKAGE_MTD_JFFS_UTILS
14	bool
15	select BR2_PACKAGE_LZO
16	select BR2_PACKAGE_ZLIB
17
18config BR2_PACKAGE_MTD_UBIFS_UTILS
19	bool
20	select BR2_PACKAGE_LZO
21	select BR2_PACKAGE_UTIL_LINUX
22	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
23	select BR2_PACKAGE_ZLIB
24
25comment "MTD tools selection"
26
27config BR2_PACKAGE_MTD_DOCFDISK
28	bool "docfdisk"
29
30config BR2_PACKAGE_MTD_DOC_LOADBIOS
31	bool "doc_loadbios"
32
33config BR2_PACKAGE_MTD_FLASHCP
34	bool "flashcp"
35	default y
36
37config BR2_PACKAGE_MTD_FLASH_ERASE
38	bool "flash_erase"
39	default y
40
41config BR2_PACKAGE_MTD_FLASH_LOCK
42	bool "flash_lock"
43	default y
44
45config BR2_PACKAGE_MTD_FLASH_OTP_DUMP
46	bool "flash_otp_dump"
47
48config BR2_PACKAGE_MTD_FLASH_OTP_INFO
49	bool "flash_otp_info"
50
51config BR2_PACKAGE_MTD_FLASH_OTP_LOCK
52	bool "flash_otp_lock"
53
54config BR2_PACKAGE_MTD_FLASH_OTP_WRITE
55	bool "flash_otp_write"
56
57config BR2_PACKAGE_MTD_FLASH_OTP_ERASE
58	bool "flash_otp_erase"
59
60config BR2_PACKAGE_MTD_FLASH_UNLOCK
61	bool "flash_unlock"
62	default y
63
64config BR2_PACKAGE_MTD_FTL_CHECK
65	bool "ftl_check"
66
67config BR2_PACKAGE_MTD_FTL_FORMAT
68	bool "ftl_format"
69
70config BR2_PACKAGE_MTD_JFFS2DUMP
71	bool "jffs2dump"
72	select BR2_PACKAGE_MTD_JFFS_UTILS
73
74config BR2_PACKAGE_MTD_MKFSJFFS2
75	bool "mkfs.jffs2"
76	select BR2_PACKAGE_MTD_JFFS_UTILS
77
78config BR2_PACKAGE_MTD_MKFSUBIFS
79	bool "mkfs.ubifs"
80	select BR2_PACKAGE_MTD_UBIFS_UTILS
81
82config BR2_PACKAGE_MTD_MTD_DEBUG
83	bool "mtd_debug"
84	default y
85
86config BR2_PACKAGE_MTD_MTDPART
87	bool "mtdpart"
88
89config BR2_PACKAGE_MTD_NANDDUMP
90	bool "nanddump"
91	default y
92
93config BR2_PACKAGE_MTD_NANDTEST
94	bool "nandtest"
95	default y
96
97config BR2_PACKAGE_MTD_NANDWRITE
98	bool "nandwrite"
99	default y
100
101config BR2_PACKAGE_MTD_NANDFLIPBITS
102	bool "nandflipbits"
103
104config BR2_PACKAGE_MTD_NFTLDUMP
105	bool "nftldump"
106
107config BR2_PACKAGE_MTD_NFTL_FORMAT
108	bool "nftl_format"
109
110config BR2_PACKAGE_MTD_RECV_IMAGE
111	bool "recv_image"
112
113config BR2_PACKAGE_MTD_RFDDUMP
114	bool "rfddump"
115
116config BR2_PACKAGE_MTD_RFDFORMAT
117	bool "rfdformat"
118
119config BR2_PACKAGE_MTD_SERVE_IMAGE
120	bool "serve_image"
121
122config BR2_PACKAGE_MTD_SUMTOOL
123	bool "sumtool"
124	select BR2_PACKAGE_MTD_JFFS_UTILS
125
126config BR2_PACKAGE_MTD_MTDINFO
127	bool "mtdinfo"
128	default y
129
130config BR2_PACKAGE_MTD_UBIATTACH
131	bool "ubiattach"
132	default y
133
134config BR2_PACKAGE_MTD_UBICRC32
135	bool "ubicrc32"
136	default y
137
138config BR2_PACKAGE_MTD_UBIDETACH
139	bool "ubidetach"
140	default y
141
142config BR2_PACKAGE_MTD_UBIFORMAT
143	bool "ubiformat"
144	default y
145
146config BR2_PACKAGE_MTD_UBIHEALTHD
147	bool "ubihealthd"
148	default y
149	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 # getrandom()
150
151comment "ubihealthd needs a toolchain w/ headers >= 3.17"
152	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
153
154config BR2_PACKAGE_MTD_UBIMKVOL
155	bool "ubimkvol"
156	default y
157
158config BR2_PACKAGE_MTD_UBINFO
159	bool "ubinfo"
160	default y
161
162config BR2_PACKAGE_MTD_UBINIZE
163	bool "ubinize"
164	default y
165
166config BR2_PACKAGE_MTD_UBIRENAME
167	bool "ubirename"
168	default y
169
170config BR2_PACKAGE_MTD_UBIRMVOL
171	bool "ubirmvol"
172	default y
173
174config BR2_PACKAGE_MTD_UBIRSVOL
175	bool "ubirsvol"
176	default y
177
178config BR2_PACKAGE_MTD_UBIUPDATEVOL
179	bool "ubiupdatevol"
180	default y
181
182config BR2_PACKAGE_MTD_UBIBLOCK
183	bool "ubiblock"
184	default y
185
186config BR2_PACKAGE_MTD_TESTS
187	bool "MTD test tools"
188	depends on BR2_USE_MMU # fork() in fstests
189	depends on BR2_TOOLCHAIN_HAS_THREADS
190	help
191	  Build and install tools for testing MTD devices and drivers.
192
193if BR2_PACKAGE_MTD_TESTS
194
195config BR2_PACKAGE_MTD_FLASH_READTEST
196	bool "flash_readtest"
197
198config BR2_PACKAGE_MTD_FLASH_SPEED
199	bool "flash_speed"
200
201config BR2_PACKAGE_MTD_FLASH_STRESS
202	bool "flash_stress"
203
204config BR2_PACKAGE_MTD_FLASH_TORTURE
205	bool "flash_torture"
206
207config BR2_PACKAGE_MTD_INTEGCK
208	bool "integck"
209
210config BR2_PACKAGE_MTD_NANDBITERRS
211	bool "nandbiterrs"
212
213config BR2_PACKAGE_MTD_NANDPAGETEST
214	bool "nandpagetest"
215
216config BR2_PACKAGE_MTD_NANDSUBPAGETEST
217	bool "nandsubpagetest"
218
219endif
220
221comment "MTD test tools need a toolchain w/ threads"
222	depends on BR2_USE_MMU
223	depends on !BR2_TOOLCHAIN_HAS_THREADS
224
225endif
226