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