fs.mk 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. #
  2. # Copyright (C) 2006-2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. FS_MENU:=Filesystems
  8. define KernelPackage/fs-9p
  9. SUBMENU:=$(FS_MENU)
  10. TITLE:=Plan 9 Resource Sharing Support
  11. DEPENDS:=+kmod-9pnet
  12. KCONFIG:=\
  13. CONFIG_9P_FS \
  14. CONFIG_9P_FS_POSIX_ACL=n \
  15. CONFIG_9P_FS_SECURITY=n \
  16. CONFIG_9P_FSCACHE=n
  17. FILES:=$(LINUX_DIR)/fs/9p/9p.ko
  18. AUTOLOAD:=$(call AutoLoad,30,9p)
  19. endef
  20. define KernelPackage/fs-9p/description
  21. Kernel module for Plan 9 Resource Sharing Support support
  22. endef
  23. $(eval $(call KernelPackage,fs-9p))
  24. define KernelPackage/fs-afs
  25. SUBMENU:=$(FS_MENU)
  26. TITLE:=Andrew FileSystem client
  27. DEFAULT:=n
  28. DEPENDS:=+kmod-rxrpc +kmod-dnsresolver +kmod-fs-fscache
  29. KCONFIG:=\
  30. CONFIG_AFS_FS=m \
  31. CONFIG_AFS_DEBUG=n \
  32. CONFIG_AFS_FSCACHE=y
  33. FILES:=$(LINUX_DIR)/fs/afs/kafs.ko
  34. AUTOLOAD:=$(call AutoLoad,30,kafs)
  35. endef
  36. define KernelPackage/fs-afs/description
  37. Kernel module for Andrew FileSystem client support
  38. endef
  39. $(eval $(call KernelPackage,fs-afs))
  40. define KernelPackage/fs-autofs4
  41. SUBMENU:=$(FS_MENU)
  42. TITLE:=AUTOFS4 filesystem support
  43. KCONFIG:= \
  44. CONFIG_AUTOFS4_FS \
  45. CONFIG_AUTOFS_FS
  46. FILES:= \
  47. $(LINUX_DIR)/fs/autofs/autofs4.ko
  48. AUTOLOAD:=$(call AutoLoad,30,autofs4)
  49. endef
  50. define KernelPackage/fs-autofs4/description
  51. Kernel module for AutoFS4 support
  52. endef
  53. $(eval $(call KernelPackage,fs-autofs4))
  54. define KernelPackage/fs-btrfs
  55. SUBMENU:=$(FS_MENU)
  56. TITLE:=BTRFS filesystem support
  57. DEPENDS:=+kmod-lib-crc32c +kmod-lib-lzo +kmod-lib-zlib-inflate +kmod-lib-zlib-deflate +kmod-lib-raid6 +kmod-lib-xor +kmod-lib-zstd
  58. KCONFIG:=\
  59. CONFIG_BTRFS_FS \
  60. CONFIG_BTRFS_FS_POSIX_ACL=n \
  61. CONFIG_BTRFS_FS_CHECK_INTEGRITY=n
  62. FILES:=\
  63. $(LINUX_DIR)/fs/btrfs/btrfs.ko
  64. AUTOLOAD:=$(call AutoLoad,30,btrfs,1)
  65. endef
  66. define KernelPackage/fs-btrfs/description
  67. Kernel module for BTRFS support
  68. endef
  69. $(eval $(call KernelPackage,fs-btrfs))
  70. define KernelPackage/fs-cifs
  71. SUBMENU:=$(FS_MENU)
  72. TITLE:=CIFS support
  73. KCONFIG:= \
  74. CONFIG_CIFS \
  75. CONFIG_CIFS_DFS_UPCALL=n \
  76. CONFIG_CIFS_UPCALL=n \
  77. CONFIG_CIFS_SMB311=n
  78. FILES:=$(LINUX_DIR)/fs/cifs/cifs.ko
  79. AUTOLOAD:=$(call AutoLoad,30,cifs)
  80. $(call AddDepends/nls)
  81. DEPENDS+= \
  82. +kmod-crypto-arc4 \
  83. +kmod-crypto-hmac \
  84. +kmod-crypto-md5 \
  85. +kmod-crypto-md4 \
  86. +kmod-crypto-des \
  87. +kmod-crypto-ecb \
  88. +kmod-crypto-sha256
  89. endef
  90. define KernelPackage/fs-cifs/description
  91. Kernel module for CIFS support
  92. endef
  93. $(eval $(call KernelPackage,fs-cifs))
  94. define KernelPackage/fs-configfs
  95. SUBMENU:=$(FS_MENU)
  96. TITLE:=Configuration filesystem support
  97. KCONFIG:= \
  98. CONFIG_CONFIGFS_FS
  99. FILES:=$(LINUX_DIR)/fs/configfs/configfs.ko
  100. AUTOLOAD:=$(call AutoLoad,30,configfs)
  101. endef
  102. define KernelPackage/fs-configfs/description
  103. Kernel module for configfs support
  104. endef
  105. $(eval $(call KernelPackage,fs-configfs))
  106. define KernelPackage/fs-cramfs
  107. SUBMENU:=$(FS_MENU)
  108. TITLE:=Compressed RAM/ROM filesystem support
  109. DEPENDS:=+kmod-lib-zlib-inflate
  110. KCONFIG:= \
  111. CONFIG_CRAMFS
  112. FILES:=$(LINUX_DIR)/fs/cramfs/cramfs.ko
  113. AUTOLOAD:=$(call AutoLoad,30,cramfs)
  114. endef
  115. define KernelPackage/fs-cramfs/description
  116. Kernel module for cramfs support
  117. endef
  118. $(eval $(call KernelPackage,fs-cramfs))
  119. define KernelPackage/fs-efivarfs
  120. SUBMENU:=$(FS_MENU)
  121. TITLE:=efivar filesystem support
  122. KCONFIG:=CONFIG_EFIVAR_FS
  123. FILES:=$(LINUX_DIR)/fs/efivarfs/efivarfs.ko
  124. DEPENDS:=@(x86_64||x86)
  125. AUTOLOAD:=$(call Autoload,90,efivarfs)
  126. endef
  127. define KernelPackage/fs-efivarfs/description
  128. Kernel module to support efivarfs file system mountpoint.
  129. endef
  130. $(eval $(call KernelPackage,fs-efivarfs))
  131. define KernelPackage/fs-exportfs
  132. SUBMENU:=$(FS_MENU)
  133. TITLE:=exportfs kernel server support
  134. KCONFIG:=CONFIG_EXPORTFS
  135. FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
  136. AUTOLOAD:=$(call AutoLoad,20,exportfs,1)
  137. endef
  138. define KernelPackage/fs-exportfs/description
  139. Kernel module for exportfs. Needed for some other modules.
  140. endef
  141. $(eval $(call KernelPackage,fs-exportfs))
  142. define KernelPackage/fs-ext4
  143. SUBMENU:=$(FS_MENU)
  144. TITLE:=EXT4 filesystem support
  145. DEPENDS := \
  146. +kmod-lib-crc16 \
  147. +kmod-crypto-hash \
  148. +kmod-crypto-crc32c
  149. KCONFIG:= \
  150. CONFIG_EXT4_FS \
  151. CONFIG_EXT4_ENCRYPTION=n \
  152. CONFIG_JBD2
  153. FILES:= \
  154. $(LINUX_DIR)/fs/ext4/ext4.ko \
  155. $(LINUX_DIR)/fs/jbd2/jbd2.ko \
  156. $(LINUX_DIR)/fs/mbcache.ko
  157. AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
  158. endef
  159. define KernelPackage/fs-ext4/description
  160. Kernel module for EXT4 filesystem support
  161. endef
  162. $(eval $(call KernelPackage,fs-ext4))
  163. define KernelPackage/fs-f2fs
  164. SUBMENU:=$(FS_MENU)
  165. TITLE:=F2FS filesystem support
  166. DEPENDS:= +kmod-crypto-hash +kmod-crypto-crc32 +kmod-nls-base
  167. KCONFIG:=CONFIG_F2FS_FS
  168. FILES:=$(LINUX_DIR)/fs/f2fs/f2fs.ko
  169. AUTOLOAD:=$(call AutoLoad,30,f2fs,1)
  170. endef
  171. define KernelPackage/fs-f2fs/description
  172. Kernel module for F2FS filesystem support
  173. endef
  174. $(eval $(call KernelPackage,fs-f2fs))
  175. define KernelPackage/fs-fscache
  176. SUBMENU:=$(FS_MENU)
  177. TITLE:=General filesystem local cache manager
  178. DEPENDS:=
  179. KCONFIG:=\
  180. CONFIG_FSCACHE=m \
  181. CONFIG_FSCACHE_STATS=y \
  182. CONFIG_FSCACHE_HISTOGRAM=n \
  183. CONFIG_FSCACHE_DEBUG=n \
  184. CONFIG_FSCACHE_OBJECT_LIST=n \
  185. CONFIG_CACHEFILES=y \
  186. CONFIG_CACHEFILES_DEBUG=n \
  187. CONFIG_CACHEFILES_HISTOGRAM=n
  188. FILES:=$(LINUX_DIR)/fs/fscache/fscache.ko
  189. AUTOLOAD:=$(call AutoLoad,29,fscache)
  190. endef
  191. $(eval $(call KernelPackage,fs-fscache))
  192. define KernelPackage/fs-hfs
  193. SUBMENU:=$(FS_MENU)
  194. TITLE:=HFS filesystem support
  195. KCONFIG:=CONFIG_HFS_FS
  196. FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
  197. AUTOLOAD:=$(call AutoLoad,30,hfs)
  198. $(call AddDepends/nls)
  199. endef
  200. define KernelPackage/fs-hfs/description
  201. Kernel module for HFS filesystem support
  202. endef
  203. $(eval $(call KernelPackage,fs-hfs))
  204. define KernelPackage/fs-hfsplus
  205. SUBMENU:=$(FS_MENU)
  206. TITLE:=HFS+ filesystem support
  207. KCONFIG:=CONFIG_HFSPLUS_FS
  208. FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
  209. AUTOLOAD:=$(call AutoLoad,30,hfsplus)
  210. $(call AddDepends/nls,utf8)
  211. endef
  212. define KernelPackage/fs-hfsplus/description
  213. Kernel module for HFS+ filesystem support
  214. endef
  215. $(eval $(call KernelPackage,fs-hfsplus))
  216. define KernelPackage/fs-isofs
  217. SUBMENU:=$(FS_MENU)
  218. TITLE:=ISO9660 filesystem support
  219. DEPENDS:=+kmod-lib-zlib-inflate
  220. KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
  221. FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
  222. AUTOLOAD:=$(call AutoLoad,30,isofs)
  223. $(call AddDepends/nls)
  224. endef
  225. define KernelPackage/fs-isofs/description
  226. Kernel module for ISO9660 filesystem support
  227. endef
  228. $(eval $(call KernelPackage,fs-isofs))
  229. define KernelPackage/fs-jfs
  230. SUBMENU:=$(FS_MENU)
  231. TITLE:=JFS filesystem support
  232. KCONFIG:=CONFIG_JFS_FS
  233. FILES:=$(LINUX_DIR)/fs/jfs/jfs.ko
  234. AUTOLOAD:=$(call AutoLoad,30,jfs,1)
  235. $(call AddDepends/nls)
  236. endef
  237. define KernelPackage/fs-jfs/description
  238. Kernel module for JFS support
  239. endef
  240. $(eval $(call KernelPackage,fs-jfs))
  241. define KernelPackage/fs-minix
  242. SUBMENU:=$(FS_MENU)
  243. TITLE:=Minix filesystem support
  244. KCONFIG:=CONFIG_MINIX_FS
  245. FILES:=$(LINUX_DIR)/fs/minix/minix.ko
  246. AUTOLOAD:=$(call AutoLoad,30,minix)
  247. endef
  248. define KernelPackage/fs-minix/description
  249. Kernel module for Minix filesystem support
  250. endef
  251. $(eval $(call KernelPackage,fs-minix))
  252. define KernelPackage/fs-msdos
  253. SUBMENU:=$(FS_MENU)
  254. TITLE:=MSDOS filesystem support
  255. DEPENDS:=+kmod-fs-vfat
  256. KCONFIG:=CONFIG_MSDOS_FS
  257. FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
  258. AUTOLOAD:=$(call AutoLoad,40,msdos)
  259. $(call AddDepends/nls)
  260. endef
  261. define KernelPackage/fs-msdos/description
  262. Kernel module for MSDOS filesystem support
  263. endef
  264. $(eval $(call KernelPackage,fs-msdos))
  265. define KernelPackage/fs-nfs
  266. SUBMENU:=$(FS_MENU)
  267. TITLE:=NFS filesystem client support
  268. DEPENDS:=+kmod-fs-nfs-common +kmod-dnsresolver
  269. KCONFIG:= \
  270. CONFIG_NFS_FS \
  271. CONFIG_NFS_USE_LEGACY_DNS=n \
  272. CONFIG_NFS_USE_NEW_IDMAPPER=n
  273. FILES:= \
  274. $(LINUX_DIR)/fs/nfs/nfs.ko
  275. AUTOLOAD:=$(call AutoLoad,40,nfs)
  276. endef
  277. define KernelPackage/fs-nfs/description
  278. Kernel module for NFS client support
  279. endef
  280. $(eval $(call KernelPackage,fs-nfs))
  281. define KernelPackage/fs-nfs-common
  282. SUBMENU:=$(FS_MENU)
  283. TITLE:=Common NFS filesystem modules
  284. KCONFIG:= \
  285. CONFIG_LOCKD \
  286. CONFIG_SUNRPC \
  287. CONFIG_GRACE_PERIOD
  288. FILES:= \
  289. $(LINUX_DIR)/fs/lockd/lockd.ko \
  290. $(LINUX_DIR)/net/sunrpc/sunrpc.ko \
  291. $(LINUX_DIR)/fs/nfs_common/grace.ko
  292. AUTOLOAD:=$(call AutoLoad,30,grace sunrpc lockd)
  293. endef
  294. $(eval $(call KernelPackage,fs-nfs-common))
  295. define KernelPackage/fs-nfs-common-rpcsec
  296. SUBMENU:=$(FS_MENU)
  297. TITLE:=NFS Secure RPC
  298. DEPENDS:= \
  299. +kmod-fs-nfs-common \
  300. +kmod-crypto-des \
  301. +kmod-crypto-cbc \
  302. +kmod-crypto-cts \
  303. +kmod-crypto-md5 \
  304. +kmod-crypto-sha1 \
  305. +kmod-crypto-hmac \
  306. +kmod-crypto-ecb \
  307. +kmod-crypto-arc4
  308. KCONFIG:= \
  309. CONFIG_SUNRPC_GSS \
  310. CONFIG_RPCSEC_GSS_KRB5
  311. FILES:= \
  312. $(LINUX_DIR)/lib/oid_registry.ko \
  313. $(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko \
  314. $(LINUX_DIR)/net/sunrpc/auth_gss/rpcsec_gss_krb5.ko
  315. AUTOLOAD:=$(call AutoLoad,31,oid_registry auth_rpcgss rpcsec_gss_krb5)
  316. endef
  317. define KernelPackage/fs-nfs-common-rpcsec/description
  318. Kernel modules for NFS Secure RPC
  319. endef
  320. $(eval $(call KernelPackage,fs-nfs-common-rpcsec))
  321. define KernelPackage/fs-nfs-v3
  322. SUBMENU:=$(FS_MENU)
  323. TITLE:=NFS3 filesystem client support
  324. DEPENDS:=+kmod-fs-nfs
  325. FILES:= \
  326. $(LINUX_DIR)/fs/nfs/nfsv3.ko
  327. AUTOLOAD:=$(call AutoLoad,41,nfsv3)
  328. endef
  329. define KernelPackage/fs-nfs-v3/description
  330. Kernel module for NFS v3 client support
  331. endef
  332. $(eval $(call KernelPackage,fs-nfs-v3))
  333. define KernelPackage/fs-nfs-v4
  334. SUBMENU:=$(FS_MENU)
  335. TITLE:=NFS4 filesystem client support
  336. DEPENDS:=+kmod-fs-nfs
  337. KCONFIG:= \
  338. CONFIG_NFS_V4=y
  339. FILES:= \
  340. $(LINUX_DIR)/fs/nfs/nfsv4.ko
  341. AUTOLOAD:=$(call AutoLoad,41,nfsv4)
  342. endef
  343. define KernelPackage/fs-nfs-v4/description
  344. Kernel module for NFS v4 client support
  345. endef
  346. $(eval $(call KernelPackage,fs-nfs-v4))
  347. define KernelPackage/fs-nfsd
  348. SUBMENU:=$(FS_MENU)
  349. TITLE:=NFS kernel server support
  350. DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs +kmod-fs-nfs-common-rpcsec
  351. KCONFIG:= \
  352. CONFIG_NFSD \
  353. CONFIG_NFSD_V4=y \
  354. CONFIG_NFSD_V4_SECURITY_LABEL=n \
  355. CONFIG_NFSD_BLOCKLAYOUT=n \
  356. CONFIG_NFSD_SCSILAYOUT=n \
  357. CONFIG_NFSD_FLEXFILELAYOUT=n \
  358. CONFIG_NFSD_FAULT_INJECTION=n
  359. FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
  360. AUTOLOAD:=$(call AutoLoad,40,nfsd)
  361. endef
  362. define KernelPackage/fs-nfsd/description
  363. Kernel module for NFS kernel server support
  364. endef
  365. $(eval $(call KernelPackage,fs-nfsd))
  366. define KernelPackage/fs-ntfs
  367. SUBMENU:=$(FS_MENU)
  368. TITLE:=NTFS filesystem support
  369. KCONFIG:=CONFIG_NTFS_FS
  370. FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
  371. AUTOLOAD:=$(call AutoLoad,30,ntfs)
  372. $(call AddDepends/nls)
  373. endef
  374. define KernelPackage/fs-ntfs/description
  375. Kernel module for NTFS filesystem support
  376. endef
  377. $(eval $(call KernelPackage,fs-ntfs))
  378. define KernelPackage/fs-reiserfs
  379. SUBMENU:=$(FS_MENU)
  380. TITLE:=ReiserFS filesystem support
  381. KCONFIG:=CONFIG_REISERFS_FS
  382. FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
  383. AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
  384. endef
  385. define KernelPackage/fs-reiserfs/description
  386. Kernel module for ReiserFS support
  387. endef
  388. $(eval $(call KernelPackage,fs-reiserfs))
  389. define KernelPackage/fs-squashfs
  390. SUBMENU:=$(FS_MENU)
  391. TITLE:=SquashFS 4.0 filesystem support
  392. KCONFIG:=CONFIG_SQUASHFS \
  393. CONFIG_SQUASHFS_XZ=y
  394. FILES:=$(LINUX_DIR)/fs/squashfs/squashfs.ko
  395. AUTOLOAD:=$(call AutoLoad,30,squashfs,1)
  396. endef
  397. define KernelPackage/fs-squashfs/description
  398. Kernel module for SquashFS 4.0 support
  399. endef
  400. $(eval $(call KernelPackage,fs-squashfs))
  401. define KernelPackage/fs-udf
  402. SUBMENU:=$(FS_MENU)
  403. TITLE:=UDF filesystem support
  404. KCONFIG:=CONFIG_UDF_FS
  405. FILES:=$(LINUX_DIR)/fs/udf/udf.ko
  406. AUTOLOAD:=$(call AutoLoad,30,udf)
  407. DEPENDS:=+kmod-lib-crc-itu-t
  408. $(call AddDepends/nls)
  409. endef
  410. define KernelPackage/fs-udf/description
  411. Kernel module for UDF filesystem support
  412. endef
  413. $(eval $(call KernelPackage,fs-udf))
  414. define KernelPackage/fs-vfat
  415. SUBMENU:=$(FS_MENU)
  416. TITLE:=VFAT filesystem support
  417. KCONFIG:= \
  418. CONFIG_FAT_FS \
  419. CONFIG_VFAT_FS
  420. FILES:= \
  421. $(LINUX_DIR)/fs/fat/fat.ko \
  422. $(LINUX_DIR)/fs/fat/vfat.ko
  423. AUTOLOAD:=$(call AutoLoad,30,fat vfat)
  424. $(call AddDepends/nls,cp437 iso8859-1 utf8)
  425. endef
  426. define KernelPackage/fs-vfat/description
  427. Kernel module for VFAT filesystem support
  428. endef
  429. $(eval $(call KernelPackage,fs-vfat))
  430. define KernelPackage/fs-xfs
  431. SUBMENU:=$(FS_MENU)
  432. TITLE:=XFS filesystem support
  433. KCONFIG:=CONFIG_XFS_FS
  434. DEPENDS:= +kmod-fs-exportfs +kmod-lib-crc32c
  435. FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
  436. AUTOLOAD:=$(call AutoLoad,30,xfs,1)
  437. endef
  438. define KernelPackage/fs-xfs/description
  439. Kernel module for XFS support
  440. endef
  441. $(eval $(call KernelPackage,fs-xfs))
  442. define KernelPackage/fuse
  443. SUBMENU:=$(FS_MENU)
  444. TITLE:=FUSE (Filesystem in Userspace) support
  445. KCONFIG:= CONFIG_FUSE_FS
  446. FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
  447. AUTOLOAD:=$(call AutoLoad,80,fuse)
  448. endef
  449. define KernelPackage/fuse/description
  450. Kernel module for userspace filesystem support
  451. endef
  452. $(eval $(call KernelPackage,fuse))