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