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