kernel: move CONFIG_F2FS_CHECK_FS to generic kernel config
[openwrt/openwrt.git] / package / kernel / linux / modules / fs.mk
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 FS_MENU:=Filesystems
9
10 define KernelPackage/fs-9p
11 SUBMENU:=$(FS_MENU)
12 TITLE:=Plan 9 Resource Sharing Support
13 DEPENDS:=+kmod-9pnet
14 KCONFIG:=\
15 CONFIG_9P_FS \
16 CONFIG_9P_FS_POSIX_ACL=n \
17 CONFIG_9P_FS_SECURITY=n \
18 CONFIG_9P_FSCACHE=n
19 FILES:=$(LINUX_DIR)/fs/9p/9p.ko
20 AUTOLOAD:=$(call AutoLoad,30,9p)
21 endef
22
23 define KernelPackage/fs-9p/description
24 Kernel module for Plan 9 Resource Sharing Support support
25 endef
26
27 $(eval $(call KernelPackage,fs-9p))
28
29
30 define KernelPackage/fs-afs
31 SUBMENU:=$(FS_MENU)
32 TITLE:=Andrew FileSystem client
33 DEFAULT:=n
34 DEPENDS:=+kmod-rxrpc +kmod-dnsresolver +kmod-fs-fscache
35 KCONFIG:=\
36 CONFIG_AFS_FS=m \
37 CONFIG_AFS_DEBUG=n \
38 CONFIG_AFS_FSCACHE=y
39 FILES:=$(LINUX_DIR)/fs/afs/kafs.ko
40 AUTOLOAD:=$(call AutoLoad,30,kafs)
41 endef
42
43 define KernelPackage/fs-afs/description
44 Kernel module for Andrew FileSystem client support
45 endef
46
47 $(eval $(call KernelPackage,fs-afs))
48
49 define KernelPackage/fs-autofs4
50 SUBMENU:=$(FS_MENU)
51 TITLE:=AUTOFS4 filesystem support
52 KCONFIG:= \
53 CONFIG_AUTOFS4_FS \
54 CONFIG_AUTOFS_FS
55 FILES:= \
56 $(LINUX_DIR)/fs/autofs/autofs4.ko
57 AUTOLOAD:=$(call AutoLoad,30,autofs4)
58 endef
59
60 define KernelPackage/fs-autofs4/description
61 Kernel module for AutoFS4 support
62 endef
63
64 $(eval $(call KernelPackage,fs-autofs4))
65
66
67 define KernelPackage/fs-btrfs
68 SUBMENU:=$(FS_MENU)
69 TITLE:=BTRFS filesystem support
70 DEPENDS:=+kmod-lib-crc32c +kmod-lib-lzo +kmod-lib-zlib-inflate +kmod-lib-zlib-deflate +kmod-lib-raid6 +kmod-lib-xor +kmod-lib-zstd
71 KCONFIG:=\
72 CONFIG_BTRFS_FS \
73 CONFIG_BTRFS_FS_POSIX_ACL=n \
74 CONFIG_BTRFS_FS_CHECK_INTEGRITY=n
75 FILES:=\
76 $(LINUX_DIR)/fs/btrfs/btrfs.ko
77 AUTOLOAD:=$(call AutoLoad,30,btrfs,1)
78 endef
79
80 define KernelPackage/fs-btrfs/description
81 Kernel module for BTRFS support
82 endef
83
84 $(eval $(call KernelPackage,fs-btrfs))
85
86
87 define KernelPackage/fs-cifs
88 SUBMENU:=$(FS_MENU)
89 TITLE:=CIFS support
90 KCONFIG:= \
91 CONFIG_CIFS \
92 CONFIG_CIFS_XATTR=y \
93 CONFIG_CIFS_DFS_UPCALL=n \
94 CONFIG_CIFS_UPCALL=n \
95 CONFIG_CIFS_SMB311=n
96 FILES:=$(LINUX_DIR)/fs/cifs/cifs.ko
97 AUTOLOAD:=$(call AutoLoad,30,cifs)
98 $(call AddDepends/nls)
99 DEPENDS+= \
100 +kmod-crypto-arc4 \
101 +kmod-crypto-hmac \
102 +kmod-crypto-md5 \
103 +kmod-crypto-md4 \
104 +kmod-crypto-des \
105 +kmod-crypto-ecb \
106 +kmod-crypto-sha256
107 endef
108
109 define KernelPackage/fs-cifs/description
110 Kernel module for CIFS support
111 endef
112
113 $(eval $(call KernelPackage,fs-cifs))
114
115
116 define KernelPackage/fs-configfs
117 SUBMENU:=$(FS_MENU)
118 TITLE:=Configuration filesystem support
119 KCONFIG:= \
120 CONFIG_CONFIGFS_FS
121 FILES:=$(LINUX_DIR)/fs/configfs/configfs.ko
122 AUTOLOAD:=$(call AutoLoad,30,configfs)
123 endef
124
125 define KernelPackage/fs-configfs/description
126 Kernel module for configfs support
127 endef
128
129 $(eval $(call KernelPackage,fs-configfs))
130
131
132 define KernelPackage/fs-cramfs
133 SUBMENU:=$(FS_MENU)
134 TITLE:=Compressed RAM/ROM filesystem support
135 DEPENDS:=+kmod-lib-zlib-inflate
136 KCONFIG:= \
137 CONFIG_CRAMFS
138 FILES:=$(LINUX_DIR)/fs/cramfs/cramfs.ko
139 AUTOLOAD:=$(call AutoLoad,30,cramfs)
140 endef
141
142 define KernelPackage/fs-cramfs/description
143 Kernel module for cramfs support
144 endef
145
146 $(eval $(call KernelPackage,fs-cramfs))
147
148
149 define KernelPackage/fs-efivarfs
150 SUBMENU:=$(FS_MENU)
151 TITLE:=efivar filesystem support
152 KCONFIG:=CONFIG_EFIVAR_FS
153 FILES:=$(LINUX_DIR)/fs/efivarfs/efivarfs.ko
154 DEPENDS:=@(x86_64||x86)
155 AUTOLOAD:=$(call Autoload,90,efivarfs)
156 endef
157
158 define KernelPackage/fs-efivarfs/description
159 Kernel module to support efivarfs file system mountpoint.
160 endef
161
162 $(eval $(call KernelPackage,fs-efivarfs))
163
164
165 define KernelPackage/fs-exportfs
166 SUBMENU:=$(FS_MENU)
167 TITLE:=exportfs kernel server support
168 KCONFIG:=CONFIG_EXPORTFS
169 FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
170 AUTOLOAD:=$(call AutoLoad,20,exportfs,1)
171 endef
172
173 define KernelPackage/fs-exportfs/description
174 Kernel module for exportfs. Needed for some other modules.
175 endef
176
177 $(eval $(call KernelPackage,fs-exportfs))
178
179
180 define KernelPackage/fs-ext4
181 SUBMENU:=$(FS_MENU)
182 TITLE:=EXT4 filesystem support
183 DEPENDS := \
184 +kmod-lib-crc16 \
185 +kmod-crypto-hash \
186 +kmod-crypto-crc32c
187 KCONFIG:= \
188 CONFIG_EXT4_FS \
189 CONFIG_EXT4_ENCRYPTION=n \
190 CONFIG_JBD2
191 FILES:= \
192 $(LINUX_DIR)/fs/ext4/ext4.ko \
193 $(LINUX_DIR)/fs/jbd2/jbd2.ko \
194 $(LINUX_DIR)/fs/mbcache.ko
195 AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
196 endef
197
198 define KernelPackage/fs-ext4/description
199 Kernel module for EXT4 filesystem support
200 endef
201
202 $(eval $(call KernelPackage,fs-ext4))
203
204
205 define KernelPackage/fs-f2fs
206 SUBMENU:=$(FS_MENU)
207 TITLE:=F2FS filesystem support
208 DEPENDS:= +kmod-crypto-hash +kmod-crypto-crc32 +!LINUX_4_19:kmod-nls-base
209 KCONFIG:=CONFIG_F2FS_FS
210 FILES:=$(LINUX_DIR)/fs/f2fs/f2fs.ko
211 AUTOLOAD:=$(call AutoLoad,30,f2fs,1)
212 endef
213
214 define KernelPackage/fs-f2fs/description
215 Kernel module for F2FS filesystem support
216 endef
217
218 $(eval $(call KernelPackage,fs-f2fs))
219
220
221 define KernelPackage/fs-fscache
222 SUBMENU:=$(FS_MENU)
223 TITLE:=General filesystem local cache manager
224 DEPENDS:=
225 KCONFIG:=\
226 CONFIG_FSCACHE=m \
227 CONFIG_FSCACHE_STATS=y \
228 CONFIG_FSCACHE_HISTOGRAM=n \
229 CONFIG_FSCACHE_DEBUG=n \
230 CONFIG_FSCACHE_OBJECT_LIST=n \
231 CONFIG_CACHEFILES=y \
232 CONFIG_CACHEFILES_DEBUG=n \
233 CONFIG_CACHEFILES_HISTOGRAM=n
234 FILES:=$(LINUX_DIR)/fs/fscache/fscache.ko
235 AUTOLOAD:=$(call AutoLoad,29,fscache)
236 endef
237
238 $(eval $(call KernelPackage,fs-fscache))
239
240
241 define KernelPackage/fs-hfs
242 SUBMENU:=$(FS_MENU)
243 TITLE:=HFS filesystem support
244 KCONFIG:=CONFIG_HFS_FS
245 FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
246 AUTOLOAD:=$(call AutoLoad,30,hfs)
247 $(call AddDepends/nls)
248 endef
249
250 define KernelPackage/fs-hfs/description
251 Kernel module for HFS filesystem support
252 endef
253
254 $(eval $(call KernelPackage,fs-hfs))
255
256
257 define KernelPackage/fs-hfsplus
258 SUBMENU:=$(FS_MENU)
259 TITLE:=HFS+ filesystem support
260 KCONFIG:=CONFIG_HFSPLUS_FS
261 FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
262 AUTOLOAD:=$(call AutoLoad,30,hfsplus)
263 $(call AddDepends/nls,utf8)
264 endef
265
266 define KernelPackage/fs-hfsplus/description
267 Kernel module for HFS+ filesystem support
268 endef
269
270 $(eval $(call KernelPackage,fs-hfsplus))
271
272
273 define KernelPackage/fs-isofs
274 SUBMENU:=$(FS_MENU)
275 TITLE:=ISO9660 filesystem support
276 DEPENDS:=+kmod-lib-zlib-inflate
277 KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
278 FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
279 AUTOLOAD:=$(call AutoLoad,30,isofs)
280 $(call AddDepends/nls)
281 endef
282
283 define KernelPackage/fs-isofs/description
284 Kernel module for ISO9660 filesystem support
285 endef
286
287 $(eval $(call KernelPackage,fs-isofs))
288
289
290 define KernelPackage/fs-jfs
291 SUBMENU:=$(FS_MENU)
292 TITLE:=JFS filesystem support
293 KCONFIG:=CONFIG_JFS_FS
294 FILES:=$(LINUX_DIR)/fs/jfs/jfs.ko
295 AUTOLOAD:=$(call AutoLoad,30,jfs,1)
296 $(call AddDepends/nls)
297 endef
298
299 define KernelPackage/fs-jfs/description
300 Kernel module for JFS support
301 endef
302
303 $(eval $(call KernelPackage,fs-jfs))
304
305 define KernelPackage/fs-minix
306 SUBMENU:=$(FS_MENU)
307 TITLE:=Minix filesystem support
308 KCONFIG:=CONFIG_MINIX_FS
309 FILES:=$(LINUX_DIR)/fs/minix/minix.ko
310 AUTOLOAD:=$(call AutoLoad,30,minix)
311 endef
312
313 define KernelPackage/fs-minix/description
314 Kernel module for Minix filesystem support
315 endef
316
317 $(eval $(call KernelPackage,fs-minix))
318
319
320 define KernelPackage/fs-msdos
321 SUBMENU:=$(FS_MENU)
322 TITLE:=MSDOS filesystem support
323 DEPENDS:=+kmod-fs-vfat
324 KCONFIG:=CONFIG_MSDOS_FS
325 FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
326 AUTOLOAD:=$(call AutoLoad,40,msdos)
327 $(call AddDepends/nls)
328 endef
329
330 define KernelPackage/fs-msdos/description
331 Kernel module for MSDOS filesystem support
332 endef
333
334 $(eval $(call KernelPackage,fs-msdos))
335
336
337 define KernelPackage/fs-nfs
338 SUBMENU:=$(FS_MENU)
339 TITLE:=NFS filesystem client support
340 DEPENDS:=+kmod-fs-nfs-common +kmod-dnsresolver
341 KCONFIG:= \
342 CONFIG_NFS_FS \
343 CONFIG_NFS_USE_LEGACY_DNS=n \
344 CONFIG_NFS_USE_NEW_IDMAPPER=n
345 FILES:= \
346 $(LINUX_DIR)/fs/nfs/nfs.ko
347 AUTOLOAD:=$(call AutoLoad,40,nfs)
348 endef
349
350 define KernelPackage/fs-nfs/description
351 Kernel module for NFS client support
352 endef
353
354 $(eval $(call KernelPackage,fs-nfs))
355
356
357 define KernelPackage/fs-nfs-common
358 SUBMENU:=$(FS_MENU)
359 TITLE:=Common NFS filesystem modules
360 KCONFIG:= \
361 CONFIG_LOCKD \
362 CONFIG_SUNRPC \
363 CONFIG_GRACE_PERIOD
364 FILES:= \
365 $(LINUX_DIR)/fs/lockd/lockd.ko \
366 $(LINUX_DIR)/net/sunrpc/sunrpc.ko \
367 $(LINUX_DIR)/fs/nfs_common/grace.ko
368 AUTOLOAD:=$(call AutoLoad,30,grace sunrpc lockd)
369 endef
370
371 $(eval $(call KernelPackage,fs-nfs-common))
372
373
374 define KernelPackage/fs-nfs-common-rpcsec
375 SUBMENU:=$(FS_MENU)
376 TITLE:=NFS Secure RPC
377 DEPENDS:= \
378 +kmod-fs-nfs-common \
379 +kmod-crypto-des \
380 +kmod-crypto-cbc \
381 +kmod-crypto-cts \
382 +kmod-crypto-md5 \
383 +kmod-crypto-sha1 \
384 +kmod-crypto-hmac \
385 +kmod-crypto-ecb \
386 +kmod-crypto-arc4
387 KCONFIG:= \
388 CONFIG_SUNRPC_GSS \
389 CONFIG_RPCSEC_GSS_KRB5
390 FILES:= \
391 $(LINUX_DIR)/lib/oid_registry.ko \
392 $(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko \
393 $(LINUX_DIR)/net/sunrpc/auth_gss/rpcsec_gss_krb5.ko
394 AUTOLOAD:=$(call AutoLoad,31,oid_registry auth_rpcgss rpcsec_gss_krb5)
395 endef
396
397 define KernelPackage/fs-nfs-common-rpcsec/description
398 Kernel modules for NFS Secure RPC
399 endef
400
401 $(eval $(call KernelPackage,fs-nfs-common-rpcsec))
402
403
404 define KernelPackage/fs-nfs-v3
405 SUBMENU:=$(FS_MENU)
406 TITLE:=NFS3 filesystem client support
407 DEPENDS:=+kmod-fs-nfs
408 FILES:= \
409 $(LINUX_DIR)/fs/nfs/nfsv3.ko
410 AUTOLOAD:=$(call AutoLoad,41,nfsv3)
411 endef
412
413 define KernelPackage/fs-nfs-v3/description
414 Kernel module for NFS v3 client support
415 endef
416
417 $(eval $(call KernelPackage,fs-nfs-v3))
418
419
420 define KernelPackage/fs-nfs-v4
421 SUBMENU:=$(FS_MENU)
422 TITLE:=NFS4 filesystem client support
423 DEPENDS:=+kmod-fs-nfs
424 KCONFIG:= \
425 CONFIG_NFS_V4=y
426 FILES:= \
427 $(LINUX_DIR)/fs/nfs/nfsv4.ko
428 AUTOLOAD:=$(call AutoLoad,41,nfsv4)
429 endef
430
431 define KernelPackage/fs-nfs-v4/description
432 Kernel module for NFS v4 client support
433 endef
434
435 $(eval $(call KernelPackage,fs-nfs-v4))
436
437
438 define KernelPackage/fs-nfsd
439 SUBMENU:=$(FS_MENU)
440 TITLE:=NFS kernel server support
441 DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs +kmod-fs-nfs-common-rpcsec
442 KCONFIG:= \
443 CONFIG_NFSD \
444 CONFIG_NFSD_V4=y \
445 CONFIG_NFSD_V4_SECURITY_LABEL=n \
446 CONFIG_NFSD_BLOCKLAYOUT=n \
447 CONFIG_NFSD_SCSILAYOUT=n \
448 CONFIG_NFSD_FLEXFILELAYOUT=n \
449 CONFIG_NFSD_FAULT_INJECTION=n
450 FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
451 AUTOLOAD:=$(call AutoLoad,40,nfsd)
452 endef
453
454 define KernelPackage/fs-nfsd/description
455 Kernel module for NFS kernel server support
456 endef
457
458 $(eval $(call KernelPackage,fs-nfsd))
459
460
461 define KernelPackage/fs-ntfs
462 SUBMENU:=$(FS_MENU)
463 TITLE:=NTFS filesystem support
464 KCONFIG:=CONFIG_NTFS_FS
465 FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
466 AUTOLOAD:=$(call AutoLoad,30,ntfs)
467 $(call AddDepends/nls)
468 endef
469
470 define KernelPackage/fs-ntfs/description
471 Kernel module for NTFS filesystem support
472 endef
473
474 $(eval $(call KernelPackage,fs-ntfs))
475
476
477 define KernelPackage/fs-reiserfs
478 SUBMENU:=$(FS_MENU)
479 TITLE:=ReiserFS filesystem support
480 KCONFIG:=CONFIG_REISERFS_FS \
481 CONFIG_REISERFS_FS_XATTR=y
482 FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
483 AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
484 endef
485
486 define KernelPackage/fs-reiserfs/description
487 Kernel module for ReiserFS support
488 endef
489
490 $(eval $(call KernelPackage,fs-reiserfs))
491
492
493 define KernelPackage/fs-squashfs
494 SUBMENU:=$(FS_MENU)
495 TITLE:=SquashFS 4.0 filesystem support
496 KCONFIG:=CONFIG_SQUASHFS \
497 CONFIG_SQUASHFS_XZ=y
498 FILES:=$(LINUX_DIR)/fs/squashfs/squashfs.ko
499 AUTOLOAD:=$(call AutoLoad,30,squashfs,1)
500 endef
501
502 define KernelPackage/fs-squashfs/description
503 Kernel module for SquashFS 4.0 support
504 endef
505
506 $(eval $(call KernelPackage,fs-squashfs))
507
508
509 define KernelPackage/fs-udf
510 SUBMENU:=$(FS_MENU)
511 TITLE:=UDF filesystem support
512 KCONFIG:=CONFIG_UDF_FS
513 FILES:=$(LINUX_DIR)/fs/udf/udf.ko
514 AUTOLOAD:=$(call AutoLoad,30,udf)
515 DEPENDS:=+kmod-lib-crc-itu-t
516 $(call AddDepends/nls)
517 endef
518
519 define KernelPackage/fs-udf/description
520 Kernel module for UDF filesystem support
521 endef
522
523 $(eval $(call KernelPackage,fs-udf))
524
525
526 define KernelPackage/fs-vfat
527 SUBMENU:=$(FS_MENU)
528 TITLE:=VFAT filesystem support
529 KCONFIG:= \
530 CONFIG_FAT_FS \
531 CONFIG_VFAT_FS
532 FILES:= \
533 $(LINUX_DIR)/fs/fat/fat.ko \
534 $(LINUX_DIR)/fs/fat/vfat.ko
535 AUTOLOAD:=$(call AutoLoad,30,fat vfat)
536 $(call AddDepends/nls,cp437 iso8859-1 utf8)
537 endef
538
539 define KernelPackage/fs-vfat/description
540 Kernel module for VFAT filesystem support
541 endef
542
543 $(eval $(call KernelPackage,fs-vfat))
544
545
546 define KernelPackage/fs-xfs
547 SUBMENU:=$(FS_MENU)
548 TITLE:=XFS filesystem support
549 KCONFIG:=CONFIG_XFS_FS
550 DEPENDS:= +kmod-fs-exportfs +kmod-lib-crc32c
551 FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
552 AUTOLOAD:=$(call AutoLoad,30,xfs,1)
553 endef
554
555 define KernelPackage/fs-xfs/description
556 Kernel module for XFS support
557 endef
558
559 $(eval $(call KernelPackage,fs-xfs))
560
561
562 define KernelPackage/fuse
563 SUBMENU:=$(FS_MENU)
564 TITLE:=FUSE (Filesystem in Userspace) support
565 KCONFIG:= CONFIG_FUSE_FS
566 FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
567 AUTOLOAD:=$(call AutoLoad,80,fuse)
568 endef
569
570 define KernelPackage/fuse/description
571 Kernel module for userspace filesystem support
572 endef
573
574 $(eval $(call KernelPackage,fuse))