[kernel] package ext4 (#4434)
[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 define KernelPackage/fs-ext4
117 SUBMENU:=$(FS_MENU)
118 TITLE:=EXT4 filesystem support
119 KCONFIG:= \
120 CONFIG_EXT4DEV_COMPAT=y \
121 CONFIG_EXT4_FS_XATTR=y \
122 CONFIG_EXT4_FS_POSIX_ACL=y \
123 CONFIG_EXT4_FS_SECURITY=y \
124 CONFIG_EXT4_FS
125 DEPENDS:=$(if $(DUMP)$(CONFIG_FS_MBCACHE),+kmod-fs-mbcache)
126 FILES:= \
127 $(LINUX_DIR)/fs/ext4/ext4.$(LINUX_KMOD_SUFFIX)
128 AUTOLOAD:=$(call AutoLoad,30,ext4)
129 endef
130
131 define KernelPackage/fs-ext4/description
132 Kernel module for EXT4 filesystem support
133 endef
134
135 $(eval $(call KernelPackage,fs-ext4))
136
137
138
139 define KernelPackage/fs-hfs
140 SUBMENU:=$(FS_MENU)
141 TITLE:=HFS+ filesystem support
142 KCONFIG:=CONFIG_HFS_FS
143 FILES:=$(LINUX_DIR)/fs/hfs/hfs.$(LINUX_KMOD_SUFFIX)
144 AUTOLOAD:=$(call AutoLoad,30,hfs)
145 $(call KernelPackage/nls/Depends)
146 endef
147
148 define KernelPackage/fs-hfs/description
149 Kernel module for HFS filesystem support
150 endef
151
152 $(eval $(call KernelPackage,fs-hfs))
153
154
155 define KernelPackage/fs-hfsplus
156 SUBMENU:=$(FS_MENU)
157 TITLE:=HFS+ filesystem support
158 KCONFIG:=CONFIG_HFSPLUS_FS
159 FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.$(LINUX_KMOD_SUFFIX)
160 AUTOLOAD:=$(call AutoLoad,30,hfsplus)
161 $(call KernelPackage/nls/Depends,utf8)
162 endef
163
164
165 define KernelPackage/fs-hfsplus/description
166 Kernel module for HFS+ filesystem support
167 endef
168
169 $(eval $(call KernelPackage,fs-hfsplus))
170
171
172 define KernelPackage/fs-isofs
173 SUBMENU:=$(FS_MENU)
174 TITLE:=ISO9660 filesystem support
175 KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
176 FILES:=$(LINUX_DIR)/fs/isofs/isofs.$(LINUX_KMOD_SUFFIX)
177 AUTOLOAD:=$(call AutoLoad,30,isofs)
178 $(call KernelPackage/nls/Depends)
179 endef
180
181
182 define KernelPackage/fs-isofs/description
183 Kernel module for ISO9660 filesystem support
184 endef
185
186 $(eval $(call KernelPackage,fs-isofs))
187
188
189 define KernelPackage/fs-udf
190 SUBMENU:=$(FS_MENU)
191 TITLE:=UDF filesystem support
192 KCONFIG:=CONFIG_UDF_FS
193 FILES:=$(LINUX_DIR)/fs/udf/udf.$(LINUX_KMOD_SUFFIX)
194 AUTOLOAD:=$(call AutoLoad,30,udf)
195 $(call KernelPackage/nls/Depends)
196 endef
197
198
199 define KernelPackage/fs-udf/description
200 Kernel module for UDF filesystem support
201 endef
202
203 $(eval $(call KernelPackage,fs-udf))
204
205 define KernelPackage/fs-nfs-common
206 SUBMENU:=$(FS_MENU)
207 TITLE:=Common NFS filesystem modules
208 KCONFIG:= \
209 CONFIG_LOCKD \
210 CONFIG_SUNRPC
211 FILES:= \
212 $(LINUX_DIR)/fs/lockd/lockd.$(LINUX_KMOD_SUFFIX) \
213 $(LINUX_DIR)/net/sunrpc/sunrpc.$(LINUX_KMOD_SUFFIX)
214 AUTOLOAD:=$(call AutoLoad,30,sunrpc lockd)
215 endef
216
217 $(eval $(call KernelPackage,fs-nfs-common))
218
219
220 define KernelPackage/fs-nfs
221 SUBMENU:=$(FS_MENU)
222 TITLE:=NFS filesystem support
223 DEPENDS:=kmod-fs-nfs-common
224 KCONFIG:= \
225 CONFIG_NFS_FS
226 FILES:= \
227 $(LINUX_DIR)/fs/nfs/nfs.$(LINUX_KMOD_SUFFIX)
228 AUTOLOAD:=$(call AutoLoad,40,nfs)
229 endef
230
231 define KernelPackage/fs-nfs/description
232 Kernel module for NFS support
233 endef
234
235 $(eval $(call KernelPackage,fs-nfs))
236
237
238 define KernelPackage/fs-nfsd
239 SUBMENU:=$(FS_MENU)
240 TITLE:=NFS kernel server support
241 DEPENDS:=kmod-fs-nfs-common
242 KCONFIG:=CONFIG_NFSD
243 FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.$(LINUX_KMOD_SUFFIX)
244 AUTOLOAD:=$(call AutoLoad,40,nfsd)
245 endef
246
247 define KernelPackage/fs-nfsd/2.6
248 KCONFIG+=CONFIG_EXPORTFS \
249 CONFIG_SUNRPC_GSS
250 FILES+=$(LINUX_DIR)/fs/exportfs/exportfs.$(LINUX_KMOD_SUFFIX) \
251 $(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.$(LINUX_KMOD_SUFFIX)
252 AUTOLOAD+=$(call AutoLoad,40,auth_rpcgss exportfs nfsd)
253 endef
254
255 define KernelPackage/fs-nfsd/description
256 Kernel module for NFS kernel server support
257 endef
258
259 $(eval $(call KernelPackage,fs-nfsd))
260
261
262 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.28)),1)
263 MSDOS_DIR:=fat
264 endif
265 MSDOS_DIR?=msdos
266
267 define KernelPackage/fs-msdos
268 SUBMENU:=$(FS_MENU)
269 TITLE:=MSDOS filesystem support
270 KCONFIG:=CONFIG_MSDOS_FS
271 FILES:=$(LINUX_DIR)/fs/$(MSDOS_DIR)/msdos.$(LINUX_KMOD_SUFFIX)
272 AUTOLOAD:=$(call AutoLoad,40,msdos)
273 $(call KernelPackage/nls/Depends)
274 endef
275
276
277 define KernelPackage/fs-msdos/description
278 Kernel module for MSDOS filesystem support
279 endef
280
281 $(eval $(call KernelPackage,fs-msdos))
282
283
284 define KernelPackage/fs-reiserfs
285 SUBMENU:=$(FS_MENU)
286 TITLE:=ReiserFS filesystem support
287 KCONFIG:=CONFIG_REISERFS_FS
288 FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.$(LINUX_KMOD_SUFFIX)
289 AUTOLOAD:=$(call AutoLoad,30,reiserfs)
290 endef
291
292 define KernelPackage/fs-reiserfs/description
293 Kernel module for ReiserFS support
294 endef
295
296 $(eval $(call KernelPackage,fs-reiserfs))
297
298
299 define KernelPackage/fs-vfat
300 SUBMENU:=$(FS_MENU)
301 TITLE:=VFAT filesystem support
302 KCONFIG:= \
303 CONFIG_FAT_FS \
304 CONFIG_VFAT_FS
305 FILES:= \
306 $(LINUX_DIR)/fs/fat/fat.$(LINUX_KMOD_SUFFIX) \
307 $(LINUX_DIR)/fs/$(if $(CONFIG_LINUX_2_6_28),fat,vfat)/vfat.$(LINUX_KMOD_SUFFIX)
308 AUTOLOAD:=$(call AutoLoad,30,fat vfat)
309 $(call KernelPackage/nls/Depends)
310 endef
311
312
313 define KernelPackage/fs-vfat/description
314 Kernel module for VFAT filesystem support
315 endef
316
317 $(eval $(call KernelPackage,fs-vfat))
318
319
320 define KernelPackage/fs-xfs
321 SUBMENU:=$(FS_MENU)
322 TITLE:=XFS filesystem support
323 KCONFIG:=CONFIG_XFS_FS
324 FILES:=$(LINUX_DIR)/fs/xfs/xfs.$(LINUX_KMOD_SUFFIX)
325 AUTOLOAD:=$(call AutoLoad,30,xfs)
326 endef
327
328 define KernelPackage/fs-xfs/description
329 Kernel module for XFS support
330 endef
331
332 $(eval $(call KernelPackage,fs-xfs))
333
334
335 define KernelPackage/nls-base
336 SUBMENU:=$(FS_MENU)
337 TITLE:=Native Language Support
338 KCONFIG:=CONFIG_NLS
339 FILES:=$(LINUX_DIR)/fs/nls/nls_base.$(LINUX_KMOD_SUFFIX)
340 AUTOLOAD:=$(call AutoLoad,20,nls_base)
341 endef
342
343 define KernelPackage/nls-base/description
344 Kernel module for NLS (Native Language Support)
345 endef
346
347 $(eval $(call KernelPackage,nls-base))
348
349
350 define KernelPackage/nls-cp437
351 SUBMENU:=$(FS_MENU)
352 TITLE:=Codepage 437 (United States, Canada)
353 KCONFIG:=CONFIG_NLS_CODEPAGE_437
354 FILES:=$(LINUX_DIR)/fs/nls/nls_cp437.$(LINUX_KMOD_SUFFIX)
355 AUTOLOAD:=$(call AutoLoad,25,nls_cp437)
356 $(call KernelPackage/nls/Depends)
357 endef
358
359
360 define KernelPackage/nls-cp437/description
361 Kernel module for NLS Codepage 437 (United States, Canada)
362 endef
363
364 $(eval $(call KernelPackage,nls-cp437))
365
366
367 define KernelPackage/nls-cp850
368 SUBMENU:=$(FS_MENU)
369 TITLE:=Codepage 850 (Europe)
370 KCONFIG:=CONFIG_NLS_CODEPAGE_850
371 FILES:=$(LINUX_DIR)/fs/nls/nls_cp850.$(LINUX_KMOD_SUFFIX)
372 AUTOLOAD:=$(call AutoLoad,25,nls_cp850)
373 $(call KernelPackage/nls/Depends)
374 endef
375
376
377 define KernelPackage/nls-cp850/description
378 Kernel module for NLS Codepage 850 (Europe)
379 endef
380
381 $(eval $(call KernelPackage,nls-cp850))
382
383
384 define KernelPackage/nls-cp852
385 SUBMENU:=$(FS_MENU)
386 TITLE:=Codepage 852 (Europe)
387 KCONFIG:=CONFIG_NLS_CODEPAGE_852
388 FILES:=$(LINUX_DIR)/fs/nls/nls_cp852.$(LINUX_KMOD_SUFFIX)
389 AUTOLOAD:=$(call AutoLoad,25,nls_cp852)
390 $(call KernelPackage/nls/Depends)
391 endef
392
393
394 define KernelPackage/nls-cp852/description
395 Kernel module for NLS Codepage 852 (Europe)
396 endef
397
398 $(eval $(call KernelPackage,nls-cp852))
399
400
401 define KernelPackage/nls-cp1250
402 SUBMENU:=$(FS_MENU)
403 TITLE:=Codepage 1250 (Eastern Europe)
404 KCONFIG:=CONFIG_NLS_CODEPAGE_1250
405 FILES:=$(LINUX_DIR)/fs/nls/nls_cp1250.$(LINUX_KMOD_SUFFIX)
406 AUTOLOAD:=$(call AutoLoad,25,nls_cp1250)
407 $(call KernelPackage/nls/Depends)
408 endef
409
410
411 define KernelPackage/nls-cp1250/description
412 Kernel module for NLS Codepage 1250 (Eastern Europe)
413 endef
414
415 $(eval $(call KernelPackage,nls-cp1250))
416
417
418 define KernelPackage/nls-cp1251
419 SUBMENU:=$(FS_MENU)
420 TITLE:=Codepage 1251 (Russian)
421 KCONFIG:=CONFIG_NLS_CODEPAGE_1251
422 FILES:=$(LINUX_DIR)/fs/nls/nls_cp1251.$(LINUX_KMOD_SUFFIX)
423 AUTOLOAD:=$(call AutoLoad,25,nls_cp1251)
424 $(call KernelPackage/nls/Depends)
425 endef
426
427
428 define KernelPackage/nls-cp1251/description
429 Kernel module for NLS Codepage 1251 (Russian)
430 endef
431
432 $(eval $(call KernelPackage,nls-cp1251))
433
434
435 define KernelPackage/nls-iso8859-1
436 SUBMENU:=$(FS_MENU)
437 TITLE:=ISO 8859-1 (Latin 1; Western European Languages)
438 KCONFIG:=CONFIG_NLS_ISO8859_1
439 FILES:=$(LINUX_DIR)/fs/nls/nls_iso8859-1.$(LINUX_KMOD_SUFFIX)
440 AUTOLOAD:=$(call AutoLoad,25,nls_iso8859-1)
441 $(call KernelPackage/nls/Depends)
442 endef
443
444
445 define KernelPackage/nls-iso8859-1/description
446 Kernel module for NLS ISO 8859-1 (Latin 1)
447 endef
448
449 $(eval $(call KernelPackage,nls-iso8859-1))
450
451
452 define KernelPackage/nls-iso8859-2
453 SUBMENU:=$(FS_MENU)
454 TITLE:=ISO 8859-2 (Latin 2; Central European Languages)
455 KCONFIG:=CONFIG_NLS_ISO8859_2
456 FILES:=$(LINUX_DIR)/fs/nls/nls_iso8859-2.$(LINUX_KMOD_SUFFIX)
457 AUTOLOAD:=$(call AutoLoad,25,nls_iso8859-2)
458 $(call KernelPackage/nls/Depends)
459 endef
460
461
462 define KernelPackage/nls-iso8859-2/description
463 Kernel module for NLS ISO 8859-2 (Latin 2)
464 endef
465
466 $(eval $(call KernelPackage,nls-iso8859-2))
467
468
469 define KernelPackage/nls-iso8859-15
470 SUBMENU:=$(FS_MENU)
471 TITLE:=ISO 8859-15 (Latin 9; Western, with Euro symbol)
472 KCONFIG:=CONFIG_NLS_ISO8859_15
473 FILES:=$(LINUX_DIR)/fs/nls/nls_iso8859-15.$(LINUX_KMOD_SUFFIX)
474 AUTOLOAD:=$(call AutoLoad,25,nls_iso8859-15)
475 $(call KernelPackage/nls/Depends)
476 endef
477
478
479 define KernelPackage/nls-iso8859-15/description
480 Kernel module for NLS ISO 8859-15 (Latin 9)
481 endef
482
483 $(eval $(call KernelPackage,nls-iso8859-15))
484
485
486 define KernelPackage/nls-koi8r
487 SUBMENU:=$(FS_MENU)
488 TITLE:=KOI8-R (Russian)
489 KCONFIG:=CONFIG_NLS_KOI8_R
490 FILES:=$(LINUX_DIR)/fs/nls/nls_koi8-r.$(LINUX_KMOD_SUFFIX)
491 AUTOLOAD:=$(call AutoLoad,25,nls_koi8-r)
492 $(call KernelPackage/nls/Depends)
493 endef
494
495
496 define KernelPackage/nls-koi8r/description
497 Kernel module for NLS KOI8-R (Russian)
498 endef
499
500 $(eval $(call KernelPackage,nls-koi8r))
501
502
503 define KernelPackage/nls-utf8
504 SUBMENU:=$(FS_MENU)
505 TITLE:=UTF-8
506 KCONFIG:=CONFIG_NLS_UTF8
507 FILES:=$(LINUX_DIR)/fs/nls/nls_utf8.$(LINUX_KMOD_SUFFIX)
508 AUTOLOAD:=$(call AutoLoad,25,nls_utf8)
509 $(call KernelPackage/nls/Depends)
510 endef
511
512 define KernelPackage/nls-utf8/description
513 Kernel module for NLS UTF-8
514 endef
515
516 $(eval $(call KernelPackage,nls-utf8))