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