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