fs.mk 13 KB

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