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