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