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