[kernel] accomodate a change in msdos.ko path that appeared on 2.6.28
[openwrt/svn-archive/archive.git] / package / kernel / modules / fs.mk
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 FS_MENU:=Filesystems
10
11 define KernelPackage/nls/Depends
12 ifneq ($(KERNEL),2.4)
13 DEPENDS:= +kmod-nls-base
14 endif
15 endef
16
17 define KernelPackage/fs-cifs
18 SUBMENU:=$(FS_MENU)
19 TITLE:=CIFS support
20 KCONFIG:=CONFIG_CIFS
21 FILES:=$(LINUX_DIR)/fs/cifs/cifs.$(LINUX_KMOD_SUFFIX)
22 AUTOLOAD:=$(call AutoLoad,30,cifs)
23 $(call KernelPackage/nls/Depends)
24 endef
25
26
27 define KernelPackage/fs-cifs/description
28 Kernel module for CIFS support
29 endef
30
31 $(eval $(call KernelPackage,fs-cifs))
32
33
34 define KernelPackage/fs-minix
35 SUBMENU:=$(FS_MENU)
36 TITLE:=Minix filesystem support
37 KCONFIG:=CONFIG_MINIX_FS
38 FILES:=$(LINUX_DIR)/fs/minix/minix.$(LINUX_KMOD_SUFFIX)
39 AUTOLOAD:=$(call AutoLoad,30,minix)
40 endef
41
42 define KernelPackage/fs-minix/description
43 Kernel module for Minix filesystem support
44 endef
45
46 $(eval $(call KernelPackage,fs-minix))
47
48
49 define KernelPackage/fs-ntfs
50 SUBMENU:=$(FS_MENU)
51 TITLE:=NTFS filesystem support
52 KCONFIG:=CONFIG_NTFS_FS
53 FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.$(LINUX_KMOD_SUFFIX)
54 AUTOLOAD:=$(call AutoLoad,30,ntfs)
55 endef
56
57 define KernelPackage/fs-ntfs/description
58 Kernel module for NTFS filesystem support
59 endef
60
61 $(eval $(call KernelPackage,fs-ntfs))
62
63
64 define KernelPackage/fs-mbcache
65 SUBMENU:=$(FS_MENU)
66 TITLE:=mbcache (used by ext2/ext3)
67 KCONFIG:=CONFIG_FS_MBCACHE
68 ifneq ($(CONFIG_FS_MBCACHE),)
69 FILES:=$(LINUX_DIR)/fs/mbcache.$(LINUX_KMOD_SUFFIX)
70 AUTOLOAD:=$(call AutoLoad,20,mbcache)
71 endif
72 endef
73
74 define KernelPackage/fs-ext2/description
75 Meta Block cache used by ext2/ext3
76 This package will only be installed if extended attributes
77 are enabled for ext2/ext3
78 endef
79 $(eval $(call KernelPackage,fs-mbcache))
80
81 define KernelPackage/fs-ext2
82 SUBMENU:=$(FS_MENU)
83 TITLE:=EXT2 filesystem support
84 KCONFIG:=CONFIG_EXT2_FS
85 DEPENDS:=$(if $(DUMP)$(CONFIG_FS_MBCACHE),+kmod-fs-mbcache)
86 FILES:=$(LINUX_DIR)/fs/ext2/ext2.$(LINUX_KMOD_SUFFIX)
87 AUTOLOAD:=$(call AutoLoad,30,ext2)
88 endef
89
90 define KernelPackage/fs-ext2/description
91 Kernel module for EXT2 filesystem support
92 endef
93
94 $(eval $(call KernelPackage,fs-ext2))
95
96
97 define KernelPackage/fs-ext3
98 SUBMENU:=$(FS_MENU)
99 TITLE:=EXT3 filesystem support
100 KCONFIG:= \
101 CONFIG_EXT3_FS \
102 CONFIG_JBD
103 DEPENDS:=$(if $(DUMP)$(CONFIG_FS_MBCACHE),+kmod-fs-mbcache)
104 FILES:= \
105 $(LINUX_DIR)/fs/ext3/ext3.$(LINUX_KMOD_SUFFIX) \
106 $(LINUX_DIR)/fs/jbd/jbd.$(LINUX_KMOD_SUFFIX)
107 AUTOLOAD:=$(call AutoLoad,30,jbd ext3)
108 endef
109
110 define KernelPackage/fs-ext3/description
111 Kernel module for EXT3 filesystem support
112 endef
113
114 $(eval $(call KernelPackage,fs-ext3))
115
116
117 define KernelPackage/fs-hfs
118 SUBMENU:=$(FS_MENU)
119 TITLE:=HFS+ filesystem support
120 KCONFIG:=CONFIG_HFS_FS
121 FILES:=$(LINUX_DIR)/fs/hfs/hfs.$(LINUX_KMOD_SUFFIX)
122 AUTOLOAD:=$(call AutoLoad,30,hfs)
123 $(call KernelPackage/nls/Depends)
124 endef
125
126 define KernelPackage/fs-hfs/description
127 Kernel module for HFS filesystem support
128 endef
129
130 $(eval $(call KernelPackage,fs-hfs))
131
132
133 define KernelPackage/fs-hfsplus
134 SUBMENU:=$(FS_MENU)
135 TITLE:=HFS+ filesystem support
136 KCONFIG:=CONFIG_HFSPLUS_FS
137 FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.$(LINUX_KMOD_SUFFIX)
138 AUTOLOAD:=$(call AutoLoad,30,hfsplus)
139 $(call KernelPackage/nls/Depends,utf8)
140 endef
141
142
143 define KernelPackage/fs-hfsplus/description
144 Kernel module for HFS+ filesystem support
145 endef
146
147 $(eval $(call KernelPackage,fs-hfsplus))
148
149
150 define KernelPackage/fs-isofs
151 SUBMENU:=$(FS_MENU)
152 TITLE:=ISO9660 filesystem support
153 KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
154 FILES:=$(LINUX_DIR)/fs/isofs/isofs.$(LINUX_KMOD_SUFFIX)
155 AUTOLOAD:=$(call AutoLoad,30,isofs)
156 $(call KernelPackage/nls/Depends)
157 endef
158
159
160 define KernelPackage/fs-isofs/description
161 Kernel module for ISO9660 filesystem support
162 endef
163
164 $(eval $(call KernelPackage,fs-isofs))
165
166
167 define KernelPackage/fs-udf
168 SUBMENU:=$(FS_MENU)
169 TITLE:=UDF filesystem support
170 KCONFIG:=CONFIG_UDF_FS
171 FILES:=$(LINUX_DIR)/fs/udf/udf.$(LINUX_KMOD_SUFFIX)
172 AUTOLOAD:=$(call AutoLoad,30,udf)
173 $(call KernelPackage/nls/Depends)
174 endef
175
176
177 define KernelPackage/fs-udf/description
178 Kernel module for UDF filesystem support
179 endef
180
181 $(eval $(call KernelPackage,fs-udf))
182
183 define KernelPackage/fs-nfs-common
184 SUBMENU:=$(FS_MENU)
185 TITLE:=Common NFS filesystem modules
186 KCONFIG:= \
187 CONFIG_LOCKD \
188 CONFIG_SUNRPC
189 FILES:= \
190 $(LINUX_DIR)/fs/lockd/lockd.$(LINUX_KMOD_SUFFIX) \
191 $(LINUX_DIR)/net/sunrpc/sunrpc.$(LINUX_KMOD_SUFFIX)
192 AUTOLOAD:=$(call AutoLoad,30,sunrpc lockd)
193 endef
194
195 $(eval $(call KernelPackage,fs-nfs-common))
196
197
198 define KernelPackage/fs-nfs
199 SUBMENU:=$(FS_MENU)
200 TITLE:=NFS filesystem support
201 DEPENDS:=kmod-fs-nfs-common
202 KCONFIG:= \
203 CONFIG_NFS_FS
204 FILES:= \
205 $(LINUX_DIR)/fs/nfs/nfs.$(LINUX_KMOD_SUFFIX)
206 AUTOLOAD:=$(call AutoLoad,40,nfs)
207 endef
208
209 define KernelPackage/fs-nfs/description
210 Kernel module for NFS support
211 endef
212
213 $(eval $(call KernelPackage,fs-nfs))
214
215
216 define KernelPackage/fs-nfsd
217 SUBMENU:=$(FS_MENU)
218 TITLE:=NFS kernel server support
219 DEPENDS:=kmod-fs-nfs-common
220 KCONFIG:=CONFIG_NFSD
221 FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.$(LINUX_KMOD_SUFFIX)
222 AUTOLOAD:=$(call AutoLoad,40,nfsd)
223 endef
224
225 define KernelPackage/fs-nfsd/2.6
226 KCONFIG+=CONFIG_EXPORTFS \
227 CONFIG_SUNRPC_GSS
228 FILES+=$(LINUX_DIR)/fs/exportfs/exportfs.$(LINUX_KMOD_SUFFIX) \
229 $(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.$(LINUX_KMOD_SUFFIX)
230 AUTOLOAD+=$(call AutoLoad,40,auth_rpcgss exportfs nfsd)
231 endef
232
233 define KernelPackage/fs-nfsd/description
234 Kernel module for NFS kernel server support
235 endef
236
237 $(eval $(call KernelPackage,fs-nfsd))
238
239
240 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.28)),1)
241 MSDOS_DIR:=fat
242 endif
243 MSDOS_DIR?=msdos
244
245 define KernelPackage/fs-msdos
246 SUBMENU:=$(FS_MENU)
247 TITLE:=MSDOS filesystem support
248 KCONFIG:=CONFIG_MSDOS_FS
249 FILES:=$(LINUX_DIR)/fs/$(MSDOS_DIR)/msdos.$(LINUX_KMOD_SUFFIX)
250 AUTOLOAD:=$(call AutoLoad,40,msdos)
251 $(call KernelPackage/nls/Depends)
252 endef
253
254
255 define KernelPackage/fs-msdos/description
256 Kernel module for MSDOS filesystem support
257 endef
258
259 $(eval $(call KernelPackage,fs-msdos))
260
261
262 define KernelPackage/fs-reiserfs
263 SUBMENU:=$(FS_MENU)
264 TITLE:=ReiserFS filesystem support
265 KCONFIG:=CONFIG_REISERFS_FS
266 FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.$(LINUX_KMOD_SUFFIX)
267 AUTOLOAD:=$(call AutoLoad,30,reiserfs)
268 endef
269
270 define KernelPackage/fs-reiserfs/description
271 Kernel module for ReiserFS support
272 endef
273
274 $(eval $(call KernelPackage,fs-reiserfs))
275
276
277 define KernelPackage/fs-vfat
278 SUBMENU:=$(FS_MENU)
279 TITLE:=VFAT filesystem support
280 KCONFIG:= \
281 CONFIG_FAT_FS \
282 CONFIG_VFAT_FS
283 FILES:= \
284 $(LINUX_DIR)/fs/fat/fat.$(LINUX_KMOD_SUFFIX) \
285 $(LINUX_DIR)/fs/$(if $(CONFIG_LINUX_2_6_28),fat,vfat)/vfat.$(LINUX_KMOD_SUFFIX)
286 AUTOLOAD:=$(call AutoLoad,30,fat vfat)
287 $(call KernelPackage/nls/Depends)
288 endef
289
290
291 define KernelPackage/fs-vfat/description
292 Kernel module for VFAT filesystem support
293 endef
294
295 $(eval $(call KernelPackage,fs-vfat))
296
297
298 define KernelPackage/fs-xfs
299 SUBMENU:=$(FS_MENU)
300 TITLE:=XFS filesystem support
301 KCONFIG:=CONFIG_XFS_FS
302 FILES:=$(LINUX_DIR)/fs/xfs/xfs.$(LINUX_KMOD_SUFFIX)
303 AUTOLOAD:=$(call AutoLoad,30,xfs)
304 endef
305
306 define KernelPackage/fs-xfs/description
307 Kernel module for XFS support
308 endef
309
310 $(eval $(call KernelPackage,fs-xfs))
311
312
313 define KernelPackage/nls-base
314 SUBMENU:=$(FS_MENU)
315 TITLE:=Native Language Support
316 KCONFIG:=CONFIG_NLS
317 FILES:=$(LINUX_DIR)/fs/nls/nls_base.$(LINUX_KMOD_SUFFIX)
318 AUTOLOAD:=$(call AutoLoad,20,nls_base)
319 endef
320
321 define KernelPackage/nls-base/description
322 Kernel module for NLS (Native Language Support)
323 endef
324
325 $(eval $(call KernelPackage,nls-base))
326
327
328 define KernelPackage/nls-cp437
329 SUBMENU:=$(FS_MENU)
330 TITLE:=Codepage 437 (United States, Canada)
331 KCONFIG:=CONFIG_NLS_CODEPAGE_437
332 FILES:=$(LINUX_DIR)/fs/nls/nls_cp437.$(LINUX_KMOD_SUFFIX)
333 AUTOLOAD:=$(call AutoLoad,25,nls_cp437)
334 $(call KernelPackage/nls/Depends)
335 endef
336
337
338 define KernelPackage/nls-cp437/description
339 Kernel module for NLS Codepage 437 (United States, Canada)
340 endef
341
342 $(eval $(call KernelPackage,nls-cp437))
343
344
345 define KernelPackage/nls-cp850
346 SUBMENU:=$(FS_MENU)
347 TITLE:=Codepage 850 (Europe)
348 KCONFIG:=CONFIG_NLS_CODEPAGE_850
349 FILES:=$(LINUX_DIR)/fs/nls/nls_cp850.$(LINUX_KMOD_SUFFIX)
350 AUTOLOAD:=$(call AutoLoad,25,nls_cp850)
351 $(call KernelPackage/nls/Depends)
352 endef
353
354
355 define KernelPackage/nls-cp850/description
356 Kernel module for NLS Codepage 850 (Europe)
357 endef
358
359 $(eval $(call KernelPackage,nls-cp850))
360
361
362 define KernelPackage/nls-cp1250
363 SUBMENU:=$(FS_MENU)
364 TITLE:=Codepage 1250 (Eastern Europe)
365 KCONFIG:=CONFIG_NLS_CODEPAGE_1250
366 FILES:=$(LINUX_DIR)/fs/nls/nls_cp1250.$(LINUX_KMOD_SUFFIX)
367 AUTOLOAD:=$(call AutoLoad,25,nls_cp1250)
368 $(call KernelPackage/nls/Depends)
369 endef
370
371
372 define KernelPackage/nls-cp1250/description
373 Kernel module for NLS Codepage 1250 (Eastern Europe)
374 endef
375
376 $(eval $(call KernelPackage,nls-cp1250))
377
378
379 define KernelPackage/nls-cp1251
380 SUBMENU:=$(FS_MENU)
381 TITLE:=Codepage 1251 (Russian)
382 KCONFIG:=CONFIG_NLS_CODEPAGE_1251
383 FILES:=$(LINUX_DIR)/fs/nls/nls_cp1251.$(LINUX_KMOD_SUFFIX)
384 AUTOLOAD:=$(call AutoLoad,25,nls_cp1251)
385 $(call KernelPackage/nls/Depends)
386 endef
387
388
389 define KernelPackage/nls-cp1251/description
390 Kernel module for NLS Codepage 1251 (Russian)
391 endef
392
393 $(eval $(call KernelPackage,nls-cp1251))
394
395
396 define KernelPackage/nls-iso8859-1
397 SUBMENU:=$(FS_MENU)
398 TITLE:=ISO 8859-1 (Latin 1; Western European Languages)
399 KCONFIG:=CONFIG_NLS_ISO8859_1
400 FILES:=$(LINUX_DIR)/fs/nls/nls_iso8859-1.$(LINUX_KMOD_SUFFIX)
401 AUTOLOAD:=$(call AutoLoad,25,nls_iso8859-1)
402 $(call KernelPackage/nls/Depends)
403 endef
404
405
406 define KernelPackage/nls-iso8859-1/description
407 Kernel module for NLS ISO 8859-1 (Latin 1)
408 endef
409
410 $(eval $(call KernelPackage,nls-iso8859-1))
411
412
413 define KernelPackage/nls-iso8859-2
414 SUBMENU:=$(FS_MENU)
415 TITLE:=ISO 8859-2 (Latin 2; Central European Languages)
416 KCONFIG:=CONFIG_NLS_ISO8859_2
417 FILES:=$(LINUX_DIR)/fs/nls/nls_iso8859-2.$(LINUX_KMOD_SUFFIX)
418 AUTOLOAD:=$(call AutoLoad,25,nls_iso8859-2)
419 $(call KernelPackage/nls/Depends)
420 endef
421
422
423 define KernelPackage/nls-iso8859-2/description
424 Kernel module for NLS ISO 8859-2 (Latin 2)
425 endef
426
427 $(eval $(call KernelPackage,nls-iso8859-2))
428
429
430 define KernelPackage/nls-iso8859-15
431 SUBMENU:=$(FS_MENU)
432 TITLE:=ISO 8859-15 (Latin 9; Western, with Euro symbol)
433 KCONFIG:=CONFIG_NLS_ISO8859_15
434 FILES:=$(LINUX_DIR)/fs/nls/nls_iso8859-15.$(LINUX_KMOD_SUFFIX)
435 AUTOLOAD:=$(call AutoLoad,25,nls_iso8859-15)
436 $(call KernelPackage/nls/Depends)
437 endef
438
439
440 define KernelPackage/nls-iso8859-15/description
441 Kernel module for NLS ISO 8859-15 (Latin 9)
442 endef
443
444 $(eval $(call KernelPackage,nls-iso8859-15))
445
446
447 define KernelPackage/nls-koi8r
448 SUBMENU:=$(FS_MENU)
449 TITLE:=KOI8-R (Russian)
450 KCONFIG:=CONFIG_NLS_KOI8_R
451 FILES:=$(LINUX_DIR)/fs/nls/nls_koi8-r.$(LINUX_KMOD_SUFFIX)
452 AUTOLOAD:=$(call AutoLoad,25,nls_koi8-r)
453 $(call KernelPackage/nls/Depends)
454 endef
455
456
457 define KernelPackage/nls-koi8r/description
458 Kernel module for NLS KOI8-R (Russian)
459 endef
460
461 $(eval $(call KernelPackage,nls-koi8r))
462
463
464 define KernelPackage/nls-utf8
465 SUBMENU:=$(FS_MENU)
466 TITLE:=UTF-8
467 KCONFIG:=CONFIG_NLS_UTF8
468 FILES:=$(LINUX_DIR)/fs/nls/nls_utf8.$(LINUX_KMOD_SUFFIX)
469 AUTOLOAD:=$(call AutoLoad,25,nls_utf8)
470 $(call KernelPackage/nls/Depends)
471 endef
472
473 define KernelPackage/nls-utf8/description
474 Kernel module for NLS UTF-8
475 endef
476
477 $(eval $(call KernelPackage,nls-utf8))