kernel: build support for NFSv4 in nfsd
[openwrt/staging/wigyori.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:=CONFIG_AUTOFS4_FS
53 FILES:=$(LINUX_DIR)/fs/autofs4/autofs4.ko
54 AUTOLOAD:=$(call AutoLoad,30,autofs4)
55 endef
56
57 define KernelPackage/fs-autofs4/description
58 Kernel module for AutoFS4 support
59 endef
60
61 $(eval $(call KernelPackage,fs-autofs4))
62
63
64 define KernelPackage/fs-btrfs
65 SUBMENU:=$(FS_MENU)
66 TITLE:=BTRFS filesystem support
67 DEPENDS:=+kmod-lib-crc32c +kmod-lib-lzo +kmod-lib-zlib-inflate +kmod-lib-zlib-deflate +kmod-lib-raid6 +kmod-lib-xor +LINUX_4_14:kmod-lib-zstd
68 KCONFIG:=\
69 CONFIG_BTRFS_FS \
70 CONFIG_BTRFS_FS_POSIX_ACL=n \
71 CONFIG_BTRFS_FS_CHECK_INTEGRITY=n
72 FILES:=\
73 $(LINUX_DIR)/fs/btrfs/btrfs.ko
74 AUTOLOAD:=$(call AutoLoad,30,btrfs,1)
75 endef
76
77 define KernelPackage/fs-btrfs/description
78 Kernel module for BTRFS support
79 endef
80
81 $(eval $(call KernelPackage,fs-btrfs))
82
83
84 define KernelPackage/fs-cifs
85 SUBMENU:=$(FS_MENU)
86 TITLE:=CIFS support
87 KCONFIG:= \
88 CONFIG_CIFS \
89 CONFIG_CIFS_XATTR=y \
90 CONFIG_CIFS_DFS_UPCALL=n \
91 CONFIG_CIFS_UPCALL=n \
92 CONFIG_CIFS_SMB311=n
93 FILES:=$(LINUX_DIR)/fs/cifs/cifs.ko
94 AUTOLOAD:=$(call AutoLoad,30,cifs)
95 $(call AddDepends/nls)
96 DEPENDS+= \
97 +kmod-crypto-hmac \
98 +kmod-crypto-md5 \
99 +kmod-crypto-md4 \
100 +kmod-crypto-des \
101 +kmod-crypto-ecb \
102 +kmod-crypto-sha256
103 endef
104
105 define KernelPackage/fs-cifs/description
106 Kernel module for CIFS support
107 endef
108
109 $(eval $(call KernelPackage,fs-cifs))
110
111
112 define KernelPackage/fs-configfs
113 SUBMENU:=$(FS_MENU)
114 TITLE:=Configuration filesystem support
115 KCONFIG:= \
116 CONFIG_CONFIGFS_FS
117 FILES:=$(LINUX_DIR)/fs/configfs/configfs.ko
118 AUTOLOAD:=$(call AutoLoad,30,configfs)
119 endef
120
121 define KernelPackage/fs-configfs/description
122 Kernel module for configfs support
123 endef
124
125 $(eval $(call KernelPackage,fs-configfs))
126
127
128 define KernelPackage/fs-cramfs
129 SUBMENU:=$(FS_MENU)
130 TITLE:=Compressed RAM/ROM filesystem support
131 DEPENDS:=+kmod-lib-zlib-inflate
132 KCONFIG:= \
133 CONFIG_CRAMFS
134 FILES:=$(LINUX_DIR)/fs/cramfs/cramfs.ko
135 AUTOLOAD:=$(call AutoLoad,30,cramfs)
136 endef
137
138 define KernelPackage/fs-cramfs/description
139 Kernel module for cramfs support
140 endef
141
142 $(eval $(call KernelPackage,fs-cramfs))
143
144
145 define KernelPackage/fs-efivarfs
146 SUBMENU:=$(FS_MENU)
147 TITLE:=efivar filesystem support
148 KCONFIG:=CONFIG_EFIVAR_FS
149 FILES:=$(LINUX_DIR)/fs/efivarfs/efivarfs.ko
150 DEPENDS:=@(x86_64||x86)
151 AUTOLOAD:=$(call Autoload,90,efivarfs)
152 endef
153
154 define KernelPackage/fs-efivarfs/description
155 Kernel module to support efivarfs file system mountpoint.
156 endef
157
158 $(eval $(call KernelPackage,fs-efivarfs))
159
160
161 define KernelPackage/fs-exportfs
162 SUBMENU:=$(FS_MENU)
163 TITLE:=exportfs kernel server support
164 KCONFIG:=CONFIG_EXPORTFS
165 FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
166 AUTOLOAD:=$(call AutoLoad,20,exportfs,1)
167 endef
168
169 define KernelPackage/fs-exportfs/description
170 Kernel module for exportfs. Needed for some other modules.
171 endef
172
173 $(eval $(call KernelPackage,fs-exportfs))
174
175
176 define KernelPackage/fs-ext4
177 SUBMENU:=$(FS_MENU)
178 TITLE:=EXT4 filesystem support
179 DEPENDS := \
180 +kmod-lib-crc16 \
181 +kmod-crypto-hash \
182 +kmod-crypto-crc32c
183 KCONFIG:= \
184 CONFIG_EXT4_FS \
185 CONFIG_EXT4_ENCRYPTION=n \
186 CONFIG_JBD2
187 FILES:= \
188 $(LINUX_DIR)/fs/ext4/ext4.ko \
189 $(LINUX_DIR)/fs/jbd2/jbd2.ko \
190 $(LINUX_DIR)/fs/mbcache.ko
191 AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
192 endef
193
194 define KernelPackage/fs-ext4/description
195 Kernel module for EXT4 filesystem support
196 endef
197
198 $(eval $(call KernelPackage,fs-ext4))
199
200
201 define KernelPackage/fs-f2fs
202 SUBMENU:=$(FS_MENU)
203 TITLE:=F2FS filesystem support
204 DEPENDS:= +kmod-crypto-hash +kmod-crypto-crc32
205 KCONFIG:= \
206 CONFIG_F2FS_FS \
207 CONFIG_F2FS_STAT_FS=y \
208 CONFIG_F2FS_FS_XATTR=y \
209 CONFIG_F2FS_FS_POSIX_ACL=n \
210 CONFIG_F2FS_FS_SECURITY=n \
211 CONFIG_F2FS_CHECK_FS=n
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 KCONFIG:= \
389 CONFIG_SUNRPC_GSS \
390 CONFIG_RPCSEC_GSS_KRB5
391 FILES:= \
392 $(LINUX_DIR)/lib/oid_registry.ko \
393 $(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko \
394 $(LINUX_DIR)/net/sunrpc/auth_gss/rpcsec_gss_krb5.ko
395 AUTOLOAD:=$(call AutoLoad,31,oid_registry auth_rpcgss rpcsec_gss_krb5)
396 endef
397
398 define KernelPackage/fs-nfs-common-rpcsec/description
399 Kernel modules for NFS Secure RPC
400 endef
401
402 $(eval $(call KernelPackage,fs-nfs-common-rpcsec))
403
404
405 define KernelPackage/fs-nfs-v3
406 SUBMENU:=$(FS_MENU)
407 TITLE:=NFS3 filesystem client support
408 DEPENDS:=+kmod-fs-nfs
409 FILES:= \
410 $(LINUX_DIR)/fs/nfs/nfsv3.ko
411 AUTOLOAD:=$(call AutoLoad,41,nfsv3)
412 endef
413
414 define KernelPackage/fs-nfs-v3/description
415 Kernel module for NFS v3 client support
416 endef
417
418 $(eval $(call KernelPackage,fs-nfs-v3))
419
420
421 define KernelPackage/fs-nfs-v4
422 SUBMENU:=$(FS_MENU)
423 TITLE:=NFS4 filesystem client support
424 DEPENDS:=+kmod-fs-nfs
425 KCONFIG:= \
426 CONFIG_NFS_V4=y
427 FILES:= \
428 $(LINUX_DIR)/fs/nfs/nfsv4.ko
429 AUTOLOAD:=$(call AutoLoad,41,nfsv4)
430 endef
431
432 define KernelPackage/fs-nfs-v4/description
433 Kernel module for NFS v4 support
434 endef
435
436 $(eval $(call KernelPackage,fs-nfs-v4))
437
438
439 define KernelPackage/fs-nfsd
440 SUBMENU:=$(FS_MENU)
441 TITLE:=NFS kernel server support
442 DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs +kmod-fs-nfs-common-rpcsec
443 KCONFIG:= \
444 CONFIG_NFSD \
445 CONFIG_NFSD_V4=y \
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))