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