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