cleanup MTD option handling
[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 $(eval $(call KernelPackage,fs-nfs-common))
225
226
227 define KernelPackage/fs-nfs
228 SUBMENU:=$(FS_MENU)
229 TITLE:=NFS filesystem support
230 DEPENDS:=kmod-fs-nfs-common
231 KCONFIG:= \
232 CONFIG_NFS_FS
233 FILES:= \
234 $(LINUX_DIR)/fs/nfs/nfs.$(LINUX_KMOD_SUFFIX)
235 AUTOLOAD:=$(call AutoLoad,40,nfs)
236 endef
237
238 define KernelPackage/fs-nfs/description
239 Kernel module for NFS support
240 endef
241
242 $(eval $(call KernelPackage,fs-nfs))
243
244
245 define KernelPackage/fs-nfsd
246 SUBMENU:=$(FS_MENU)
247 TITLE:=NFS kernel server support
248 DEPENDS:=kmod-fs-nfs-common
249 KCONFIG:=CONFIG_NFSD
250 FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.$(LINUX_KMOD_SUFFIX)
251 AUTOLOAD:=$(call AutoLoad,40,nfsd)
252 endef
253
254 define KernelPackage/fs-nfsd/2.6
255 KCONFIG+=CONFIG_EXPORTFS \
256 CONFIG_SUNRPC_GSS
257 FILES+=$(LINUX_DIR)/fs/exportfs/exportfs.$(LINUX_KMOD_SUFFIX) \
258 $(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.$(LINUX_KMOD_SUFFIX)
259 AUTOLOAD+=$(call AutoLoad,40,auth_rpcgss exportfs nfsd)
260 endef
261
262 define KernelPackage/fs-nfsd/description
263 Kernel module for NFS kernel server support
264 endef
265
266 $(eval $(call KernelPackage,fs-nfsd))
267
268
269 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.28)),1)
270 MSDOS_DIR:=fat
271 endif
272 MSDOS_DIR?=msdos
273
274 define KernelPackage/fs-msdos
275 SUBMENU:=$(FS_MENU)
276 TITLE:=MSDOS filesystem support
277 KCONFIG:=CONFIG_MSDOS_FS
278 FILES:=$(LINUX_DIR)/fs/$(MSDOS_DIR)/msdos.$(LINUX_KMOD_SUFFIX)
279 AUTOLOAD:=$(call AutoLoad,40,msdos)
280 $(call KernelPackage/nls/Depends)
281 endef
282
283
284 define KernelPackage/fs-msdos/description
285 Kernel module for MSDOS filesystem support
286 endef
287
288 $(eval $(call KernelPackage,fs-msdos))
289
290
291 define KernelPackage/fs-reiserfs
292 SUBMENU:=$(FS_MENU)
293 TITLE:=ReiserFS filesystem support
294 KCONFIG:=CONFIG_REISERFS_FS
295 FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.$(LINUX_KMOD_SUFFIX)
296 AUTOLOAD:=$(call AutoLoad,30,reiserfs)
297 endef
298
299 define KernelPackage/fs-reiserfs/description
300 Kernel module for ReiserFS support
301 endef
302
303 $(eval $(call KernelPackage,fs-reiserfs))
304
305
306 define KernelPackage/fs-vfat
307 SUBMENU:=$(FS_MENU)
308 TITLE:=VFAT filesystem support
309 KCONFIG:= \
310 CONFIG_FAT_FS \
311 CONFIG_VFAT_FS
312 FILES:= \
313 $(LINUX_DIR)/fs/fat/fat.$(LINUX_KMOD_SUFFIX) \
314 $(LINUX_DIR)/fs/$(if $(CONFIG_LINUX_2_6_28),fat,vfat)/vfat.$(LINUX_KMOD_SUFFIX)
315 AUTOLOAD:=$(call AutoLoad,30,fat vfat)
316 $(call KernelPackage/nls/Depends)
317 endef
318
319
320 define KernelPackage/fs-vfat/description
321 Kernel module for VFAT filesystem support
322 endef
323
324 $(eval $(call KernelPackage,fs-vfat))
325
326
327 define KernelPackage/fs-xfs
328 SUBMENU:=$(FS_MENU)
329 TITLE:=XFS filesystem support
330 KCONFIG:=CONFIG_XFS_FS
331 FILES:=$(LINUX_DIR)/fs/xfs/xfs.$(LINUX_KMOD_SUFFIX)
332 AUTOLOAD:=$(call AutoLoad,30,xfs)
333 endef
334
335 define KernelPackage/fs-xfs/description
336 Kernel module for XFS support
337 endef
338
339 $(eval $(call KernelPackage,fs-xfs))
340
341
342 define KernelPackage/nls-base
343 SUBMENU:=$(FS_MENU)
344 TITLE:=Native Language Support
345 KCONFIG:=CONFIG_NLS
346 FILES:=$(LINUX_DIR)/fs/nls/nls_base.$(LINUX_KMOD_SUFFIX)
347 AUTOLOAD:=$(call AutoLoad,20,nls_base)
348 endef
349
350 define KernelPackage/nls-base/description
351 Kernel module for NLS (Native Language Support)
352 endef
353
354 $(eval $(call KernelPackage,nls-base))
355
356
357 define KernelPackage/nls-cp437
358 SUBMENU:=$(FS_MENU)
359 TITLE:=Codepage 437 (United States, Canada)
360 KCONFIG:=CONFIG_NLS_CODEPAGE_437
361 FILES:=$(LINUX_DIR)/fs/nls/nls_cp437.$(LINUX_KMOD_SUFFIX)
362 AUTOLOAD:=$(call AutoLoad,25,nls_cp437)
363 $(call KernelPackage/nls/Depends)
364 endef
365
366
367 define KernelPackage/nls-cp437/description
368 Kernel module for NLS Codepage 437 (United States, Canada)
369 endef
370
371 $(eval $(call KernelPackage,nls-cp437))
372
373
374 define KernelPackage/nls-cp850
375 SUBMENU:=$(FS_MENU)
376 TITLE:=Codepage 850 (Europe)
377 KCONFIG:=CONFIG_NLS_CODEPAGE_850
378 FILES:=$(LINUX_DIR)/fs/nls/nls_cp850.$(LINUX_KMOD_SUFFIX)
379 AUTOLOAD:=$(call AutoLoad,25,nls_cp850)
380 $(call KernelPackage/nls/Depends)
381 endef
382
383
384 define KernelPackage/nls-cp850/description
385 Kernel module for NLS Codepage 850 (Europe)
386 endef
387
388 $(eval $(call KernelPackage,nls-cp850))
389
390
391 define KernelPackage/nls-cp852
392 SUBMENU:=$(FS_MENU)
393 TITLE:=Codepage 852 (Europe)
394 KCONFIG:=CONFIG_NLS_CODEPAGE_852
395 FILES:=$(LINUX_DIR)/fs/nls/nls_cp852.$(LINUX_KMOD_SUFFIX)
396 AUTOLOAD:=$(call AutoLoad,25,nls_cp852)
397 $(call KernelPackage/nls/Depends)
398 endef
399
400
401 define KernelPackage/nls-cp852/description
402 Kernel module for NLS Codepage 852 (Europe)
403 endef
404
405 $(eval $(call KernelPackage,nls-cp852))
406
407
408 define KernelPackage/nls-cp1250
409 SUBMENU:=$(FS_MENU)
410 TITLE:=Codepage 1250 (Eastern Europe)
411 KCONFIG:=CONFIG_NLS_CODEPAGE_1250
412 FILES:=$(LINUX_DIR)/fs/nls/nls_cp1250.$(LINUX_KMOD_SUFFIX)
413 AUTOLOAD:=$(call AutoLoad,25,nls_cp1250)
414 $(call KernelPackage/nls/Depends)
415 endef
416
417
418 define KernelPackage/nls-cp1250/description
419 Kernel module for NLS Codepage 1250 (Eastern Europe)
420 endef
421
422 $(eval $(call KernelPackage,nls-cp1250))
423
424
425 define KernelPackage/nls-cp1251
426 SUBMENU:=$(FS_MENU)
427 TITLE:=Codepage 1251 (Russian)
428 KCONFIG:=CONFIG_NLS_CODEPAGE_1251
429 FILES:=$(LINUX_DIR)/fs/nls/nls_cp1251.$(LINUX_KMOD_SUFFIX)
430 AUTOLOAD:=$(call AutoLoad,25,nls_cp1251)
431 $(call KernelPackage/nls/Depends)
432 endef
433
434
435 define KernelPackage/nls-cp1251/description
436 Kernel module for NLS Codepage 1251 (Russian)
437 endef
438
439 $(eval $(call KernelPackage,nls-cp1251))
440
441
442 define KernelPackage/nls-iso8859-1
443 SUBMENU:=$(FS_MENU)
444 TITLE:=ISO 8859-1 (Latin 1; Western European Languages)
445 KCONFIG:=CONFIG_NLS_ISO8859_1
446 FILES:=$(LINUX_DIR)/fs/nls/nls_iso8859-1.$(LINUX_KMOD_SUFFIX)
447 AUTOLOAD:=$(call AutoLoad,25,nls_iso8859-1)
448 $(call KernelPackage/nls/Depends)
449 endef
450
451
452 define KernelPackage/nls-iso8859-1/description
453 Kernel module for NLS ISO 8859-1 (Latin 1)
454 endef
455
456 $(eval $(call KernelPackage,nls-iso8859-1))
457
458
459 define KernelPackage/nls-iso8859-2
460 SUBMENU:=$(FS_MENU)
461 TITLE:=ISO 8859-2 (Latin 2; Central European Languages)
462 KCONFIG:=CONFIG_NLS_ISO8859_2
463 FILES:=$(LINUX_DIR)/fs/nls/nls_iso8859-2.$(LINUX_KMOD_SUFFIX)
464 AUTOLOAD:=$(call AutoLoad,25,nls_iso8859-2)
465 $(call KernelPackage/nls/Depends)
466 endef
467
468
469 define KernelPackage/nls-iso8859-2/description
470 Kernel module for NLS ISO 8859-2 (Latin 2)
471 endef
472
473 $(eval $(call KernelPackage,nls-iso8859-2))
474
475
476 define KernelPackage/nls-iso8859-15
477 SUBMENU:=$(FS_MENU)
478 TITLE:=ISO 8859-15 (Latin 9; Western, with Euro symbol)
479 KCONFIG:=CONFIG_NLS_ISO8859_15
480 FILES:=$(LINUX_DIR)/fs/nls/nls_iso8859-15.$(LINUX_KMOD_SUFFIX)
481 AUTOLOAD:=$(call AutoLoad,25,nls_iso8859-15)
482 $(call KernelPackage/nls/Depends)
483 endef
484
485
486 define KernelPackage/nls-iso8859-15/description
487 Kernel module for NLS ISO 8859-15 (Latin 9)
488 endef
489
490 $(eval $(call KernelPackage,nls-iso8859-15))
491
492
493 define KernelPackage/nls-koi8r
494 SUBMENU:=$(FS_MENU)
495 TITLE:=KOI8-R (Russian)
496 KCONFIG:=CONFIG_NLS_KOI8_R
497 FILES:=$(LINUX_DIR)/fs/nls/nls_koi8-r.$(LINUX_KMOD_SUFFIX)
498 AUTOLOAD:=$(call AutoLoad,25,nls_koi8-r)
499 $(call KernelPackage/nls/Depends)
500 endef
501
502
503 define KernelPackage/nls-koi8r/description
504 Kernel module for NLS KOI8-R (Russian)
505 endef
506
507 $(eval $(call KernelPackage,nls-koi8r))
508
509
510 define KernelPackage/nls-utf8
511 SUBMENU:=$(FS_MENU)
512 TITLE:=UTF-8
513 KCONFIG:=CONFIG_NLS_UTF8
514 FILES:=$(LINUX_DIR)/fs/nls/nls_utf8.$(LINUX_KMOD_SUFFIX)
515 AUTOLOAD:=$(call AutoLoad,25,nls_utf8)
516 $(call KernelPackage/nls/Depends)
517 endef
518
519 define KernelPackage/nls-utf8/description
520 Kernel module for NLS UTF-8
521 endef
522
523 $(eval $(call KernelPackage,nls-utf8))
This page took 0.062033 seconds and 5 git commands to generate.