kernel: add exfat again
[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_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-exfat
168 SUBMENU:=$(FS_MENU)
169 TITLE:=exFAT filesystem support
170 KCONFIG:= \
171 CONFIG_EXFAT_FS \
172 CONFIG_EXFAT_DEFAULT_IOCHARSET="utf8"
173 FILES:= \
174 $(LINUX_DIR)/drivers/staging/exfat/exfat.ko@lt5.7 \
175 $(LINUX_DIR)/fs/exfat/exfat.ko@ge5.7
176 AUTOLOAD:=$(call AutoLoad,30,exfat,1)
177 DEPENDS:=+kmod-nls-base
178 endef
179
180 define KernelPackage/fs-exfat/description
181 Kernel module for exFAT filesystem support
182 endef
183
184 $(eval $(call KernelPackage,fs-exfat))
185
186
187 define KernelPackage/fs-exportfs
188 SUBMENU:=$(FS_MENU)
189 TITLE:=exportfs kernel server support
190 KCONFIG:=CONFIG_EXPORTFS
191 FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
192 AUTOLOAD:=$(call AutoLoad,20,exportfs,1)
193 endef
194
195 define KernelPackage/fs-exportfs/description
196 Kernel module for exportfs. Needed for some other modules.
197 endef
198
199 $(eval $(call KernelPackage,fs-exportfs))
200
201
202 define KernelPackage/fs-ext4
203 SUBMENU:=$(FS_MENU)
204 TITLE:=EXT4 filesystem support
205 DEPENDS := \
206 +kmod-lib-crc16 \
207 +kmod-crypto-hash \
208 +kmod-crypto-crc32c
209 KCONFIG:= \
210 CONFIG_EXT4_FS \
211 CONFIG_EXT4_ENCRYPTION=n \
212 CONFIG_JBD2
213 FILES:= \
214 $(LINUX_DIR)/fs/ext4/ext4.ko \
215 $(LINUX_DIR)/fs/jbd2/jbd2.ko \
216 $(LINUX_DIR)/fs/mbcache.ko
217 AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
218 endef
219
220 define KernelPackage/fs-ext4/description
221 Kernel module for EXT4 filesystem support
222 endef
223
224 $(eval $(call KernelPackage,fs-ext4))
225
226
227 define KernelPackage/fs-f2fs
228 SUBMENU:=$(FS_MENU)
229 TITLE:=F2FS filesystem support
230 DEPENDS:= +kmod-crypto-hash +kmod-crypto-crc32 +kmod-nls-base
231 KCONFIG:=CONFIG_F2FS_FS
232 FILES:=$(LINUX_DIR)/fs/f2fs/f2fs.ko
233 AUTOLOAD:=$(call AutoLoad,30,f2fs,1)
234 endef
235
236 define KernelPackage/fs-f2fs/description
237 Kernel module for F2FS filesystem support
238 endef
239
240 $(eval $(call KernelPackage,fs-f2fs))
241
242
243 define KernelPackage/fs-fscache
244 SUBMENU:=$(FS_MENU)
245 TITLE:=General filesystem local cache manager
246 DEPENDS:=
247 KCONFIG:=\
248 CONFIG_FSCACHE=m \
249 CONFIG_FSCACHE_STATS=y \
250 CONFIG_FSCACHE_HISTOGRAM=n \
251 CONFIG_FSCACHE_DEBUG=n \
252 CONFIG_FSCACHE_OBJECT_LIST=n \
253 CONFIG_CACHEFILES=y \
254 CONFIG_CACHEFILES_DEBUG=n \
255 CONFIG_CACHEFILES_HISTOGRAM=n
256 FILES:=$(LINUX_DIR)/fs/fscache/fscache.ko
257 AUTOLOAD:=$(call AutoLoad,29,fscache)
258 endef
259
260 $(eval $(call KernelPackage,fs-fscache))
261
262
263 define KernelPackage/fs-hfs
264 SUBMENU:=$(FS_MENU)
265 TITLE:=HFS filesystem support
266 DEPENDS:=+kmod-cdrom
267 KCONFIG:=CONFIG_HFS_FS
268 FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
269 AUTOLOAD:=$(call AutoLoad,30,hfs)
270 $(call AddDepends/nls)
271 endef
272
273 define KernelPackage/fs-hfs/description
274 Kernel module for HFS filesystem support
275 endef
276
277 $(eval $(call KernelPackage,fs-hfs))
278
279
280 define KernelPackage/fs-hfsplus
281 SUBMENU:=$(FS_MENU)
282 TITLE:=HFS+ filesystem support
283 DEPENDS:=+kmod-cdrom
284 KCONFIG:=CONFIG_HFSPLUS_FS
285 FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
286 AUTOLOAD:=$(call AutoLoad,30,hfsplus)
287 $(call AddDepends/nls,utf8)
288 endef
289
290 define KernelPackage/fs-hfsplus/description
291 Kernel module for HFS+ filesystem support
292 endef
293
294 $(eval $(call KernelPackage,fs-hfsplus))
295
296
297 define KernelPackage/fs-isofs
298 SUBMENU:=$(FS_MENU)
299 TITLE:=ISO9660 filesystem support
300 DEPENDS:=+kmod-lib-zlib-inflate +kmod-cdrom
301 KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
302 FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
303 AUTOLOAD:=$(call AutoLoad,30,isofs)
304 $(call AddDepends/nls)
305 endef
306
307 define KernelPackage/fs-isofs/description
308 Kernel module for ISO9660 filesystem support
309 endef
310
311 $(eval $(call KernelPackage,fs-isofs))
312
313
314 define KernelPackage/fs-jfs
315 SUBMENU:=$(FS_MENU)
316 TITLE:=JFS filesystem support
317 KCONFIG:=CONFIG_JFS_FS
318 FILES:=$(LINUX_DIR)/fs/jfs/jfs.ko
319 AUTOLOAD:=$(call AutoLoad,30,jfs,1)
320 $(call AddDepends/nls)
321 endef
322
323 define KernelPackage/fs-jfs/description
324 Kernel module for JFS support
325 endef
326
327 $(eval $(call KernelPackage,fs-jfs))
328
329 define KernelPackage/fs-minix
330 SUBMENU:=$(FS_MENU)
331 TITLE:=Minix filesystem support
332 KCONFIG:=CONFIG_MINIX_FS
333 FILES:=$(LINUX_DIR)/fs/minix/minix.ko
334 AUTOLOAD:=$(call AutoLoad,30,minix)
335 endef
336
337 define KernelPackage/fs-minix/description
338 Kernel module for Minix filesystem support
339 endef
340
341 $(eval $(call KernelPackage,fs-minix))
342
343
344 define KernelPackage/fs-msdos
345 SUBMENU:=$(FS_MENU)
346 TITLE:=MSDOS filesystem support
347 DEPENDS:=+kmod-fs-vfat
348 KCONFIG:=CONFIG_MSDOS_FS
349 FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
350 AUTOLOAD:=$(call AutoLoad,40,msdos)
351 $(call AddDepends/nls)
352 endef
353
354 define KernelPackage/fs-msdos/description
355 Kernel module for MSDOS filesystem support
356 endef
357
358 $(eval $(call KernelPackage,fs-msdos))
359
360
361 define KernelPackage/fs-nfs
362 SUBMENU:=$(FS_MENU)
363 TITLE:=NFS filesystem client support
364 DEPENDS:=+kmod-fs-nfs-common +kmod-dnsresolver
365 KCONFIG:= \
366 CONFIG_NFS_FS \
367 CONFIG_NFS_USE_LEGACY_DNS=n \
368 CONFIG_NFS_USE_NEW_IDMAPPER=n
369 FILES:= \
370 $(LINUX_DIR)/fs/nfs/nfs.ko
371 AUTOLOAD:=$(call AutoLoad,40,nfs)
372 endef
373
374 define KernelPackage/fs-nfs/description
375 Kernel module for NFS client support
376 endef
377
378 $(eval $(call KernelPackage,fs-nfs))
379
380
381 define KernelPackage/fs-nfs-common
382 SUBMENU:=$(FS_MENU)
383 TITLE:=Common NFS filesystem modules
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)/lib/oid_registry.ko \
417 $(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko \
418 $(LINUX_DIR)/net/sunrpc/auth_gss/rpcsec_gss_krb5.ko
419 AUTOLOAD:=$(call AutoLoad,31,oid_registry auth_rpcgss rpcsec_gss_krb5)
420 endef
421
422 define KernelPackage/fs-nfs-common-rpcsec/description
423 Kernel modules for NFS Secure RPC
424 endef
425
426 $(eval $(call KernelPackage,fs-nfs-common-rpcsec))
427
428
429 define KernelPackage/fs-nfs-v3
430 SUBMENU:=$(FS_MENU)
431 TITLE:=NFS3 filesystem client support
432 DEPENDS:=+kmod-fs-nfs
433 FILES:= \
434 $(LINUX_DIR)/fs/nfs/nfsv3.ko
435 AUTOLOAD:=$(call AutoLoad,41,nfsv3)
436 endef
437
438 define KernelPackage/fs-nfs-v3/description
439 Kernel module for NFS v3 client support
440 endef
441
442 $(eval $(call KernelPackage,fs-nfs-v3))
443
444
445 define KernelPackage/fs-nfs-v4
446 SUBMENU:=$(FS_MENU)
447 TITLE:=NFS4 filesystem client support
448 DEPENDS:=+kmod-fs-nfs
449 KCONFIG:= \
450 CONFIG_NFS_V4=y
451 FILES:= \
452 $(LINUX_DIR)/fs/nfs/nfsv4.ko
453 AUTOLOAD:=$(call AutoLoad,41,nfsv4)
454 endef
455
456 define KernelPackage/fs-nfs-v4/description
457 Kernel module for NFS v4 client support
458 endef
459
460 $(eval $(call KernelPackage,fs-nfs-v4))
461
462
463 define KernelPackage/fs-nfsd
464 SUBMENU:=$(FS_MENU)
465 TITLE:=NFS kernel server support
466 DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs +kmod-fs-nfs-common-rpcsec
467 KCONFIG:= \
468 CONFIG_NFSD \
469 CONFIG_NFSD_V4=y \
470 CONFIG_NFSD_V4_SECURITY_LABEL=n \
471 CONFIG_NFSD_BLOCKLAYOUT=n \
472 CONFIG_NFSD_SCSILAYOUT=n \
473 CONFIG_NFSD_FLEXFILELAYOUT=n \
474 CONFIG_NFSD_FAULT_INJECTION=n
475 FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
476 AUTOLOAD:=$(call AutoLoad,40,nfsd)
477 endef
478
479 define KernelPackage/fs-nfsd/description
480 Kernel module for NFS kernel server support
481 endef
482
483 $(eval $(call KernelPackage,fs-nfsd))
484
485
486 define KernelPackage/fs-ntfs
487 SUBMENU:=$(FS_MENU)
488 TITLE:=NTFS filesystem support
489 KCONFIG:=CONFIG_NTFS_FS
490 FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
491 AUTOLOAD:=$(call AutoLoad,30,ntfs)
492 $(call AddDepends/nls)
493 endef
494
495 define KernelPackage/fs-ntfs/description
496 Kernel module for NTFS filesystem support
497 endef
498
499 $(eval $(call KernelPackage,fs-ntfs))
500
501
502 define KernelPackage/fs-reiserfs
503 SUBMENU:=$(FS_MENU)
504 TITLE:=ReiserFS filesystem support
505 KCONFIG:=CONFIG_REISERFS_FS
506 FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
507 AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
508 endef
509
510 define KernelPackage/fs-reiserfs/description
511 Kernel module for ReiserFS support
512 endef
513
514 $(eval $(call KernelPackage,fs-reiserfs))
515
516
517 define KernelPackage/fs-squashfs
518 SUBMENU:=$(FS_MENU)
519 TITLE:=SquashFS 4.0 filesystem support
520 KCONFIG:=CONFIG_SQUASHFS \
521 CONFIG_SQUASHFS_XZ=y
522 FILES:=$(LINUX_DIR)/fs/squashfs/squashfs.ko
523 AUTOLOAD:=$(call AutoLoad,30,squashfs,1)
524 endef
525
526 define KernelPackage/fs-squashfs/description
527 Kernel module for SquashFS 4.0 support
528 endef
529
530 $(eval $(call KernelPackage,fs-squashfs))
531
532
533 define KernelPackage/fs-udf
534 SUBMENU:=$(FS_MENU)
535 TITLE:=UDF filesystem support
536 KCONFIG:=CONFIG_UDF_FS
537 FILES:=$(LINUX_DIR)/fs/udf/udf.ko
538 AUTOLOAD:=$(call AutoLoad,30,udf)
539 DEPENDS:=+kmod-lib-crc-itu-t +kmod-cdrom
540 $(call AddDepends/nls)
541 endef
542
543 define KernelPackage/fs-udf/description
544 Kernel module for UDF filesystem support
545 endef
546
547 $(eval $(call KernelPackage,fs-udf))
548
549
550 define KernelPackage/fs-vfat
551 SUBMENU:=$(FS_MENU)
552 TITLE:=VFAT filesystem support
553 KCONFIG:= \
554 CONFIG_FAT_FS \
555 CONFIG_VFAT_FS
556 FILES:= \
557 $(LINUX_DIR)/fs/fat/fat.ko \
558 $(LINUX_DIR)/fs/fat/vfat.ko
559 AUTOLOAD:=$(call AutoLoad,30,fat vfat)
560 $(call AddDepends/nls,cp437 iso8859-1 utf8)
561 endef
562
563 define KernelPackage/fs-vfat/description
564 Kernel module for VFAT filesystem support
565 endef
566
567 $(eval $(call KernelPackage,fs-vfat))
568
569
570 define KernelPackage/fs-xfs
571 SUBMENU:=$(FS_MENU)
572 TITLE:=XFS filesystem support
573 KCONFIG:=CONFIG_XFS_FS
574 DEPENDS:= +kmod-fs-exportfs +kmod-lib-crc32c
575 FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
576 AUTOLOAD:=$(call AutoLoad,30,xfs,1)
577 endef
578
579 define KernelPackage/fs-xfs/description
580 Kernel module for XFS support
581 endef
582
583 $(eval $(call KernelPackage,fs-xfs))
584
585
586 define KernelPackage/fuse
587 SUBMENU:=$(FS_MENU)
588 TITLE:=FUSE (Filesystem in Userspace) support
589 KCONFIG:= CONFIG_FUSE_FS
590 FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
591 AUTOLOAD:=$(call AutoLoad,80,fuse)
592 endef
593
594 define KernelPackage/fuse/description
595 Kernel module for userspace filesystem support
596 endef
597
598 $(eval $(call KernelPackage,fuse))