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