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