fs.mk 10.8 KB
Newer Older
1
#
2
# Copyright (C) 2006-2011 OpenWrt.org
3
4
5
6
7
8
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

FS_MENU:=Filesystems
nbd's avatar
nbd committed
9

10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
define KernelPackage/fs-fscache
  SUBMENU:=$(FS_MENU)
  TITLE:=General filesystem local cache manager
  DEPENDS:=
  KCONFIG:=\
	CONFIG_FSCACHE=m \
	CONFIG_FSCACHE_STATS=y \
	CONFIG_FSCACHE_HISTOGRAM=n \
	CONFIG_FSCACHE_DEBUG=n \
	CONFIG_FSCACHE_OBJECT_LIST=n \
	CONFIG_CACHEFILES=y \
	CONFIG_CACHEFILES_DEBUG=n \
	CONFIG_CACHEFILES_HISTOGRAM=n
  FILES:=$(LINUX_DIR)/fs/fscache/fscache.ko
  AUTOLOAD:=$(call AutoLoad,29,fscache)
endef

$(eval $(call KernelPackage,fs-fscache))

define KernelPackage/fs-afs
  SUBMENU:=$(FS_MENU)
  TITLE:=Andrew FileSystem client
  DEPENDS:=+kmod-rxrpc +kmod-dnsresolver +kmod-fs-fscache
  KCONFIG:=\
	CONFIG_AFS_FS=m \
	CONFIG_AFS_DEBUG=n \
	CONFIG_AFS_FSCACHE=y
  FILES:=$(LINUX_DIR)/fs/afs/kafs.ko
  AUTOLOAD:=$(call AutoLoad,30,kafs)
endef

define KernelPackage/fs-afs/description
  Kernel module for Andrew FileSystem client support
endef

$(eval $(call KernelPackage,fs-afs))

47
define KernelPackage/fs-autofs4
48
  SUBMENU:=$(FS_MENU)
49
  TITLE:=AUTOFS4 filesystem support
50
  KCONFIG:=CONFIG_AUTOFS4_FS
51
  FILES:=$(LINUX_DIR)/fs/autofs4/autofs4.ko
52
  AUTOLOAD:=$(call AutoLoad,30,autofs4)
nbd's avatar
nbd committed
53
endef
54

55
define KernelPackage/fs-autofs4/description
56
 Kernel module for AutoFS4 support
57
58
endef

59
$(eval $(call KernelPackage,fs-autofs4))
nbd's avatar
nbd committed
60

61

62
define KernelPackage/fs-btrfs
63
  SUBMENU:=$(FS_MENU)
64
  TITLE:=BTRFS filesystem support
65
  DEPENDS:=+kmod-lib-crc32c +kmod-lib-lzo +kmod-lib-zlib +(!LINUX_3_3&&!LINUX_3_6&&!LINUX_3_8):kmod-lib-raid6 +(!LINUX_3_3&&!LINUX_3_6&&!LINUX_3_8):kmod-lib-xor
66
67
  KCONFIG:=\
	CONFIG_BTRFS_FS \
68
69
	CONFIG_BTRFS_FS_POSIX_ACL=n \
	CONFIG_BTRFS_FS_CHECK_INTEGRITY=n
70
  FILES:=\
71
72
	$(LINUX_DIR)/fs/btrfs/btrfs.ko
  AUTOLOAD:=$(call AutoLoad,30,btrfs,1)
nbd's avatar
nbd committed
73
endef
74

75
define KernelPackage/fs-btrfs/description
76
 Kernel module for BTRFS support
77
78
endef

79
$(eval $(call KernelPackage,fs-btrfs))
nbd's avatar
nbd committed
80

81

82
define KernelPackage/fs-cifs
83
  SUBMENU:=$(FS_MENU)
84
  TITLE:=CIFS support
85
86
87
88
  KCONFIG:= \
	CONFIG_CIFS \
	CONFIG_CIFS_DFS_UPCALL=n \
	CONFIG_CIFS_UPCALL=n
89
  FILES:=$(LINUX_DIR)/fs/cifs/cifs.ko
90
  AUTOLOAD:=$(call AutoLoad,30,cifs)
91
  $(call AddDepends/nls)
92
  DEPENDS+= \
93
94
95
    +kmod-crypto-arc4 \
    +kmod-crypto-hmac \
    +kmod-crypto-md5 \
96
97
    +kmod-crypto-md4 \
    +kmod-crypto-des \
98
99
    +kmod-crypto-ecb \
    +!LINUX_3_3&&!LINUX_3_6:kmod-crypto-sha256
florian's avatar
florian committed
100
endef
101

102
103
define KernelPackage/fs-cifs/description
 Kernel module for CIFS support
104
105
endef

106
$(eval $(call KernelPackage,fs-cifs))
florian's avatar
florian committed
107

108

109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
define KernelPackage/fs-configfs
  SUBMENU:=$(FS_MENU)
  TITLE:=Configuration filesystem support
  KCONFIG:= \
	CONFIG_CONFIGFS_FS
  FILES:=$(LINUX_DIR)/fs/configfs/configfs.ko
  AUTOLOAD:=$(call AutoLoad,30,configfs)
endef

define KernelPackage/fs-configfs/description
 Kernel module for configfs support
endef

$(eval $(call KernelPackage,fs-configfs))

124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
define KernelPackage/fs-cramfs
  SUBMENU:=$(FS_MENU)
  TITLE:=Compressed RAM/ROM filesystem support
  DEPENDS:=+kmod-lib-zlib
  KCONFIG:= \
	CONFIG_CRAMFS
  FILES:=$(LINUX_DIR)/fs/cramfs/cramfs.ko
  AUTOLOAD:=$(call AutoLoad,30,cramfs)
endef

define KernelPackage/fs-cramfs/description
 Kernel module for cramfs support
endef

$(eval $(call KernelPackage,fs-cramfs))
139

140
define KernelPackage/fs-exportfs
nbd's avatar
nbd committed
141
  SUBMENU:=$(FS_MENU)
142
143
  TITLE:=exportfs kernel server support
  KCONFIG:=CONFIG_EXPORTFS
144
  FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
hauke's avatar
hauke committed
145
  AUTOLOAD:=$(call AutoLoad,20,exportfs,1)
nbd's avatar
nbd committed
146
147
endef

148
149
define KernelPackage/fs-exportfs/description
 Kernel module for exportfs. Needed for some other modules.
nbd's avatar
nbd committed
150
endef
151
152
153

$(eval $(call KernelPackage,fs-exportfs))

nbd's avatar
nbd committed
154

florian's avatar
florian committed
155
156
157
158
define KernelPackage/fs-ext4
  SUBMENU:=$(FS_MENU)
  TITLE:=EXT4 filesystem support
  KCONFIG:= \
hauke's avatar
hauke committed
159
160
	CONFIG_EXT4_FS \
	CONFIG_JBD2
florian's avatar
florian committed
161
  FILES:= \
162
	$(LINUX_DIR)/fs/ext4/ext4.ko \
163
	$(LINUX_DIR)/fs/jbd2/jbd2.ko \
164
	$(LINUX_DIR)/fs/mbcache.ko
165
  AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
166
  $(call AddDepends/crc16, +!LINUX_3_3:kmod-crypto-hash)
florian's avatar
florian committed
167
168
169
170
171
172
173
174
175
endef

define KernelPackage/fs-ext4/description
 Kernel module for EXT4 filesystem support
endef

$(eval $(call KernelPackage,fs-ext4))


luka's avatar
luka committed
176
177
178
179
180
181
182
define KernelPackage/fs-f2fs
  SUBMENU:=$(FS_MENU)
  TITLE:=F2FS filesystem support
  DEPENDS:=@!LINUX_3_3
  KCONFIG:= \
	CONFIG_F2FS_FS \
	CONFIG_F2FS_STAT_FS=y \
183
	CONFIG_F2FS_FS_XATTR=y \
184
185
	CONFIG_F2FS_FS_POSIX_ACL=n \
	CONFIG_F2FS_FS_SECURITY=n \
luka's avatar
luka committed
186
187
188
189
190
191
192
193
194
195
196
197
	CONFIG_F2FS_CHECK_FS=n
  FILES:=$(LINUX_DIR)/fs/f2fs/f2fs.ko
  AUTOLOAD:=$(call AutoLoad,30,f2fs,1)
endef

define KernelPackage/fs-f2fs/description
 Kernel module for F2FS filesystem support
endef

$(eval $(call KernelPackage,fs-f2fs))


nbd's avatar
nbd committed
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
define KernelPackage/fuse
  SUBMENU:=$(FS_MENU)
  TITLE:=FUSE (Filesystem in Userspace) support
  KCONFIG:= CONFIG_FUSE_FS
  FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
  AUTOLOAD:=$(call AutoLoad,80,fuse)
endef

define KernelPackage/fuse/description
 Kernel module for userspace filesystem support
endef

$(eval $(call KernelPackage,fuse))


213
define KernelPackage/fs-hfs
214
  SUBMENU:=$(FS_MENU)
215
  TITLE:=HFS filesystem support
216
  KCONFIG:=CONFIG_HFS_FS
217
  FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
218
  AUTOLOAD:=$(call AutoLoad,30,hfs)
219
  $(call AddDepends/nls)
220
endef
221

222
223
224
225
define KernelPackage/fs-hfs/description
 Kernel module for HFS filesystem support
endef

226
227
228
$(eval $(call KernelPackage,fs-hfs))


nbd's avatar
nbd committed
229
define KernelPackage/fs-hfsplus
230
  SUBMENU:=$(FS_MENU)
nbd's avatar
nbd committed
231
  TITLE:=HFS+ filesystem support
232
  KCONFIG:=CONFIG_HFSPLUS_FS
233
  FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
234
  AUTOLOAD:=$(call AutoLoad,30,hfsplus)
235
  $(call AddDepends/nls,utf8)
nbd's avatar
nbd committed
236
endef
237

238
239
240
241
define KernelPackage/fs-hfsplus/description
 Kernel module for HFS+ filesystem support
endef

nbd's avatar
nbd committed
242
243
$(eval $(call KernelPackage,fs-hfsplus))

244

245
define KernelPackage/fs-isofs
246
  SUBMENU:=$(FS_MENU)
247
  TITLE:=ISO9660 filesystem support
248
  DEPENDS:=+kmod-lib-zlib
249
  KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
250
  FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
251
  AUTOLOAD:=$(call AutoLoad,30,isofs)
252
  $(call AddDepends/nls)
253
endef
254

255
256
257
258
define KernelPackage/fs-isofs/description
 Kernel module for ISO9660 filesystem support
endef

259
260
$(eval $(call KernelPackage,fs-isofs))

261

262
define KernelPackage/fs-minix
263
  SUBMENU:=$(FS_MENU)
264
265
  TITLE:=Minix filesystem support
  KCONFIG:=CONFIG_MINIX_FS
266
  FILES:=$(LINUX_DIR)/fs/minix/minix.ko
267
  AUTOLOAD:=$(call AutoLoad,30,minix)
268
269
endef

270
271
272
define KernelPackage/fs-minix/description
 Kernel module for Minix filesystem support
endef
273

274
$(eval $(call KernelPackage,fs-minix))
275

276
277

define KernelPackage/fs-msdos
278
  SUBMENU:=$(FS_MENU)
279
  TITLE:=MSDOS filesystem support
280
  DEPENDS:=+kmod-fs-vfat
281
  KCONFIG:=CONFIG_MSDOS_FS
282
  FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
283
  AUTOLOAD:=$(call AutoLoad,40,msdos)
284
  $(call AddDepends/nls)
hauke's avatar
hauke committed
285
286
endef

287
288
289
290
291
define KernelPackage/fs-msdos/description
 Kernel module for MSDOS filesystem support
endef

$(eval $(call KernelPackage,fs-msdos))
292

293

nbd's avatar
nbd committed
294
define KernelPackage/fs-nfs
295
  SUBMENU:=$(FS_MENU)
nbd's avatar
nbd committed
296
  TITLE:=NFS filesystem support
297
  DEPENDS:=+kmod-fs-nfs-common +kmod-dnsresolver
298
  KCONFIG:= \
299
300
301
	CONFIG_NFS_FS \
	CONFIG_NFS_USE_LEGACY_DNS=n \
	CONFIG_NFS_USE_NEW_IDMAPPER=n
302
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.6.0)),1)
nbd's avatar
nbd committed
303
  FILES:= \
304
305
	$(LINUX_DIR)/fs/nfs/nfs.ko \
	$(LINUX_DIR)/fs/nfs/nfsv3.ko
306
307
308
309
else
  FILES:= \
	$(LINUX_DIR)/fs/nfs/nfs.ko
endif
310
  AUTOLOAD:=$(call AutoLoad,40,nfs nfsv3)
nbd's avatar
nbd committed
311
endef
312

313
314
315
316
define KernelPackage/fs-nfs/description
 Kernel module for NFS support
endef

nbd's avatar
nbd committed
317
318
$(eval $(call KernelPackage,fs-nfs))

319

320
define KernelPackage/fs-nfs-common
hauke's avatar
hauke committed
321
  SUBMENU:=$(FS_MENU)
322
323
324
325
  TITLE:=Common NFS filesystem modules
  KCONFIG:= \
	CONFIG_LOCKD \
	CONFIG_SUNRPC
326
327
328
329
330
331
332
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.18.0)),1)
  FILES:= \
	$(LINUX_DIR)/fs/nfs_common/grace.ko \
	$(LINUX_DIR)/fs/lockd/lockd.ko \
	$(LINUX_DIR)/net/sunrpc/sunrpc.ko
  AUTOLOAD:=$(call AutoLoad,30,grace sunrpc lockd)
else
333
  FILES:= \
334
335
	$(LINUX_DIR)/fs/lockd/lockd.ko \
	$(LINUX_DIR)/net/sunrpc/sunrpc.ko
336
  AUTOLOAD:=$(call AutoLoad,30,sunrpc lockd)
337
endif
hauke's avatar
hauke committed
338
339
endef

340
341
342
343
344
345
346
347
348
349
$(eval $(call KernelPackage,fs-nfs-common))


define KernelPackage/fs-nfs-common-v4
  SUBMENU:=$(FS_MENU)
  TITLE:=Common NFS V4 filesystem modules
  KCONFIG+=\
	CONFIG_SUNRPC_GSS\
	CONFIG_NFS_V4=y\
	CONFIG_NFSD_V4=y
350
  DEPENDS:= @BROKEN
351
  FILES+=$(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko
352
  AUTOLOAD=$(call AutoLoad,30,auth_rpcgss)
hauke's avatar
hauke committed
353
354
endef

355
356
357
358
359
define KernelPackage/fs-nfs-common-v4/description
 Kernel modules for NFS V4 & NFSD V4 kernel support
endef

$(eval $(call KernelPackage,fs-nfs-common-v4))
hauke's avatar
hauke committed
360
361


362
define KernelPackage/fs-nfsd
363
  SUBMENU:=$(FS_MENU)
364
  TITLE:=NFS kernel server support
365
  DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs
366
367
368
  KCONFIG:= \
	CONFIG_NFSD \
	CONFIG_NFSD_FAULT_INJECTION=n
369
  FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
370
  AUTOLOAD:=$(call AutoLoad,40,nfsd)
371
372
endef

373
374
375
376
define KernelPackage/fs-nfsd/description
 Kernel module for NFS kernel server support
endef

377
378
$(eval $(call KernelPackage,fs-nfsd))

379
380

define KernelPackage/fs-ntfs
381
  SUBMENU:=$(FS_MENU)
382
383
  TITLE:=NTFS filesystem support
  KCONFIG:=CONFIG_NTFS_FS
384
  FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
385
  AUTOLOAD:=$(call AutoLoad,30,ntfs)
386
  $(call AddDepends/nls)
387
endef
388

389
390
define KernelPackage/fs-ntfs/description
 Kernel module for NTFS filesystem support
391
392
endef

393
$(eval $(call KernelPackage,fs-ntfs))
394

395

396
397
398
399
define KernelPackage/fs-reiserfs
  SUBMENU:=$(FS_MENU)
  TITLE:=ReiserFS filesystem support
  KCONFIG:=CONFIG_REISERFS_FS
400
  FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
401
  AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
402
403
404
405
406
407
408
409
endef

define KernelPackage/fs-reiserfs/description
 Kernel module for ReiserFS support
endef

$(eval $(call KernelPackage,fs-reiserfs))

410
411
412
413
414

define KernelPackage/fs-udf
  SUBMENU:=$(FS_MENU)
  TITLE:=UDF filesystem support
  KCONFIG:=CONFIG_UDF_FS
415
  FILES:=$(LINUX_DIR)/fs/udf/udf.ko
416
  AUTOLOAD:=$(call AutoLoad,30,udf)
417
  DEPENDS:=+kmod-lib-crc-itu-t
418
  $(call AddDepends/nls)
419
420
421
422
423
424
425
426
427
endef

define KernelPackage/fs-udf/description
 Kernel module for UDF filesystem support
endef

$(eval $(call KernelPackage,fs-udf))


nbd's avatar
nbd committed
428
define KernelPackage/fs-vfat
429
  SUBMENU:=$(FS_MENU)
nbd's avatar
nbd committed
430
  TITLE:=VFAT filesystem support
431
432
433
  KCONFIG:= \
	CONFIG_FAT_FS \
	CONFIG_VFAT_FS
nbd's avatar
nbd committed
434
  FILES:= \
435
436
	$(LINUX_DIR)/fs/fat/fat.ko \
	$(LINUX_DIR)/fs/fat/vfat.ko
437
  AUTOLOAD:=$(call AutoLoad,30,fat vfat)
438
  $(call AddDepends/nls)
nbd's avatar
nbd committed
439
endef
440

441
442
443
444
define KernelPackage/fs-vfat/description
 Kernel module for VFAT filesystem support
endef

nbd's avatar
nbd committed
445
446
$(eval $(call KernelPackage,fs-vfat))

447

nbd's avatar
nbd committed
448
define KernelPackage/fs-xfs
449
  SUBMENU:=$(FS_MENU)
nbd's avatar
nbd committed
450
  TITLE:=XFS filesystem support
451
  KCONFIG:=CONFIG_XFS_FS
452
  DEPENDS:= +kmod-fs-exportfs +kmod-lib-crc32c @!avr32
453
  FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
454
  AUTOLOAD:=$(call AutoLoad,30,xfs,1)
nbd's avatar
nbd committed
455
endef
456

457
458
459
460
define KernelPackage/fs-xfs/description
 Kernel module for XFS support
endef

nbd's avatar
nbd committed
461
$(eval $(call KernelPackage,fs-xfs))
hauke's avatar
hauke committed
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477


define KernelPackage/fs-jfs
  SUBMENU:=$(FS_MENU)
  TITLE:=JFS filesystem support
  KCONFIG:=CONFIG_JFS_FS
  FILES:=$(LINUX_DIR)/fs/jfs/jfs.ko
  AUTOLOAD:=$(call AutoLoad,30,jfs,1)
  $(call AddDepends/nls)
endef

define KernelPackage/fs-jfs/description
 Kernel module for JFS support
endef

$(eval $(call KernelPackage,fs-jfs))