package/kernel: select crypto-sha256 for cifs on 3.7+
[openwrt.git] / package / kernel / 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-autofs4
11   SUBMENU:=$(FS_MENU)
12   TITLE:=AUTOFS4 filesystem support
13   KCONFIG:=CONFIG_AUTOFS4_FS 
14   FILES:=$(LINUX_DIR)/fs/autofs4/autofs4.ko
15   AUTOLOAD:=$(call AutoLoad,30,autofs4)
16 endef
17
18 define KernelPackage/fs-autofs4/description
19   Kernel module for AutoFS4 support
20 endef
21
22 $(eval $(call KernelPackage,fs-autofs4))
23
24
25 define KernelPackage/fs-btrfs
26   SUBMENU:=$(FS_MENU)
27   TITLE:=BTRFS filesystem support
28   DEPENDS:=+kmod-lib-crc32c +kmod-lib-lzo +kmod-lib-zlib
29   KCONFIG:=\
30         CONFIG_BTRFS_FS \
31         CONFIG_BTRFS_FS_POSIX_ACL=n \
32         CONFIG_BTRFS_FS_CHECK_INTEGRITY=n
33   FILES:=\
34         $(LINUX_DIR)/fs/btrfs/btrfs.ko
35   AUTOLOAD:=$(call AutoLoad,30,btrfs,1)
36 endef
37
38 define KernelPackage/fs-btrfs/description
39   Kernel module for BTRFS support
40 endef
41
42 $(eval $(call KernelPackage,fs-btrfs))
43
44
45 define KernelPackage/fs-cifs
46   SUBMENU:=$(FS_MENU)
47   TITLE:=CIFS support
48   KCONFIG:= \
49         CONFIG_CIFS \
50         CONFIG_CIFS_DFS_UPCALL=n \
51         CONFIG_CIFS_UPCALL=n
52   FILES:=$(LINUX_DIR)/fs/cifs/cifs.ko
53   AUTOLOAD:=$(call AutoLoad,30,cifs)
54   $(call AddDepends/nls)
55   DEPENDS+= \
56     +kmod-crypto-arc4 \
57     +kmod-crypto-hmac \
58     +kmod-crypto-md5 \
59     +kmod-crypto-md4 \
60     +kmod-crypto-des \
61     +kmod-crypto-ecb \
62     +!LINUX_3_3&&!LINUX_3_6:kmod-crypto-sha256
63 endef
64
65 define KernelPackage/fs-cifs/description
66  Kernel module for CIFS support
67 endef
68
69 $(eval $(call KernelPackage,fs-cifs))
70
71
72 define KernelPackage/fs-exportfs
73   SUBMENU:=$(FS_MENU)
74   TITLE:=exportfs kernel server support
75   KCONFIG:=CONFIG_EXPORTFS
76   FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
77   AUTOLOAD:=$(call AutoLoad,20,exportfs)
78 endef
79
80 define KernelPackage/fs-exportfs/description
81  Kernel module for exportfs. Needed for some other modules.
82 endef
83
84 $(eval $(call KernelPackage,fs-exportfs))
85
86
87 define KernelPackage/fs-ext4
88   SUBMENU:=$(FS_MENU)
89   TITLE:=EXT4 filesystem support
90   KCONFIG:= \
91         CONFIG_EXT4_FS \
92         CONFIG_JBD2
93   FILES:= \
94         $(LINUX_DIR)/fs/ext4/ext4.ko \
95         $(LINUX_DIR)/fs/jbd2/jbd2.ko \
96         $(LINUX_DIR)/fs/mbcache.ko
97   AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
98   $(call AddDepends/crc16, +!LINUX_3_3:kmod-crypto-hash)
99 endef
100
101 define KernelPackage/fs-ext4/description
102  Kernel module for EXT4 filesystem support
103 endef
104
105 $(eval $(call KernelPackage,fs-ext4))
106
107
108 define KernelPackage/fuse
109   SUBMENU:=$(FS_MENU)
110   TITLE:=FUSE (Filesystem in Userspace) support
111   KCONFIG:= CONFIG_FUSE_FS
112   FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
113   AUTOLOAD:=$(call AutoLoad,80,fuse)
114 endef
115
116 define KernelPackage/fuse/description
117  Kernel module for userspace filesystem support
118 endef
119
120 $(eval $(call KernelPackage,fuse))
121
122
123 define KernelPackage/fs-hfs
124   SUBMENU:=$(FS_MENU)
125   TITLE:=HFS+ filesystem support
126   KCONFIG:=CONFIG_HFS_FS
127   FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
128   AUTOLOAD:=$(call AutoLoad,30,hfs)
129   $(call AddDepends/nls)
130 endef
131
132 define KernelPackage/fs-hfs/description
133  Kernel module for HFS filesystem support
134 endef
135
136 $(eval $(call KernelPackage,fs-hfs))
137
138
139 define KernelPackage/fs-hfsplus
140   SUBMENU:=$(FS_MENU)
141   TITLE:=HFS+ filesystem support
142   KCONFIG:=CONFIG_HFSPLUS_FS
143   FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
144   AUTOLOAD:=$(call AutoLoad,30,hfsplus)
145   $(call AddDepends/nls,utf8)
146 endef
147
148 define KernelPackage/fs-hfsplus/description
149  Kernel module for HFS+ filesystem support
150 endef
151
152 $(eval $(call KernelPackage,fs-hfsplus))
153
154
155 define KernelPackage/fs-isofs
156   SUBMENU:=$(FS_MENU)
157   TITLE:=ISO9660 filesystem support
158   KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
159   FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
160   AUTOLOAD:=$(call AutoLoad,30,isofs)
161   $(call AddDepends/nls)
162 endef
163
164 define KernelPackage/fs-isofs/description
165  Kernel module for ISO9660 filesystem support
166 endef
167
168 $(eval $(call KernelPackage,fs-isofs))
169
170
171 define KernelPackage/fs-minix
172   SUBMENU:=$(FS_MENU)
173   TITLE:=Minix filesystem support
174   KCONFIG:=CONFIG_MINIX_FS
175   FILES:=$(LINUX_DIR)/fs/minix/minix.ko
176   AUTOLOAD:=$(call AutoLoad,30,minix)
177 endef
178
179 define KernelPackage/fs-minix/description
180  Kernel module for Minix filesystem support
181 endef
182
183 $(eval $(call KernelPackage,fs-minix))
184
185
186 define KernelPackage/fs-msdos
187   SUBMENU:=$(FS_MENU)
188   TITLE:=MSDOS filesystem support
189   KCONFIG:=CONFIG_MSDOS_FS
190   FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
191   AUTOLOAD:=$(call AutoLoad,40,msdos)
192   $(call AddDepends/nls)
193 endef
194
195 define KernelPackage/fs-msdos/description
196  Kernel module for MSDOS filesystem support
197 endef
198
199 $(eval $(call KernelPackage,fs-msdos))
200
201
202 define KernelPackage/fs-nfs
203   SUBMENU:=$(FS_MENU)
204   TITLE:=NFS filesystem support
205   DEPENDS:=+kmod-fs-nfs-common
206   KCONFIG:= \
207         CONFIG_NFS_FS \
208         CONFIG_NFS_USE_LEGACY_DNS=n \
209         CONFIG_NFS_USE_NEW_IDMAPPER=n
210   FILES:= \
211         $(LINUX_DIR)/fs/nfs/nfs.ko
212   AUTOLOAD:=$(call AutoLoad,40,nfs)
213 endef
214
215 define KernelPackage/fs-nfs/description
216  Kernel module for NFS support
217 endef
218
219 $(eval $(call KernelPackage,fs-nfs))
220
221
222 define KernelPackage/fs-nfs-common
223   SUBMENU:=$(FS_MENU)
224   TITLE:=Common NFS filesystem modules
225   KCONFIG:= \
226         CONFIG_LOCKD \
227         CONFIG_SUNRPC
228   FILES:= \
229         $(LINUX_DIR)/fs/lockd/lockd.ko \
230         $(LINUX_DIR)/net/sunrpc/sunrpc.ko
231   AUTOLOAD:=$(call AutoLoad,30,sunrpc lockd)
232 endef
233
234 $(eval $(call KernelPackage,fs-nfs-common))
235
236
237 define KernelPackage/fs-nfs-common-v4
238   SUBMENU:=$(FS_MENU)
239   TITLE:=Common NFS V4 filesystem modules
240   KCONFIG+=\
241         CONFIG_SUNRPC_GSS\
242         CONFIG_NFS_V4=y\
243         CONFIG_NFSD_V4=y
244   DEPENDS:= @BROKEN
245   FILES+=$(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko
246   AUTOLOAD=$(call AutoLoad,30,auth_rpcgss)
247 endef
248
249 define KernelPackage/fs-nfs-common-v4/description
250  Kernel modules for NFS V4 & NFSD V4 kernel support
251 endef
252
253 $(eval $(call KernelPackage,fs-nfs-common-v4))
254
255
256 define KernelPackage/fs-nfsd
257   SUBMENU:=$(FS_MENU)
258   TITLE:=NFS kernel server support
259   DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs
260   KCONFIG:= \
261         CONFIG_NFSD \
262         CONFIG_NFSD_FAULT_INJECTION=n
263   FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
264   AUTOLOAD:=$(call AutoLoad,40,nfsd)
265 endef
266
267 define KernelPackage/fs-nfsd/description
268  Kernel module for NFS kernel server support
269 endef
270
271 $(eval $(call KernelPackage,fs-nfsd))
272
273
274 define KernelPackage/fs-ntfs
275   SUBMENU:=$(FS_MENU)
276   TITLE:=NTFS filesystem support
277   KCONFIG:=CONFIG_NTFS_FS
278   FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
279   AUTOLOAD:=$(call AutoLoad,30,ntfs)
280   $(call AddDepends/nls)
281 endef
282
283 define KernelPackage/fs-ntfs/description
284  Kernel module for NTFS filesystem support
285 endef
286
287 $(eval $(call KernelPackage,fs-ntfs))
288
289
290 define KernelPackage/fs-reiserfs
291   SUBMENU:=$(FS_MENU)
292   TITLE:=ReiserFS filesystem support
293   KCONFIG:=CONFIG_REISERFS_FS
294   FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
295   AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
296 endef
297
298 define KernelPackage/fs-reiserfs/description
299  Kernel module for ReiserFS support
300 endef
301
302 $(eval $(call KernelPackage,fs-reiserfs))
303
304
305 define KernelPackage/fs-udf
306   SUBMENU:=$(FS_MENU)
307   TITLE:=UDF filesystem support
308   KCONFIG:=CONFIG_UDF_FS
309   FILES:=$(LINUX_DIR)/fs/udf/udf.ko
310   AUTOLOAD:=$(call AutoLoad,30,udf)
311   DEPENDS:=+kmod-lib-crc-itu-t
312   $(call AddDepends/nls)
313 endef
314
315 define KernelPackage/fs-udf/description
316  Kernel module for UDF filesystem support
317 endef
318
319 $(eval $(call KernelPackage,fs-udf))
320
321
322 define KernelPackage/fs-vfat
323   SUBMENU:=$(FS_MENU)
324   TITLE:=VFAT filesystem support
325   KCONFIG:= \
326         CONFIG_FAT_FS \
327         CONFIG_VFAT_FS
328   FILES:= \
329         $(LINUX_DIR)/fs/fat/fat.ko \
330         $(LINUX_DIR)/fs/fat/vfat.ko
331   AUTOLOAD:=$(call AutoLoad,30,fat vfat)
332   $(call AddDepends/nls)
333 endef
334
335 define KernelPackage/fs-vfat/description
336  Kernel module for VFAT filesystem support
337 endef
338
339 $(eval $(call KernelPackage,fs-vfat))
340
341
342 define KernelPackage/fs-xfs
343   SUBMENU:=$(FS_MENU)
344   TITLE:=XFS filesystem support
345   KCONFIG:=CONFIG_XFS_FS
346   DEPENDS:= +kmod-fs-exportfs @!avr32
347   FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
348   AUTOLOAD:=$(call AutoLoad,30,xfs,1)
349 endef
350
351 define KernelPackage/fs-xfs/description
352  Kernel module for XFS support
353 endef
354
355 $(eval $(call KernelPackage,fs-xfs))