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