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