e8e1f80da0d43d72e084816203120a60676de960
[openwrt/staging/dedeckeh.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 FILES:=$(LINUX_DIR)/fs/9p/9p.ko
38 AUTOLOAD:=$(call AutoLoad,30,9p)
39 endef
40
41 define KernelPackage/fs-9p/description
42 Kernel module for Plan 9 Resource Sharing Support support
43 endef
44
45 $(eval $(call KernelPackage,fs-9p))
46
47 define KernelPackage/fs-afs
48 SUBMENU:=$(FS_MENU)
49 TITLE:=Andrew FileSystem client
50 DEFAULT:=n
51 DEPENDS:=+kmod-rxrpc +kmod-dnsresolver +kmod-fs-fscache
52 KCONFIG:=\
53 CONFIG_AFS_FS=m \
54 CONFIG_AFS_DEBUG=n \
55 CONFIG_AFS_FSCACHE=y
56 FILES:=$(LINUX_DIR)/fs/afs/kafs.ko
57 AUTOLOAD:=$(call AutoLoad,30,kafs)
58 endef
59
60 define KernelPackage/fs-afs/description
61 Kernel module for Andrew FileSystem client support
62 endef
63
64 $(eval $(call KernelPackage,fs-afs))
65
66 define KernelPackage/fs-autofs4
67 SUBMENU:=$(FS_MENU)
68 TITLE:=AUTOFS4 filesystem support
69 KCONFIG:=CONFIG_AUTOFS4_FS
70 FILES:=$(LINUX_DIR)/fs/autofs4/autofs4.ko
71 AUTOLOAD:=$(call AutoLoad,30,autofs4)
72 endef
73
74 define KernelPackage/fs-autofs4/description
75 Kernel module for AutoFS4 support
76 endef
77
78 $(eval $(call KernelPackage,fs-autofs4))
79
80
81 define KernelPackage/fs-btrfs
82 SUBMENU:=$(FS_MENU)
83 TITLE:=BTRFS filesystem support
84 DEPENDS:=+kmod-lib-crc32c +kmod-lib-lzo +kmod-lib-zlib +kmod-lib-raid6 +kmod-lib-xor
85 KCONFIG:=\
86 CONFIG_BTRFS_FS \
87 CONFIG_BTRFS_FS_POSIX_ACL=n \
88 CONFIG_BTRFS_FS_CHECK_INTEGRITY=n
89 FILES:=\
90 $(LINUX_DIR)/fs/btrfs/btrfs.ko
91 AUTOLOAD:=$(call AutoLoad,30,btrfs,1)
92 endef
93
94 define KernelPackage/fs-btrfs/description
95 Kernel module for BTRFS support
96 endef
97
98 $(eval $(call KernelPackage,fs-btrfs))
99
100
101 define KernelPackage/fs-cifs
102 SUBMENU:=$(FS_MENU)
103 TITLE:=CIFS support
104 KCONFIG:= \
105 CONFIG_CIFS \
106 CONFIG_CIFS_XATTR=y \
107 CONFIG_CIFS_DFS_UPCALL=n \
108 CONFIG_CIFS_UPCALL=n
109 FILES:=$(LINUX_DIR)/fs/cifs/cifs.ko
110 AUTOLOAD:=$(call AutoLoad,30,cifs)
111 $(call AddDepends/nls)
112 DEPENDS+= \
113 +kmod-crypto-hmac \
114 +kmod-crypto-md5 \
115 +kmod-crypto-md4 \
116 +kmod-crypto-des \
117 +kmod-crypto-ecb \
118 +kmod-crypto-sha256
119 endef
120
121 define KernelPackage/fs-cifs/description
122 Kernel module for CIFS support
123 endef
124
125 $(eval $(call KernelPackage,fs-cifs))
126
127
128 define KernelPackage/fs-configfs
129 SUBMENU:=$(FS_MENU)
130 TITLE:=Configuration filesystem support
131 KCONFIG:= \
132 CONFIG_CONFIGFS_FS
133 FILES:=$(LINUX_DIR)/fs/configfs/configfs.ko
134 AUTOLOAD:=$(call AutoLoad,30,configfs)
135 endef
136
137 define KernelPackage/fs-configfs/description
138 Kernel module for configfs support
139 endef
140
141 $(eval $(call KernelPackage,fs-configfs))
142
143 define KernelPackage/fs-cramfs
144 SUBMENU:=$(FS_MENU)
145 TITLE:=Compressed RAM/ROM filesystem support
146 DEPENDS:=+kmod-lib-zlib
147 KCONFIG:= \
148 CONFIG_CRAMFS
149 FILES:=$(LINUX_DIR)/fs/cramfs/cramfs.ko
150 AUTOLOAD:=$(call AutoLoad,30,cramfs)
151 endef
152
153 define KernelPackage/fs-cramfs/description
154 Kernel module for cramfs support
155 endef
156
157 $(eval $(call KernelPackage,fs-cramfs))
158
159 define KernelPackage/fs-exportfs
160 SUBMENU:=$(FS_MENU)
161 TITLE:=exportfs kernel server support
162 KCONFIG:=CONFIG_EXPORTFS
163 FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
164 AUTOLOAD:=$(call AutoLoad,20,exportfs,1)
165 endef
166
167 define KernelPackage/fs-exportfs/description
168 Kernel module for exportfs. Needed for some other modules.
169 endef
170
171 $(eval $(call KernelPackage,fs-exportfs))
172
173
174 define KernelPackage/fs-ext4
175 SUBMENU:=$(FS_MENU)
176 TITLE:=EXT4 filesystem support
177 DEPENDS := \
178 +kmod-lib-crc16 \
179 +kmod-crypto-hash
180 KCONFIG:= \
181 CONFIG_EXT4_FS \
182 CONFIG_EXT4_ENCRYPTION=n \
183 CONFIG_JBD2
184 FILES:= \
185 $(LINUX_DIR)/fs/ext4/ext4.ko \
186 $(LINUX_DIR)/fs/jbd2/jbd2.ko \
187 $(LINUX_DIR)/fs/mbcache.ko
188 AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
189 endef
190
191 define KernelPackage/fs-ext4/description
192 Kernel module for EXT4 filesystem support
193 endef
194
195 $(eval $(call KernelPackage,fs-ext4))
196
197
198 define KernelPackage/fs-f2fs
199 SUBMENU:=$(FS_MENU)
200 TITLE:=F2FS filesystem support
201 KCONFIG:= \
202 CONFIG_F2FS_FS \
203 CONFIG_F2FS_STAT_FS=y \
204 CONFIG_F2FS_FS_XATTR=y \
205 CONFIG_F2FS_FS_POSIX_ACL=n \
206 CONFIG_F2FS_FS_SECURITY=n \
207 CONFIG_F2FS_CHECK_FS=n
208 FILES:=$(LINUX_DIR)/fs/f2fs/f2fs.ko
209 AUTOLOAD:=$(call AutoLoad,30,f2fs,1)
210 endef
211
212 define KernelPackage/fs-f2fs/description
213 Kernel module for F2FS filesystem support
214 endef
215
216 $(eval $(call KernelPackage,fs-f2fs))
217
218
219 define KernelPackage/fuse
220 SUBMENU:=$(FS_MENU)
221 TITLE:=FUSE (Filesystem in Userspace) support
222 KCONFIG:= CONFIG_FUSE_FS
223 FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
224 AUTOLOAD:=$(call AutoLoad,80,fuse)
225 endef
226
227 define KernelPackage/fuse/description
228 Kernel module for userspace filesystem support
229 endef
230
231 $(eval $(call KernelPackage,fuse))
232
233
234 define KernelPackage/fs-hfs
235 SUBMENU:=$(FS_MENU)
236 TITLE:=HFS filesystem support
237 KCONFIG:=CONFIG_HFS_FS
238 FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
239 AUTOLOAD:=$(call AutoLoad,30,hfs)
240 $(call AddDepends/nls)
241 endef
242
243 define KernelPackage/fs-hfs/description
244 Kernel module for HFS filesystem support
245 endef
246
247 $(eval $(call KernelPackage,fs-hfs))
248
249
250 define KernelPackage/fs-hfsplus
251 SUBMENU:=$(FS_MENU)
252 TITLE:=HFS+ filesystem support
253 KCONFIG:=CONFIG_HFSPLUS_FS
254 FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
255 AUTOLOAD:=$(call AutoLoad,30,hfsplus)
256 $(call AddDepends/nls,utf8)
257 endef
258
259 define KernelPackage/fs-hfsplus/description
260 Kernel module for HFS+ filesystem support
261 endef
262
263 $(eval $(call KernelPackage,fs-hfsplus))
264
265
266 define KernelPackage/fs-isofs
267 SUBMENU:=$(FS_MENU)
268 TITLE:=ISO9660 filesystem support
269 DEPENDS:=+kmod-lib-zlib
270 KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
271 FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
272 AUTOLOAD:=$(call AutoLoad,30,isofs)
273 $(call AddDepends/nls)
274 endef
275
276 define KernelPackage/fs-isofs/description
277 Kernel module for ISO9660 filesystem support
278 endef
279
280 $(eval $(call KernelPackage,fs-isofs))
281
282
283 define KernelPackage/fs-minix
284 SUBMENU:=$(FS_MENU)
285 TITLE:=Minix filesystem support
286 KCONFIG:=CONFIG_MINIX_FS
287 FILES:=$(LINUX_DIR)/fs/minix/minix.ko
288 AUTOLOAD:=$(call AutoLoad,30,minix)
289 endef
290
291 define KernelPackage/fs-minix/description
292 Kernel module for Minix filesystem support
293 endef
294
295 $(eval $(call KernelPackage,fs-minix))
296
297
298 define KernelPackage/fs-msdos
299 SUBMENU:=$(FS_MENU)
300 TITLE:=MSDOS filesystem support
301 DEPENDS:=+kmod-fs-vfat
302 KCONFIG:=CONFIG_MSDOS_FS
303 FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
304 AUTOLOAD:=$(call AutoLoad,40,msdos)
305 $(call AddDepends/nls)
306 endef
307
308 define KernelPackage/fs-msdos/description
309 Kernel module for MSDOS filesystem support
310 endef
311
312 $(eval $(call KernelPackage,fs-msdos))
313
314
315 define KernelPackage/fs-nfs
316 SUBMENU:=$(FS_MENU)
317 TITLE:=NFS filesystem support
318 DEPENDS:=+kmod-fs-nfs-common +kmod-dnsresolver
319 KCONFIG:= \
320 CONFIG_NFS_FS \
321 CONFIG_NFS_USE_LEGACY_DNS=n \
322 CONFIG_NFS_USE_NEW_IDMAPPER=n
323 FILES:= \
324 $(LINUX_DIR)/fs/nfs/nfs.ko \
325 $(LINUX_DIR)/fs/nfs/nfsv3.ko
326 AUTOLOAD:=$(call AutoLoad,40,nfs nfsv3)
327 endef
328
329 define KernelPackage/fs-nfs/description
330 Kernel module for NFS support
331 endef
332
333 $(eval $(call KernelPackage,fs-nfs))
334
335
336 define KernelPackage/fs-nfs-common
337 SUBMENU:=$(FS_MENU)
338 TITLE:=Common NFS filesystem modules
339 KCONFIG:= \
340 CONFIG_LOCKD \
341 CONFIG_SUNRPC \
342 CONFIG_GRACE_PERIOD
343 FILES:= \
344 $(LINUX_DIR)/fs/lockd/lockd.ko \
345 $(LINUX_DIR)/net/sunrpc/sunrpc.ko \
346 $(LINUX_DIR)/fs/nfs_common/grace.ko
347 AUTOLOAD:=$(call AutoLoad,30,grace sunrpc lockd)
348 endef
349
350 $(eval $(call KernelPackage,fs-nfs-common))
351
352
353 define KernelPackage/fs-nfs-common-v4
354 SUBMENU:=$(FS_MENU)
355 TITLE:=Common NFS V4 filesystem modules
356 KCONFIG+=\
357 CONFIG_SUNRPC_GSS\
358 CONFIG_NFS_V4=y\
359 CONFIG_NFSD_V4=y
360 DEPENDS:= @BROKEN
361 FILES+=$(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko
362 AUTOLOAD=$(call AutoLoad,30,auth_rpcgss)
363 endef
364
365 define KernelPackage/fs-nfs-common-v4/description
366 Kernel modules for NFS V4 & NFSD V4 kernel support
367 endef
368
369 $(eval $(call KernelPackage,fs-nfs-common-v4))
370
371
372 define KernelPackage/fs-nfsd
373 SUBMENU:=$(FS_MENU)
374 TITLE:=NFS kernel server support
375 DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs
376 KCONFIG:= \
377 CONFIG_NFSD \
378 CONFIG_NFSD_FAULT_INJECTION=n
379 FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
380 AUTOLOAD:=$(call AutoLoad,40,nfsd)
381 endef
382
383 define KernelPackage/fs-nfsd/description
384 Kernel module for NFS kernel server support
385 endef
386
387 $(eval $(call KernelPackage,fs-nfsd))
388
389
390 define KernelPackage/fs-ntfs
391 SUBMENU:=$(FS_MENU)
392 TITLE:=NTFS filesystem support
393 KCONFIG:=CONFIG_NTFS_FS
394 FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
395 AUTOLOAD:=$(call AutoLoad,30,ntfs)
396 $(call AddDepends/nls)
397 endef
398
399 define KernelPackage/fs-ntfs/description
400 Kernel module for NTFS filesystem support
401 endef
402
403 $(eval $(call KernelPackage,fs-ntfs))
404
405
406 define KernelPackage/fs-reiserfs
407 SUBMENU:=$(FS_MENU)
408 TITLE:=ReiserFS filesystem support
409 KCONFIG:=CONFIG_REISERFS_FS \
410 CONFIG_REISERFS_FS_XATTR=y
411 FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
412 AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
413 endef
414
415 define KernelPackage/fs-reiserfs/description
416 Kernel module for ReiserFS support
417 endef
418
419 $(eval $(call KernelPackage,fs-reiserfs))
420
421
422 define KernelPackage/fs-udf
423 SUBMENU:=$(FS_MENU)
424 TITLE:=UDF filesystem support
425 KCONFIG:=CONFIG_UDF_FS
426 FILES:=$(LINUX_DIR)/fs/udf/udf.ko
427 AUTOLOAD:=$(call AutoLoad,30,udf)
428 DEPENDS:=+kmod-lib-crc-itu-t
429 $(call AddDepends/nls)
430 endef
431
432 define KernelPackage/fs-udf/description
433 Kernel module for UDF filesystem support
434 endef
435
436 $(eval $(call KernelPackage,fs-udf))
437
438
439 define KernelPackage/fs-vfat
440 SUBMENU:=$(FS_MENU)
441 TITLE:=VFAT filesystem support
442 KCONFIG:= \
443 CONFIG_FAT_FS \
444 CONFIG_VFAT_FS
445 FILES:= \
446 $(LINUX_DIR)/fs/fat/fat.ko \
447 $(LINUX_DIR)/fs/fat/vfat.ko
448 AUTOLOAD:=$(call AutoLoad,30,fat vfat)
449 $(call AddDepends/nls)
450 endef
451
452 define KernelPackage/fs-vfat/description
453 Kernel module for VFAT filesystem support
454 endef
455
456 $(eval $(call KernelPackage,fs-vfat))
457
458
459 define KernelPackage/fs-xfs
460 SUBMENU:=$(FS_MENU)
461 TITLE:=XFS filesystem support
462 KCONFIG:=CONFIG_XFS_FS
463 DEPENDS:= +kmod-fs-exportfs +kmod-lib-crc32c
464 FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
465 AUTOLOAD:=$(call AutoLoad,30,xfs,1)
466 endef
467
468 define KernelPackage/fs-xfs/description
469 Kernel module for XFS support
470 endef
471
472 $(eval $(call KernelPackage,fs-xfs))
473
474
475 define KernelPackage/fs-jfs
476 SUBMENU:=$(FS_MENU)
477 TITLE:=JFS filesystem support
478 KCONFIG:=CONFIG_JFS_FS
479 FILES:=$(LINUX_DIR)/fs/jfs/jfs.ko
480 AUTOLOAD:=$(call AutoLoad,30,jfs,1)
481 $(call AddDepends/nls)
482 endef
483
484 define KernelPackage/fs-jfs/description
485 Kernel module for JFS support
486 endef
487
488 $(eval $(call KernelPackage,fs-jfs))