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