fs.mk 12 KB

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