fs.mk 12 KB

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