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