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