fs.mk 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  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-efivarfs
  117. SUBMENU:=$(FS_MENU)
  118. TITLE:=efivar filesystem support
  119. KCONFIG:=CONFIG_EFIVAR_FS
  120. FILES:=$(LINUX_DIR)/fs/efivarfs/efivarfs.ko
  121. DEPENDS:=@(x86_64||x86)
  122. AUTOLOAD:=$(call Autoload,90,efivarfs)
  123. endef
  124. define KernelPackage/fs-efivarfs/description
  125. Kernel module to support efivarfs file system mountpoint.
  126. endef
  127. $(eval $(call KernelPackage,fs-efivarfs))
  128. define KernelPackage/fs-exportfs
  129. SUBMENU:=$(FS_MENU)
  130. TITLE:=exportfs kernel server support
  131. KCONFIG:=CONFIG_EXPORTFS
  132. FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
  133. AUTOLOAD:=$(call AutoLoad,20,exportfs,1)
  134. endef
  135. define KernelPackage/fs-exportfs/description
  136. Kernel module for exportfs. Needed for some other modules.
  137. endef
  138. $(eval $(call KernelPackage,fs-exportfs))
  139. define KernelPackage/fs-ext4
  140. SUBMENU:=$(FS_MENU)
  141. TITLE:=EXT4 filesystem support
  142. DEPENDS := \
  143. +kmod-lib-crc16 \
  144. +kmod-crypto-hash \
  145. +kmod-crypto-crc32c
  146. KCONFIG:= \
  147. CONFIG_EXT4_FS \
  148. CONFIG_EXT4_ENCRYPTION=n \
  149. CONFIG_JBD2
  150. FILES:= \
  151. $(LINUX_DIR)/fs/ext4/ext4.ko \
  152. $(LINUX_DIR)/fs/jbd2/jbd2.ko \
  153. $(LINUX_DIR)/fs/mbcache.ko
  154. AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
  155. endef
  156. define KernelPackage/fs-ext4/description
  157. Kernel module for EXT4 filesystem support
  158. endef
  159. $(eval $(call KernelPackage,fs-ext4))
  160. define KernelPackage/fs-f2fs
  161. SUBMENU:=$(FS_MENU)
  162. TITLE:=F2FS filesystem support
  163. DEPENDS:= +kmod-crypto-hash +kmod-crypto-crc32
  164. KCONFIG:= \
  165. CONFIG_F2FS_FS \
  166. CONFIG_F2FS_STAT_FS=y \
  167. CONFIG_F2FS_FS_XATTR=y \
  168. CONFIG_F2FS_FS_POSIX_ACL=n \
  169. CONFIG_F2FS_FS_SECURITY=n \
  170. CONFIG_F2FS_CHECK_FS=n
  171. FILES:=$(LINUX_DIR)/fs/f2fs/f2fs.ko
  172. AUTOLOAD:=$(call AutoLoad,30,f2fs,1)
  173. endef
  174. define KernelPackage/fs-f2fs/description
  175. Kernel module for F2FS filesystem support
  176. endef
  177. $(eval $(call KernelPackage,fs-f2fs))
  178. define KernelPackage/fs-fscache
  179. SUBMENU:=$(FS_MENU)
  180. TITLE:=General filesystem local cache manager
  181. DEPENDS:=
  182. KCONFIG:=\
  183. CONFIG_FSCACHE=m \
  184. CONFIG_FSCACHE_STATS=y \
  185. CONFIG_FSCACHE_HISTOGRAM=n \
  186. CONFIG_FSCACHE_DEBUG=n \
  187. CONFIG_FSCACHE_OBJECT_LIST=n \
  188. CONFIG_CACHEFILES=y \
  189. CONFIG_CACHEFILES_DEBUG=n \
  190. CONFIG_CACHEFILES_HISTOGRAM=n
  191. FILES:=$(LINUX_DIR)/fs/fscache/fscache.ko
  192. AUTOLOAD:=$(call AutoLoad,29,fscache)
  193. endef
  194. $(eval $(call KernelPackage,fs-fscache))
  195. define KernelPackage/fs-hfs
  196. SUBMENU:=$(FS_MENU)
  197. TITLE:=HFS filesystem support
  198. KCONFIG:=CONFIG_HFS_FS
  199. FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
  200. AUTOLOAD:=$(call AutoLoad,30,hfs)
  201. $(call AddDepends/nls)
  202. endef
  203. define KernelPackage/fs-hfs/description
  204. Kernel module for HFS filesystem support
  205. endef
  206. $(eval $(call KernelPackage,fs-hfs))
  207. define KernelPackage/fs-hfsplus
  208. SUBMENU:=$(FS_MENU)
  209. TITLE:=HFS+ filesystem support
  210. KCONFIG:=CONFIG_HFSPLUS_FS
  211. FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
  212. AUTOLOAD:=$(call AutoLoad,30,hfsplus)
  213. $(call AddDepends/nls,utf8)
  214. endef
  215. define KernelPackage/fs-hfsplus/description
  216. Kernel module for HFS+ filesystem support
  217. endef
  218. $(eval $(call KernelPackage,fs-hfsplus))
  219. define KernelPackage/fs-isofs
  220. SUBMENU:=$(FS_MENU)
  221. TITLE:=ISO9660 filesystem support
  222. DEPENDS:=+kmod-lib-zlib-inflate
  223. KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
  224. FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
  225. AUTOLOAD:=$(call AutoLoad,30,isofs)
  226. $(call AddDepends/nls)
  227. endef
  228. define KernelPackage/fs-isofs/description
  229. Kernel module for ISO9660 filesystem support
  230. endef
  231. $(eval $(call KernelPackage,fs-isofs))
  232. define KernelPackage/fs-jfs
  233. SUBMENU:=$(FS_MENU)
  234. TITLE:=JFS filesystem support
  235. KCONFIG:=CONFIG_JFS_FS
  236. FILES:=$(LINUX_DIR)/fs/jfs/jfs.ko
  237. AUTOLOAD:=$(call AutoLoad,30,jfs,1)
  238. $(call AddDepends/nls)
  239. endef
  240. define KernelPackage/fs-jfs/description
  241. Kernel module for JFS support
  242. endef
  243. $(eval $(call KernelPackage,fs-jfs))
  244. define KernelPackage/fs-minix
  245. SUBMENU:=$(FS_MENU)
  246. TITLE:=Minix filesystem support
  247. KCONFIG:=CONFIG_MINIX_FS
  248. FILES:=$(LINUX_DIR)/fs/minix/minix.ko
  249. AUTOLOAD:=$(call AutoLoad,30,minix)
  250. endef
  251. define KernelPackage/fs-minix/description
  252. Kernel module for Minix filesystem support
  253. endef
  254. $(eval $(call KernelPackage,fs-minix))
  255. define KernelPackage/fs-msdos
  256. SUBMENU:=$(FS_MENU)
  257. TITLE:=MSDOS filesystem support
  258. DEPENDS:=+kmod-fs-vfat
  259. KCONFIG:=CONFIG_MSDOS_FS
  260. FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
  261. AUTOLOAD:=$(call AutoLoad,40,msdos)
  262. $(call AddDepends/nls)
  263. endef
  264. define KernelPackage/fs-msdos/description
  265. Kernel module for MSDOS filesystem support
  266. endef
  267. $(eval $(call KernelPackage,fs-msdos))
  268. define KernelPackage/fs-nfs
  269. SUBMENU:=$(FS_MENU)
  270. TITLE:=NFS filesystem client support
  271. DEPENDS:=+kmod-fs-nfs-common +kmod-dnsresolver
  272. KCONFIG:= \
  273. CONFIG_NFS_FS \
  274. CONFIG_NFS_USE_LEGACY_DNS=n \
  275. CONFIG_NFS_USE_NEW_IDMAPPER=n
  276. FILES:= \
  277. $(LINUX_DIR)/fs/nfs/nfs.ko
  278. AUTOLOAD:=$(call AutoLoad,40,nfs)
  279. endef
  280. define KernelPackage/fs-nfs/description
  281. Kernel module for NFS client support
  282. endef
  283. $(eval $(call KernelPackage,fs-nfs))
  284. define KernelPackage/fs-nfs-common
  285. SUBMENU:=$(FS_MENU)
  286. TITLE:=Common NFS filesystem modules
  287. KCONFIG:= \
  288. CONFIG_LOCKD \
  289. CONFIG_SUNRPC \
  290. CONFIG_GRACE_PERIOD
  291. FILES:= \
  292. $(LINUX_DIR)/fs/lockd/lockd.ko \
  293. $(LINUX_DIR)/net/sunrpc/sunrpc.ko \
  294. $(LINUX_DIR)/fs/nfs_common/grace.ko
  295. AUTOLOAD:=$(call AutoLoad,30,grace sunrpc lockd)
  296. endef
  297. $(eval $(call KernelPackage,fs-nfs-common))
  298. define KernelPackage/fs-nfs-common-rpcsec
  299. SUBMENU:=$(FS_MENU)
  300. TITLE:=NFS Secure RPC
  301. DEPENDS:= \
  302. +kmod-fs-nfs-common \
  303. +kmod-crypto-des \
  304. +kmod-crypto-cbc \
  305. +kmod-crypto-cts \
  306. +kmod-crypto-md5 \
  307. +kmod-crypto-sha1 \
  308. +kmod-crypto-hmac \
  309. +kmod-crypto-ecb
  310. KCONFIG:= \
  311. CONFIG_SUNRPC_GSS \
  312. CONFIG_RPCSEC_GSS_KRB5
  313. FILES:= \
  314. $(LINUX_DIR)/lib/oid_registry.ko \
  315. $(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko \
  316. $(LINUX_DIR)/net/sunrpc/auth_gss/rpcsec_gss_krb5.ko
  317. AUTOLOAD:=$(call AutoLoad,31,oid_registry auth_rpcgss rpcsec_gss_krb5)
  318. endef
  319. define KernelPackage/fs-nfs-common-rpcsec/description
  320. Kernel modules for NFS Secure RPC
  321. endef
  322. $(eval $(call KernelPackage,fs-nfs-common-rpcsec))
  323. define KernelPackage/fs-nfs-v3
  324. SUBMENU:=$(FS_MENU)
  325. TITLE:=NFS3 filesystem client support
  326. DEPENDS:=+kmod-fs-nfs
  327. FILES:= \
  328. $(LINUX_DIR)/fs/nfs/nfsv3.ko
  329. AUTOLOAD:=$(call AutoLoad,41,nfsv3)
  330. endef
  331. define KernelPackage/fs-nfs-v3/description
  332. Kernel module for NFS v3 client support
  333. endef
  334. $(eval $(call KernelPackage,fs-nfs-v3))
  335. define KernelPackage/fs-nfs-v4
  336. SUBMENU:=$(FS_MENU)
  337. TITLE:=NFS4 filesystem client support
  338. DEPENDS:=+kmod-fs-nfs
  339. KCONFIG:= \
  340. CONFIG_NFS_V4=y
  341. FILES:= \
  342. $(LINUX_DIR)/fs/nfs/nfsv4.ko
  343. AUTOLOAD:=$(call AutoLoad,41,nfsv4)
  344. endef
  345. define KernelPackage/fs-nfs-v4/description
  346. Kernel module for NFS v4 support
  347. endef
  348. $(eval $(call KernelPackage,fs-nfs-v4))
  349. define KernelPackage/fs-nfsd
  350. SUBMENU:=$(FS_MENU)
  351. TITLE:=NFS kernel server support
  352. DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs +kmod-fs-nfs-common-rpcsec
  353. KCONFIG:= \
  354. CONFIG_NFSD \
  355. CONFIG_NFSD_V4=y \
  356. CONFIG_NFSD_V4_SECURITY_LABEL=n \
  357. CONFIG_NFSD_BLOCKLAYOUT=n \
  358. CONFIG_NFSD_SCSILAYOUT=n \
  359. CONFIG_NFSD_FLEXFILELAYOUT=n \
  360. CONFIG_NFSD_FAULT_INJECTION=n
  361. FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
  362. AUTOLOAD:=$(call AutoLoad,40,nfsd)
  363. endef
  364. define KernelPackage/fs-nfsd/description
  365. Kernel module for NFS kernel server support
  366. endef
  367. $(eval $(call KernelPackage,fs-nfsd))
  368. define KernelPackage/fs-ntfs
  369. SUBMENU:=$(FS_MENU)
  370. TITLE:=NTFS filesystem support
  371. KCONFIG:=CONFIG_NTFS_FS
  372. FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
  373. AUTOLOAD:=$(call AutoLoad,30,ntfs)
  374. $(call AddDepends/nls)
  375. endef
  376. define KernelPackage/fs-ntfs/description
  377. Kernel module for NTFS filesystem support
  378. endef
  379. $(eval $(call KernelPackage,fs-ntfs))
  380. define KernelPackage/fs-reiserfs
  381. SUBMENU:=$(FS_MENU)
  382. TITLE:=ReiserFS filesystem support
  383. KCONFIG:=CONFIG_REISERFS_FS \
  384. CONFIG_REISERFS_FS_XATTR=y
  385. FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
  386. AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
  387. endef
  388. define KernelPackage/fs-reiserfs/description
  389. Kernel module for ReiserFS support
  390. endef
  391. $(eval $(call KernelPackage,fs-reiserfs))
  392. define KernelPackage/fs-squashfs
  393. SUBMENU:=$(FS_MENU)
  394. TITLE:=SquashFS 4.0 filesystem support
  395. KCONFIG:=CONFIG_SQUASHFS \
  396. CONFIG_SQUASHFS_XZ=y
  397. FILES:=$(LINUX_DIR)/fs/squashfs/squashfs.ko
  398. AUTOLOAD:=$(call AutoLoad,30,squashfs,1)
  399. endef
  400. define KernelPackage/fs-squashfs/description
  401. Kernel module for SquashFS 4.0 support
  402. endef
  403. $(eval $(call KernelPackage,fs-squashfs))
  404. define KernelPackage/fs-udf
  405. SUBMENU:=$(FS_MENU)
  406. TITLE:=UDF filesystem support
  407. KCONFIG:=CONFIG_UDF_FS
  408. FILES:=$(LINUX_DIR)/fs/udf/udf.ko
  409. AUTOLOAD:=$(call AutoLoad,30,udf)
  410. DEPENDS:=+kmod-lib-crc-itu-t
  411. $(call AddDepends/nls)
  412. endef
  413. define KernelPackage/fs-udf/description
  414. Kernel module for UDF filesystem support
  415. endef
  416. $(eval $(call KernelPackage,fs-udf))
  417. define KernelPackage/fs-vfat
  418. SUBMENU:=$(FS_MENU)
  419. TITLE:=VFAT filesystem support
  420. KCONFIG:= \
  421. CONFIG_FAT_FS \
  422. CONFIG_VFAT_FS
  423. FILES:= \
  424. $(LINUX_DIR)/fs/fat/fat.ko \
  425. $(LINUX_DIR)/fs/fat/vfat.ko
  426. AUTOLOAD:=$(call AutoLoad,30,fat vfat)
  427. $(call AddDepends/nls,cp437 iso8859-1 utf8)
  428. endef
  429. define KernelPackage/fs-vfat/description
  430. Kernel module for VFAT filesystem support
  431. endef
  432. $(eval $(call KernelPackage,fs-vfat))
  433. define KernelPackage/fs-xfs
  434. SUBMENU:=$(FS_MENU)
  435. TITLE:=XFS filesystem support
  436. KCONFIG:=CONFIG_XFS_FS
  437. DEPENDS:= +kmod-fs-exportfs +kmod-lib-crc32c
  438. FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
  439. AUTOLOAD:=$(call AutoLoad,30,xfs,1)
  440. endef
  441. define KernelPackage/fs-xfs/description
  442. Kernel module for XFS support
  443. endef
  444. $(eval $(call KernelPackage,fs-xfs))
  445. define KernelPackage/fuse
  446. SUBMENU:=$(FS_MENU)
  447. TITLE:=FUSE (Filesystem in Userspace) support
  448. KCONFIG:= CONFIG_FUSE_FS
  449. FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
  450. AUTOLOAD:=$(call AutoLoad,80,fuse)
  451. endef
  452. define KernelPackage/fuse/description
  453. Kernel module for userspace filesystem support
  454. endef
  455. $(eval $(call KernelPackage,fuse))