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