f757585575193542d6431619403eed5f8768741b
[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-fscache
11 SUBMENU:=$(FS_MENU)
12 TITLE:=General filesystem local cache manager
13 DEPENDS:=
14 KCONFIG:=\
15 CONFIG_FSCACHE=m \
16 CONFIG_FSCACHE_STATS=y \
17 CONFIG_FSCACHE_HISTOGRAM=n \
18 CONFIG_FSCACHE_DEBUG=n \
19 CONFIG_FSCACHE_OBJECT_LIST=n \
20 CONFIG_CACHEFILES=y \
21 CONFIG_CACHEFILES_DEBUG=n \
22 CONFIG_CACHEFILES_HISTOGRAM=n
23 FILES:=$(LINUX_DIR)/fs/fscache/fscache.ko
24 AUTOLOAD:=$(call AutoLoad,29,fscache)
25 endef
26
27 $(eval $(call KernelPackage,fs-fscache))
28
29 define KernelPackage/fs-9p
30 SUBMENU:=$(FS_MENU)
31 TITLE:=Plan 9 Resource Sharing Support
32 DEPENDS:=+kmod-9pnet
33 KCONFIG:=\
34 CONFIG_9P_FS \
35 CONFIG_9P_FS_POSIX_ACL=n \
36 CONFIG_9P_FS_SECURITY=n \
37 CONFIG_9P_FSCACHE=n
38 FILES:=$(LINUX_DIR)/fs/9p/9p.ko
39 AUTOLOAD:=$(call AutoLoad,30,9p)
40 endef
41
42 define KernelPackage/fs-9p/description
43 Kernel module for Plan 9 Resource Sharing Support support
44 endef
45
46 $(eval $(call KernelPackage,fs-9p))
47
48 define KernelPackage/fs-afs
49 SUBMENU:=$(FS_MENU)
50 TITLE:=Andrew FileSystem client
51 DEFAULT:=n
52 DEPENDS:=+kmod-rxrpc +kmod-dnsresolver +kmod-fs-fscache
53 KCONFIG:=\
54 CONFIG_AFS_FS=m \
55 CONFIG_AFS_DEBUG=n \
56 CONFIG_AFS_FSCACHE=y
57 FILES:=$(LINUX_DIR)/fs/afs/kafs.ko
58 AUTOLOAD:=$(call AutoLoad,30,kafs)
59 endef
60
61 define KernelPackage/fs-afs/description
62 Kernel module for Andrew FileSystem client support
63 endef
64
65 $(eval $(call KernelPackage,fs-afs))
66
67 define KernelPackage/fs-autofs4
68 SUBMENU:=$(FS_MENU)
69 TITLE:=AUTOFS4 filesystem support
70 KCONFIG:=CONFIG_AUTOFS4_FS
71 FILES:=$(LINUX_DIR)/fs/autofs4/autofs4.ko
72 AUTOLOAD:=$(call AutoLoad,30,autofs4)
73 endef
74
75 define KernelPackage/fs-autofs4/description
76 Kernel module for AutoFS4 support
77 endef
78
79 $(eval $(call KernelPackage,fs-autofs4))
80
81
82 define KernelPackage/fs-btrfs
83 SUBMENU:=$(FS_MENU)
84 TITLE:=BTRFS filesystem support
85 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
86 KCONFIG:=\
87 CONFIG_BTRFS_FS \
88 CONFIG_BTRFS_FS_POSIX_ACL=n \
89 CONFIG_BTRFS_FS_CHECK_INTEGRITY=n
90 FILES:=\
91 $(LINUX_DIR)/fs/btrfs/btrfs.ko
92 AUTOLOAD:=$(call AutoLoad,30,btrfs,1)
93 endef
94
95 define KernelPackage/fs-btrfs/description
96 Kernel module for BTRFS support
97 endef
98
99 $(eval $(call KernelPackage,fs-btrfs))
100
101
102 define KernelPackage/fs-cifs
103 SUBMENU:=$(FS_MENU)
104 TITLE:=CIFS support
105 KCONFIG:= \
106 CONFIG_CIFS \
107 CONFIG_CIFS_XATTR=y \
108 CONFIG_CIFS_DFS_UPCALL=n \
109 CONFIG_CIFS_UPCALL=n \
110 CONFIG_CIFS_SMB311=n
111 FILES:=$(LINUX_DIR)/fs/cifs/cifs.ko
112 AUTOLOAD:=$(call AutoLoad,30,cifs)
113 $(call AddDepends/nls)
114 DEPENDS+= \
115 +kmod-crypto-hmac \
116 +kmod-crypto-md5 \
117 +kmod-crypto-md4 \
118 +kmod-crypto-des \
119 +kmod-crypto-ecb \
120 +kmod-crypto-sha256
121 endef
122
123 define KernelPackage/fs-cifs/description
124 Kernel module for CIFS support
125 endef
126
127 $(eval $(call KernelPackage,fs-cifs))
128
129
130 define KernelPackage/fs-configfs
131 SUBMENU:=$(FS_MENU)
132 TITLE:=Configuration filesystem support
133 KCONFIG:= \
134 CONFIG_CONFIGFS_FS
135 FILES:=$(LINUX_DIR)/fs/configfs/configfs.ko
136 AUTOLOAD:=$(call AutoLoad,30,configfs)
137 endef
138
139 define KernelPackage/fs-configfs/description
140 Kernel module for configfs support
141 endef
142
143 $(eval $(call KernelPackage,fs-configfs))
144
145 define KernelPackage/fs-cramfs
146 SUBMENU:=$(FS_MENU)
147 TITLE:=Compressed RAM/ROM filesystem support
148 DEPENDS:=+kmod-lib-zlib-inflate
149 KCONFIG:= \
150 CONFIG_CRAMFS
151 FILES:=$(LINUX_DIR)/fs/cramfs/cramfs.ko
152 AUTOLOAD:=$(call AutoLoad,30,cramfs)
153 endef
154
155 define KernelPackage/fs-cramfs/description
156 Kernel module for cramfs support
157 endef
158
159 $(eval $(call KernelPackage,fs-cramfs))
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/fuse
224 SUBMENU:=$(FS_MENU)
225 TITLE:=FUSE (Filesystem in Userspace) support
226 KCONFIG:= CONFIG_FUSE_FS
227 FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
228 AUTOLOAD:=$(call AutoLoad,80,fuse)
229 endef
230
231 define KernelPackage/fuse/description
232 Kernel module for userspace filesystem support
233 endef
234
235 $(eval $(call KernelPackage,fuse))
236
237
238 define KernelPackage/fs-hfs
239 SUBMENU:=$(FS_MENU)
240 TITLE:=HFS filesystem support
241 KCONFIG:=CONFIG_HFS_FS
242 FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
243 AUTOLOAD:=$(call AutoLoad,30,hfs)
244 $(call AddDepends/nls)
245 endef
246
247 define KernelPackage/fs-hfs/description
248 Kernel module for HFS filesystem support
249 endef
250
251 $(eval $(call KernelPackage,fs-hfs))
252
253
254 define KernelPackage/fs-hfsplus
255 SUBMENU:=$(FS_MENU)
256 TITLE:=HFS+ filesystem support
257 KCONFIG:=CONFIG_HFSPLUS_FS
258 FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
259 AUTOLOAD:=$(call AutoLoad,30,hfsplus)
260 $(call AddDepends/nls,utf8)
261 endef
262
263 define KernelPackage/fs-hfsplus/description
264 Kernel module for HFS+ filesystem support
265 endef
266
267 $(eval $(call KernelPackage,fs-hfsplus))
268
269
270 define KernelPackage/fs-isofs
271 SUBMENU:=$(FS_MENU)
272 TITLE:=ISO9660 filesystem support
273 DEPENDS:=+kmod-lib-zlib-inflate
274 KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
275 FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
276 AUTOLOAD:=$(call AutoLoad,30,isofs)
277 $(call AddDepends/nls)
278 endef
279
280 define KernelPackage/fs-isofs/description
281 Kernel module for ISO9660 filesystem support
282 endef
283
284 $(eval $(call KernelPackage,fs-isofs))
285
286
287 define KernelPackage/fs-minix
288 SUBMENU:=$(FS_MENU)
289 TITLE:=Minix filesystem support
290 KCONFIG:=CONFIG_MINIX_FS
291 FILES:=$(LINUX_DIR)/fs/minix/minix.ko
292 AUTOLOAD:=$(call AutoLoad,30,minix)
293 endef
294
295 define KernelPackage/fs-minix/description
296 Kernel module for Minix filesystem support
297 endef
298
299 $(eval $(call KernelPackage,fs-minix))
300
301
302 define KernelPackage/fs-msdos
303 SUBMENU:=$(FS_MENU)
304 TITLE:=MSDOS filesystem support
305 DEPENDS:=+kmod-fs-vfat
306 KCONFIG:=CONFIG_MSDOS_FS
307 FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
308 AUTOLOAD:=$(call AutoLoad,40,msdos)
309 $(call AddDepends/nls)
310 endef
311
312 define KernelPackage/fs-msdos/description
313 Kernel module for MSDOS filesystem support
314 endef
315
316 $(eval $(call KernelPackage,fs-msdos))
317
318
319 define KernelPackage/fs-nfs
320 SUBMENU:=$(FS_MENU)
321 TITLE:=NFS filesystem client support
322 DEPENDS:=+kmod-fs-nfs-common +kmod-dnsresolver
323 KCONFIG:= \
324 CONFIG_NFS_FS \
325 CONFIG_NFS_USE_LEGACY_DNS=n \
326 CONFIG_NFS_USE_NEW_IDMAPPER=n
327 FILES:= \
328 $(LINUX_DIR)/fs/nfs/nfs.ko
329 AUTOLOAD:=$(call AutoLoad,40,nfs)
330 endef
331
332 define KernelPackage/fs-nfs/description
333 Kernel module for NFS client support
334 endef
335
336 $(eval $(call KernelPackage,fs-nfs))
337
338 define KernelPackage/fs-nfs-v3
339 SUBMENU:=$(FS_MENU)
340 TITLE:=NFS3 filesystem client support
341 DEPENDS:=+kmod-fs-nfs
342 FILES:= \
343 $(LINUX_DIR)/fs/nfs/nfsv3.ko
344 AUTOLOAD:=$(call AutoLoad,41,nfsv3)
345 endef
346
347 define KernelPackage/fs-nfs-v3/description
348 Kernel module for NFS v3 client support
349 endef
350
351 $(eval $(call KernelPackage,fs-nfs-v3))
352
353 define KernelPackage/fs-nfs-v4
354 SUBMENU:=$(FS_MENU)
355 TITLE:=NFS4 filesystem client support
356 DEPENDS:=+kmod-fs-nfs
357 KCONFIG:= \
358 CONFIG_NFS_V4=y
359 FILES:= \
360 $(LINUX_DIR)/fs/nfs/nfsv4.ko
361 AUTOLOAD:=$(call AutoLoad,41,nfsv4)
362 endef
363
364 define KernelPackage/fs-nfs-v4/description
365 Kernel module for NFS v4 support
366 endef
367
368 $(eval $(call KernelPackage,fs-nfs-v4))
369
370 define KernelPackage/fs-nfs-common
371 SUBMENU:=$(FS_MENU)
372 TITLE:=Common NFS filesystem modules
373 KCONFIG:= \
374 CONFIG_LOCKD \
375 CONFIG_SUNRPC \
376 CONFIG_GRACE_PERIOD
377 FILES:= \
378 $(LINUX_DIR)/fs/lockd/lockd.ko \
379 $(LINUX_DIR)/net/sunrpc/sunrpc.ko \
380 $(LINUX_DIR)/fs/nfs_common/grace.ko
381 AUTOLOAD:=$(call AutoLoad,30,grace sunrpc lockd)
382 endef
383
384 $(eval $(call KernelPackage,fs-nfs-common))
385
386
387 define KernelPackage/fs-nfs-common-rpcsec
388 SUBMENU:=$(FS_MENU)
389 TITLE:=NFS Secure RPC
390 DEPENDS:= \
391 +kmod-fs-nfs-common \
392 +kmod-crypto-des \
393 +kmod-crypto-cbc \
394 +kmod-crypto-cts \
395 +kmod-crypto-md5 \
396 +kmod-crypto-sha1 \
397 +kmod-crypto-hmac \
398 +kmod-crypto-ecb
399 KCONFIG:= \
400 CONFIG_SUNRPC_GSS \
401 CONFIG_RPCSEC_GSS_KRB5
402 FILES:= \
403 $(LINUX_DIR)/lib/oid_registry.ko \
404 $(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko \
405 $(LINUX_DIR)/net/sunrpc/auth_gss/rpcsec_gss_krb5.ko
406 AUTOLOAD:=$(call AutoLoad,31,oid_registry auth_rpcgss rpcsec_gss_krb5)
407 endef
408
409 define KernelPackage/fs-nfs-common-rpcsec/description
410 Kernel modules for NFS Secure RPC
411 endef
412
413 $(eval $(call KernelPackage,fs-nfs-common-rpcsec))
414
415
416 define KernelPackage/fs-nfsd
417 SUBMENU:=$(FS_MENU)
418 TITLE:=NFS kernel server support
419 DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs
420 KCONFIG:= \
421 CONFIG_NFSD \
422 CONFIG_NFSD_FAULT_INJECTION=n
423 FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
424 AUTOLOAD:=$(call AutoLoad,40,nfsd)
425 endef
426
427 define KernelPackage/fs-nfsd/description
428 Kernel module for NFS kernel server support
429 endef
430
431 $(eval $(call KernelPackage,fs-nfsd))
432
433
434 define KernelPackage/fs-ntfs
435 SUBMENU:=$(FS_MENU)
436 TITLE:=NTFS filesystem support
437 KCONFIG:=CONFIG_NTFS_FS
438 FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
439 AUTOLOAD:=$(call AutoLoad,30,ntfs)
440 $(call AddDepends/nls)
441 endef
442
443 define KernelPackage/fs-ntfs/description
444 Kernel module for NTFS filesystem support
445 endef
446
447 $(eval $(call KernelPackage,fs-ntfs))
448
449
450 define KernelPackage/fs-reiserfs
451 SUBMENU:=$(FS_MENU)
452 TITLE:=ReiserFS filesystem support
453 KCONFIG:=CONFIG_REISERFS_FS \
454 CONFIG_REISERFS_FS_XATTR=y
455 FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
456 AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
457 endef
458
459 define KernelPackage/fs-reiserfs/description
460 Kernel module for ReiserFS support
461 endef
462
463 $(eval $(call KernelPackage,fs-reiserfs))
464
465
466 define KernelPackage/fs-squashfs
467 SUBMENU:=$(FS_MENU)
468 TITLE:=SquashFS 4.0 filesystem support
469 KCONFIG:=CONFIG_SQUASHFS \
470 CONFIG_SQUASHFS_XZ=y
471 FILES:=$(LINUX_DIR)/fs/squashfs/squashfs.ko
472 AUTOLOAD:=$(call AutoLoad,30,squashfs,1)
473 endef
474
475 define KernelPackage/fs-squashfs/description
476 Kernel module for SquashFS 4.0 support
477 endef
478
479 $(eval $(call KernelPackage,fs-squashfs))
480
481
482 define KernelPackage/fs-udf
483 SUBMENU:=$(FS_MENU)
484 TITLE:=UDF filesystem support
485 KCONFIG:=CONFIG_UDF_FS
486 FILES:=$(LINUX_DIR)/fs/udf/udf.ko
487 AUTOLOAD:=$(call AutoLoad,30,udf)
488 DEPENDS:=+kmod-lib-crc-itu-t
489 $(call AddDepends/nls)
490 endef
491
492 define KernelPackage/fs-udf/description
493 Kernel module for UDF filesystem support
494 endef
495
496 $(eval $(call KernelPackage,fs-udf))
497
498
499 define KernelPackage/fs-vfat
500 SUBMENU:=$(FS_MENU)
501 TITLE:=VFAT filesystem support
502 KCONFIG:= \
503 CONFIG_FAT_FS \
504 CONFIG_VFAT_FS
505 FILES:= \
506 $(LINUX_DIR)/fs/fat/fat.ko \
507 $(LINUX_DIR)/fs/fat/vfat.ko
508 AUTOLOAD:=$(call AutoLoad,30,fat vfat)
509 $(call AddDepends/nls,cp437 iso8859-1 utf8)
510 endef
511
512 define KernelPackage/fs-vfat/description
513 Kernel module for VFAT filesystem support
514 endef
515
516 $(eval $(call KernelPackage,fs-vfat))
517
518
519 define KernelPackage/fs-xfs
520 SUBMENU:=$(FS_MENU)
521 TITLE:=XFS filesystem support
522 KCONFIG:=CONFIG_XFS_FS
523 DEPENDS:= +kmod-fs-exportfs +kmod-lib-crc32c
524 FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
525 AUTOLOAD:=$(call AutoLoad,30,xfs,1)
526 endef
527
528 define KernelPackage/fs-xfs/description
529 Kernel module for XFS support
530 endef
531
532 $(eval $(call KernelPackage,fs-xfs))
533
534
535 define KernelPackage/fs-jfs
536 SUBMENU:=$(FS_MENU)
537 TITLE:=JFS filesystem support
538 KCONFIG:=CONFIG_JFS_FS
539 FILES:=$(LINUX_DIR)/fs/jfs/jfs.ko
540 AUTOLOAD:=$(call AutoLoad,30,jfs,1)
541 $(call AddDepends/nls)
542 endef
543
544 define KernelPackage/fs-jfs/description
545 Kernel module for JFS support
546 endef
547
548 $(eval $(call KernelPackage,fs-jfs))