kernel: negate kernel version dependencies to fix config for new kernel versions
[openwrt/svn-archive/archive.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-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 +(!LINUX_3_3&&!LINUX_3_6&&!LINUX_3_8):kmod-lib-raid6 +(!LINUX_3_3&&!LINUX_3_6&&!LINUX_3_8):kmod-lib-xor
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-configfs
73 SUBMENU:=$(FS_MENU)
74 TITLE:=Configuration filesystem support
75 KCONFIG:= \
76 CONFIG_CONFIGFS_FS
77 FILES:=$(LINUX_DIR)/fs/configfs/configfs.ko
78 AUTOLOAD:=$(call AutoLoad,30,configfs)
79 endef
80
81 define KernelPackage/fs-configfs/description
82 Kernel module for configfs support
83 endef
84
85 $(eval $(call KernelPackage,fs-configfs))
86
87
88 define KernelPackage/fs-exportfs
89 SUBMENU:=$(FS_MENU)
90 TITLE:=exportfs kernel server support
91 KCONFIG:=CONFIG_EXPORTFS
92 FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
93 AUTOLOAD:=$(call AutoLoad,20,exportfs,1)
94 endef
95
96 define KernelPackage/fs-exportfs/description
97 Kernel module for exportfs. Needed for some other modules.
98 endef
99
100 $(eval $(call KernelPackage,fs-exportfs))
101
102
103 define KernelPackage/fs-ext4
104 SUBMENU:=$(FS_MENU)
105 TITLE:=EXT4 filesystem support
106 KCONFIG:= \
107 CONFIG_EXT4_FS \
108 CONFIG_JBD2
109 FILES:= \
110 $(LINUX_DIR)/fs/ext4/ext4.ko \
111 $(LINUX_DIR)/fs/jbd2/jbd2.ko \
112 $(LINUX_DIR)/fs/mbcache.ko
113 AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
114 $(call AddDepends/crc16, +!LINUX_3_3:kmod-crypto-hash)
115 endef
116
117 define KernelPackage/fs-ext4/description
118 Kernel module for EXT4 filesystem support
119 endef
120
121 $(eval $(call KernelPackage,fs-ext4))
122
123
124 define KernelPackage/fuse
125 SUBMENU:=$(FS_MENU)
126 TITLE:=FUSE (Filesystem in Userspace) support
127 KCONFIG:= CONFIG_FUSE_FS
128 FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
129 AUTOLOAD:=$(call AutoLoad,80,fuse)
130 endef
131
132 define KernelPackage/fuse/description
133 Kernel module for userspace filesystem support
134 endef
135
136 $(eval $(call KernelPackage,fuse))
137
138
139 define KernelPackage/fs-hfs
140 SUBMENU:=$(FS_MENU)
141 TITLE:=HFS filesystem support
142 KCONFIG:=CONFIG_HFS_FS
143 FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
144 AUTOLOAD:=$(call AutoLoad,30,hfs)
145 $(call AddDepends/nls)
146 endef
147
148 define KernelPackage/fs-hfs/description
149 Kernel module for HFS filesystem support
150 endef
151
152 $(eval $(call KernelPackage,fs-hfs))
153
154
155 define KernelPackage/fs-hfsplus
156 SUBMENU:=$(FS_MENU)
157 TITLE:=HFS+ filesystem support
158 KCONFIG:=CONFIG_HFSPLUS_FS
159 FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
160 AUTOLOAD:=$(call AutoLoad,30,hfsplus)
161 $(call AddDepends/nls,utf8)
162 endef
163
164 define KernelPackage/fs-hfsplus/description
165 Kernel module for HFS+ filesystem support
166 endef
167
168 $(eval $(call KernelPackage,fs-hfsplus))
169
170
171 define KernelPackage/fs-isofs
172 SUBMENU:=$(FS_MENU)
173 TITLE:=ISO9660 filesystem support
174 DEPENDS:=+kmod-lib-zlib
175 KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
176 FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
177 AUTOLOAD:=$(call AutoLoad,30,isofs)
178 $(call AddDepends/nls)
179 endef
180
181 define KernelPackage/fs-isofs/description
182 Kernel module for ISO9660 filesystem support
183 endef
184
185 $(eval $(call KernelPackage,fs-isofs))
186
187
188 define KernelPackage/fs-minix
189 SUBMENU:=$(FS_MENU)
190 TITLE:=Minix filesystem support
191 KCONFIG:=CONFIG_MINIX_FS
192 FILES:=$(LINUX_DIR)/fs/minix/minix.ko
193 AUTOLOAD:=$(call AutoLoad,30,minix)
194 endef
195
196 define KernelPackage/fs-minix/description
197 Kernel module for Minix filesystem support
198 endef
199
200 $(eval $(call KernelPackage,fs-minix))
201
202
203 define KernelPackage/fs-msdos
204 SUBMENU:=$(FS_MENU)
205 TITLE:=MSDOS filesystem support
206 DEPENDS:=+kmod-fs-vfat
207 KCONFIG:=CONFIG_MSDOS_FS
208 FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
209 AUTOLOAD:=$(call AutoLoad,40,msdos)
210 $(call AddDepends/nls)
211 endef
212
213 define KernelPackage/fs-msdos/description
214 Kernel module for MSDOS filesystem support
215 endef
216
217 $(eval $(call KernelPackage,fs-msdos))
218
219
220 define KernelPackage/fs-nfs
221 SUBMENU:=$(FS_MENU)
222 TITLE:=NFS filesystem support
223 DEPENDS:=+kmod-fs-nfs-common
224 KCONFIG:= \
225 CONFIG_NFS_FS \
226 CONFIG_NFS_USE_LEGACY_DNS=n \
227 CONFIG_NFS_USE_NEW_IDMAPPER=n
228 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.6.0)),1)
229 FILES:= \
230 $(LINUX_DIR)/fs/nfs/nfs.ko \
231 $(LINUX_DIR)/fs/nfs/nfsv3.ko
232 else
233 FILES:= \
234 $(LINUX_DIR)/fs/nfs/nfs.ko
235 endif
236 AUTOLOAD:=$(call AutoLoad,40,nfs nfsv3)
237 endef
238
239 define KernelPackage/fs-nfs/description
240 Kernel module for NFS support
241 endef
242
243 $(eval $(call KernelPackage,fs-nfs))
244
245
246 define KernelPackage/fs-nfs-common
247 SUBMENU:=$(FS_MENU)
248 TITLE:=Common NFS filesystem modules
249 KCONFIG:= \
250 CONFIG_LOCKD \
251 CONFIG_SUNRPC
252 FILES:= \
253 $(LINUX_DIR)/fs/lockd/lockd.ko \
254 $(LINUX_DIR)/net/sunrpc/sunrpc.ko
255 AUTOLOAD:=$(call AutoLoad,30,sunrpc lockd)
256 endef
257
258 $(eval $(call KernelPackage,fs-nfs-common))
259
260
261 define KernelPackage/fs-nfs-common-v4
262 SUBMENU:=$(FS_MENU)
263 TITLE:=Common NFS V4 filesystem modules
264 KCONFIG+=\
265 CONFIG_SUNRPC_GSS\
266 CONFIG_NFS_V4=y\
267 CONFIG_NFSD_V4=y
268 DEPENDS:= @BROKEN
269 FILES+=$(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko
270 AUTOLOAD=$(call AutoLoad,30,auth_rpcgss)
271 endef
272
273 define KernelPackage/fs-nfs-common-v4/description
274 Kernel modules for NFS V4 & NFSD V4 kernel support
275 endef
276
277 $(eval $(call KernelPackage,fs-nfs-common-v4))
278
279
280 define KernelPackage/fs-nfsd
281 SUBMENU:=$(FS_MENU)
282 TITLE:=NFS kernel server support
283 DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs
284 KCONFIG:= \
285 CONFIG_NFSD \
286 CONFIG_NFSD_FAULT_INJECTION=n
287 FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
288 AUTOLOAD:=$(call AutoLoad,40,nfsd)
289 endef
290
291 define KernelPackage/fs-nfsd/description
292 Kernel module for NFS kernel server support
293 endef
294
295 $(eval $(call KernelPackage,fs-nfsd))
296
297
298 define KernelPackage/fs-ntfs
299 SUBMENU:=$(FS_MENU)
300 TITLE:=NTFS filesystem support
301 KCONFIG:=CONFIG_NTFS_FS
302 FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
303 AUTOLOAD:=$(call AutoLoad,30,ntfs)
304 $(call AddDepends/nls)
305 endef
306
307 define KernelPackage/fs-ntfs/description
308 Kernel module for NTFS filesystem support
309 endef
310
311 $(eval $(call KernelPackage,fs-ntfs))
312
313
314 define KernelPackage/fs-reiserfs
315 SUBMENU:=$(FS_MENU)
316 TITLE:=ReiserFS filesystem support
317 KCONFIG:=CONFIG_REISERFS_FS
318 FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
319 AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
320 endef
321
322 define KernelPackage/fs-reiserfs/description
323 Kernel module for ReiserFS support
324 endef
325
326 $(eval $(call KernelPackage,fs-reiserfs))
327
328
329 define KernelPackage/fs-udf
330 SUBMENU:=$(FS_MENU)
331 TITLE:=UDF filesystem support
332 KCONFIG:=CONFIG_UDF_FS
333 FILES:=$(LINUX_DIR)/fs/udf/udf.ko
334 AUTOLOAD:=$(call AutoLoad,30,udf)
335 DEPENDS:=+kmod-lib-crc-itu-t
336 $(call AddDepends/nls)
337 endef
338
339 define KernelPackage/fs-udf/description
340 Kernel module for UDF filesystem support
341 endef
342
343 $(eval $(call KernelPackage,fs-udf))
344
345
346 define KernelPackage/fs-vfat
347 SUBMENU:=$(FS_MENU)
348 TITLE:=VFAT filesystem support
349 KCONFIG:= \
350 CONFIG_FAT_FS \
351 CONFIG_VFAT_FS
352 FILES:= \
353 $(LINUX_DIR)/fs/fat/fat.ko \
354 $(LINUX_DIR)/fs/fat/vfat.ko
355 AUTOLOAD:=$(call AutoLoad,30,fat vfat)
356 $(call AddDepends/nls)
357 endef
358
359 define KernelPackage/fs-vfat/description
360 Kernel module for VFAT filesystem support
361 endef
362
363 $(eval $(call KernelPackage,fs-vfat))
364
365
366 define KernelPackage/fs-xfs
367 SUBMENU:=$(FS_MENU)
368 TITLE:=XFS filesystem support
369 KCONFIG:=CONFIG_XFS_FS
370 DEPENDS:= +kmod-fs-exportfs +kmod-lib-crc32c @!avr32
371 FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
372 AUTOLOAD:=$(call AutoLoad,30,xfs,1)
373 endef
374
375 define KernelPackage/fs-xfs/description
376 Kernel module for XFS support
377 endef
378
379 $(eval $(call KernelPackage,fs-xfs))
380
381
382 define KernelPackage/fs-jfs
383 SUBMENU:=$(FS_MENU)
384 TITLE:=JFS filesystem support
385 KCONFIG:=CONFIG_JFS_FS
386 FILES:=$(LINUX_DIR)/fs/jfs/jfs.ko
387 AUTOLOAD:=$(call AutoLoad,30,jfs,1)
388 $(call AddDepends/nls)
389 endef
390
391 define KernelPackage/fs-jfs/description
392 Kernel module for JFS support
393 endef
394
395 $(eval $(call KernelPackage,fs-jfs))