fs: add kernel modules for AFS client
[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-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
125 define KernelPackage/fs-exportfs
126   SUBMENU:=$(FS_MENU)
127   TITLE:=exportfs kernel server support
128   KCONFIG:=CONFIG_EXPORTFS
129   FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
130   AUTOLOAD:=$(call AutoLoad,20,exportfs,1)
131 endef
132
133 define KernelPackage/fs-exportfs/description
134  Kernel module for exportfs. Needed for some other modules.
135 endef
136
137 $(eval $(call KernelPackage,fs-exportfs))
138
139
140 define KernelPackage/fs-ext4
141   SUBMENU:=$(FS_MENU)
142   TITLE:=EXT4 filesystem support
143   KCONFIG:= \
144         CONFIG_EXT4_FS \
145         CONFIG_JBD2
146   FILES:= \
147         $(LINUX_DIR)/fs/ext4/ext4.ko \
148         $(LINUX_DIR)/fs/jbd2/jbd2.ko \
149         $(LINUX_DIR)/fs/mbcache.ko
150   AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
151   $(call AddDepends/crc16, +!LINUX_3_3:kmod-crypto-hash)
152 endef
153
154 define KernelPackage/fs-ext4/description
155  Kernel module for EXT4 filesystem support
156 endef
157
158 $(eval $(call KernelPackage,fs-ext4))
159
160
161 define KernelPackage/fuse
162   SUBMENU:=$(FS_MENU)
163   TITLE:=FUSE (Filesystem in Userspace) support
164   KCONFIG:= CONFIG_FUSE_FS
165   FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
166   AUTOLOAD:=$(call AutoLoad,80,fuse)
167 endef
168
169 define KernelPackage/fuse/description
170  Kernel module for userspace filesystem support
171 endef
172
173 $(eval $(call KernelPackage,fuse))
174
175
176 define KernelPackage/fs-hfs
177   SUBMENU:=$(FS_MENU)
178   TITLE:=HFS filesystem support
179   KCONFIG:=CONFIG_HFS_FS
180   FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
181   AUTOLOAD:=$(call AutoLoad,30,hfs)
182   $(call AddDepends/nls)
183 endef
184
185 define KernelPackage/fs-hfs/description
186  Kernel module for HFS filesystem support
187 endef
188
189 $(eval $(call KernelPackage,fs-hfs))
190
191
192 define KernelPackage/fs-hfsplus
193   SUBMENU:=$(FS_MENU)
194   TITLE:=HFS+ filesystem support
195   KCONFIG:=CONFIG_HFSPLUS_FS
196   FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
197   AUTOLOAD:=$(call AutoLoad,30,hfsplus)
198   $(call AddDepends/nls,utf8)
199 endef
200
201 define KernelPackage/fs-hfsplus/description
202  Kernel module for HFS+ filesystem support
203 endef
204
205 $(eval $(call KernelPackage,fs-hfsplus))
206
207
208 define KernelPackage/fs-isofs
209   SUBMENU:=$(FS_MENU)
210   TITLE:=ISO9660 filesystem support
211   DEPENDS:=+kmod-lib-zlib
212   KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
213   FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
214   AUTOLOAD:=$(call AutoLoad,30,isofs)
215   $(call AddDepends/nls)
216 endef
217
218 define KernelPackage/fs-isofs/description
219  Kernel module for ISO9660 filesystem support
220 endef
221
222 $(eval $(call KernelPackage,fs-isofs))
223
224
225 define KernelPackage/fs-minix
226   SUBMENU:=$(FS_MENU)
227   TITLE:=Minix filesystem support
228   KCONFIG:=CONFIG_MINIX_FS
229   FILES:=$(LINUX_DIR)/fs/minix/minix.ko
230   AUTOLOAD:=$(call AutoLoad,30,minix)
231 endef
232
233 define KernelPackage/fs-minix/description
234  Kernel module for Minix filesystem support
235 endef
236
237 $(eval $(call KernelPackage,fs-minix))
238
239
240 define KernelPackage/fs-msdos
241   SUBMENU:=$(FS_MENU)
242   TITLE:=MSDOS filesystem support
243   DEPENDS:=+kmod-fs-vfat
244   KCONFIG:=CONFIG_MSDOS_FS
245   FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
246   AUTOLOAD:=$(call AutoLoad,40,msdos)
247   $(call AddDepends/nls)
248 endef
249
250 define KernelPackage/fs-msdos/description
251  Kernel module for MSDOS filesystem support
252 endef
253
254 $(eval $(call KernelPackage,fs-msdos))
255
256
257 define KernelPackage/fs-nfs
258   SUBMENU:=$(FS_MENU)
259   TITLE:=NFS filesystem support
260   DEPENDS:=+kmod-fs-nfs-common
261   KCONFIG:= \
262         CONFIG_NFS_FS \
263         CONFIG_NFS_USE_LEGACY_DNS=n \
264         CONFIG_NFS_USE_NEW_IDMAPPER=n
265 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.6.0)),1)
266   FILES:= \
267         $(LINUX_DIR)/fs/nfs/nfs.ko \
268         $(LINUX_DIR)/fs/nfs/nfsv3.ko
269 else
270   FILES:= \
271         $(LINUX_DIR)/fs/nfs/nfs.ko
272 endif
273   AUTOLOAD:=$(call AutoLoad,40,nfs nfsv3)
274 endef
275
276 define KernelPackage/fs-nfs/description
277  Kernel module for NFS support
278 endef
279
280 $(eval $(call KernelPackage,fs-nfs))
281
282
283 define KernelPackage/fs-nfs-common
284   SUBMENU:=$(FS_MENU)
285   TITLE:=Common NFS filesystem modules
286   KCONFIG:= \
287         CONFIG_LOCKD \
288         CONFIG_SUNRPC
289   FILES:= \
290         $(LINUX_DIR)/fs/lockd/lockd.ko \
291         $(LINUX_DIR)/net/sunrpc/sunrpc.ko
292   AUTOLOAD:=$(call AutoLoad,30,sunrpc lockd)
293 endef
294
295 $(eval $(call KernelPackage,fs-nfs-common))
296
297
298 define KernelPackage/fs-nfs-common-v4
299   SUBMENU:=$(FS_MENU)
300   TITLE:=Common NFS V4 filesystem modules
301   KCONFIG+=\
302         CONFIG_SUNRPC_GSS\
303         CONFIG_NFS_V4=y\
304         CONFIG_NFSD_V4=y
305   DEPENDS:= @BROKEN
306   FILES+=$(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko
307   AUTOLOAD=$(call AutoLoad,30,auth_rpcgss)
308 endef
309
310 define KernelPackage/fs-nfs-common-v4/description
311  Kernel modules for NFS V4 & NFSD V4 kernel support
312 endef
313
314 $(eval $(call KernelPackage,fs-nfs-common-v4))
315
316
317 define KernelPackage/fs-nfsd
318   SUBMENU:=$(FS_MENU)
319   TITLE:=NFS kernel server support
320   DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs
321   KCONFIG:= \
322         CONFIG_NFSD \
323         CONFIG_NFSD_FAULT_INJECTION=n
324   FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
325   AUTOLOAD:=$(call AutoLoad,40,nfsd)
326 endef
327
328 define KernelPackage/fs-nfsd/description
329  Kernel module for NFS kernel server support
330 endef
331
332 $(eval $(call KernelPackage,fs-nfsd))
333
334
335 define KernelPackage/fs-ntfs
336   SUBMENU:=$(FS_MENU)
337   TITLE:=NTFS filesystem support
338   KCONFIG:=CONFIG_NTFS_FS
339   FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
340   AUTOLOAD:=$(call AutoLoad,30,ntfs)
341   $(call AddDepends/nls)
342 endef
343
344 define KernelPackage/fs-ntfs/description
345  Kernel module for NTFS filesystem support
346 endef
347
348 $(eval $(call KernelPackage,fs-ntfs))
349
350
351 define KernelPackage/fs-reiserfs
352   SUBMENU:=$(FS_MENU)
353   TITLE:=ReiserFS filesystem support
354   KCONFIG:=CONFIG_REISERFS_FS
355   FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
356   AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
357 endef
358
359 define KernelPackage/fs-reiserfs/description
360  Kernel module for ReiserFS support
361 endef
362
363 $(eval $(call KernelPackage,fs-reiserfs))
364
365
366 define KernelPackage/fs-udf
367   SUBMENU:=$(FS_MENU)
368   TITLE:=UDF filesystem support
369   KCONFIG:=CONFIG_UDF_FS
370   FILES:=$(LINUX_DIR)/fs/udf/udf.ko
371   AUTOLOAD:=$(call AutoLoad,30,udf)
372   DEPENDS:=+kmod-lib-crc-itu-t
373   $(call AddDepends/nls)
374 endef
375
376 define KernelPackage/fs-udf/description
377  Kernel module for UDF filesystem support
378 endef
379
380 $(eval $(call KernelPackage,fs-udf))
381
382
383 define KernelPackage/fs-vfat
384   SUBMENU:=$(FS_MENU)
385   TITLE:=VFAT filesystem support
386   KCONFIG:= \
387         CONFIG_FAT_FS \
388         CONFIG_VFAT_FS
389   FILES:= \
390         $(LINUX_DIR)/fs/fat/fat.ko \
391         $(LINUX_DIR)/fs/fat/vfat.ko
392   AUTOLOAD:=$(call AutoLoad,30,fat vfat)
393   $(call AddDepends/nls)
394 endef
395
396 define KernelPackage/fs-vfat/description
397  Kernel module for VFAT filesystem support
398 endef
399
400 $(eval $(call KernelPackage,fs-vfat))
401
402
403 define KernelPackage/fs-xfs
404   SUBMENU:=$(FS_MENU)
405   TITLE:=XFS filesystem support
406   KCONFIG:=CONFIG_XFS_FS
407   DEPENDS:= +kmod-fs-exportfs +kmod-lib-crc32c @!avr32
408   FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
409   AUTOLOAD:=$(call AutoLoad,30,xfs,1)
410 endef
411
412 define KernelPackage/fs-xfs/description
413  Kernel module for XFS support
414 endef
415
416 $(eval $(call KernelPackage,fs-xfs))
417
418
419 define KernelPackage/fs-jfs
420   SUBMENU:=$(FS_MENU)
421   TITLE:=JFS filesystem support
422   KCONFIG:=CONFIG_JFS_FS
423   FILES:=$(LINUX_DIR)/fs/jfs/jfs.ko
424   AUTOLOAD:=$(call AutoLoad,30,jfs,1)
425   $(call AddDepends/nls)
426 endef
427
428 define KernelPackage/fs-jfs/description
429  Kernel module for JFS support
430 endef
431
432 $(eval $(call KernelPackage,fs-jfs))