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_LSMTD
75	bool "lsmtd"
76
77config BR2_PACKAGE_MTD_MKFSJFFS2
78	bool "mkfs.jffs2"
79	select BR2_PACKAGE_MTD_JFFS_UTILS
80
81config BR2_PACKAGE_MTD_MKFSUBIFS
82	bool "mkfs.ubifs"
83	select BR2_PACKAGE_MTD_UBIFS_UTILS
84
85config BR2_PACKAGE_MTD_MTD_DEBUG
86	bool "mtd_debug"
87	default y
88
89config BR2_PACKAGE_MTD_MTDPART
90	bool "mtdpart"
91
92config BR2_PACKAGE_MTD_NANDDUMP
93	bool "nanddump"
94	default y
95
96config BR2_PACKAGE_MTD_NANDTEST
97	bool "nandtest"
98	default y
99
100config BR2_PACKAGE_MTD_NANDWRITE
101	bool "nandwrite"
102	default y
103
104config BR2_PACKAGE_MTD_NANDFLIPBITS
105	bool "nandflipbits"
106
107config BR2_PACKAGE_MTD_NFTLDUMP
108	bool "nftldump"
109
110config BR2_PACKAGE_MTD_NFTL_FORMAT
111	bool "nftl_format"
112
113config BR2_PACKAGE_MTD_RECV_IMAGE
114	bool "recv_image"
115
116config BR2_PACKAGE_MTD_RFDDUMP
117	bool "rfddump"
118
119config BR2_PACKAGE_MTD_RFDFORMAT
120	bool "rfdformat"
121
122config BR2_PACKAGE_MTD_SERVE_IMAGE
123	bool "serve_image"
124
125config BR2_PACKAGE_MTD_SUMTOOL
126	bool "sumtool"
127	select BR2_PACKAGE_MTD_JFFS_UTILS
128
129config BR2_PACKAGE_MTD_MTDINFO
130	bool "mtdinfo"
131	default y
132
133config BR2_PACKAGE_MTD_UBIATTACH
134	bool "ubiattach"
135	default y
136
137config BR2_PACKAGE_MTD_UBICRC32
138	bool "ubicrc32"
139	default y
140
141config BR2_PACKAGE_MTD_UBIDETACH
142	bool "ubidetach"
143	default y
144
145config BR2_PACKAGE_MTD_UBIFORMAT
146	bool "ubiformat"
147	default y
148
149config BR2_PACKAGE_MTD_UBIHEALTHD
150	bool "ubihealthd"
151	default y
152	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 # getrandom()
153
154comment "ubihealthd needs a toolchain w/ headers >= 3.17"
155	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
156
157config BR2_PACKAGE_MTD_UBIMKVOL
158	bool "ubimkvol"
159	default y
160
161config BR2_PACKAGE_MTD_UBINFO
162	bool "ubinfo"
163	default y
164
165config BR2_PACKAGE_MTD_UBINIZE
166	bool "ubinize"
167	default y
168
169config BR2_PACKAGE_MTD_UBIRENAME
170	bool "ubirename"
171	default y
172
173config BR2_PACKAGE_MTD_UBIRMVOL
174	bool "ubirmvol"
175	default y
176
177config BR2_PACKAGE_MTD_UBIRSVOL
178	bool "ubirsvol"
179	default y
180
181config BR2_PACKAGE_MTD_UBIUPDATEVOL
182	bool "ubiupdatevol"
183	default y
184
185config BR2_PACKAGE_MTD_UBIBLOCK
186	bool "ubiblock"
187	default y
188
189config BR2_PACKAGE_MTD_TESTS
190	bool "MTD test tools"
191	depends on BR2_USE_MMU # fork() in fstests
192	depends on BR2_TOOLCHAIN_HAS_THREADS
193	help
194	  Build and install tools for testing MTD devices and drivers.
195
196if BR2_PACKAGE_MTD_TESTS
197
198config BR2_PACKAGE_MTD_FLASH_READTEST
199	bool "flash_readtest"
200
201config BR2_PACKAGE_MTD_FLASH_SPEED
202	bool "flash_speed"
203
204config BR2_PACKAGE_MTD_FLASH_STRESS
205	bool "flash_stress"
206
207config BR2_PACKAGE_MTD_FLASH_TORTURE
208	bool "flash_torture"
209
210config BR2_PACKAGE_MTD_INTEGCK
211	bool "integck"
212
213config BR2_PACKAGE_MTD_NANDBITERRS
214	bool "nandbiterrs"
215
216config BR2_PACKAGE_MTD_NANDPAGETEST
217	bool "nandpagetest"
218
219config BR2_PACKAGE_MTD_NANDSUBPAGETEST
220	bool "nandsubpagetest"
221
222endif
223
224comment "MTD test tools need a toolchain w/ threads"
225	depends on BR2_USE_MMU
226	depends on !BR2_TOOLCHAIN_HAS_THREADS
227
228endif
229