1
0

fs.mk 13 KB

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