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