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