fs.mk 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  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/autofs/autofs4.ko
  48. AUTOLOAD:=$(call AutoLoad,30,autofs4)
  49. endef
  50. define KernelPackage/fs-autofs4/description
  51. Kernel module for AutoFS4 support
  52. endef
  53. $(eval $(call KernelPackage,fs-autofs4))
  54. define KernelPackage/fs-btrfs
  55. SUBMENU:=$(FS_MENU)
  56. TITLE:=BTRFS filesystem support
  57. DEPENDS:=+kmod-lib-crc32c +kmod-lib-lzo +kmod-lib-zlib-inflate +kmod-lib-zlib-deflate +kmod-lib-raid6 +kmod-lib-xor +kmod-lib-zstd
  58. KCONFIG:=\
  59. CONFIG_BTRFS_FS \
  60. CONFIG_BTRFS_FS_POSIX_ACL=n \
  61. CONFIG_BTRFS_FS_CHECK_INTEGRITY=n
  62. FILES:=\
  63. $(LINUX_DIR)/fs/btrfs/btrfs.ko
  64. AUTOLOAD:=$(call AutoLoad,30,btrfs,1)
  65. endef
  66. define KernelPackage/fs-btrfs/description
  67. Kernel module for BTRFS support
  68. endef
  69. $(eval $(call KernelPackage,fs-btrfs))
  70. define KernelPackage/fs-cifs
  71. SUBMENU:=$(FS_MENU)
  72. TITLE:=CIFS support
  73. KCONFIG:= \
  74. CONFIG_CIFS \
  75. CONFIG_CIFS_DFS_UPCALL=n \
  76. CONFIG_CIFS_UPCALL=n
  77. FILES:=$(LINUX_DIR)/fs/cifs/cifs.ko
  78. AUTOLOAD:=$(call AutoLoad,30,cifs)
  79. $(call AddDepends/nls)
  80. DEPENDS+= \
  81. +kmod-crypto-md4 \
  82. +kmod-crypto-md5 \
  83. +kmod-crypto-sha256 \
  84. +kmod-crypto-sha512 \
  85. +kmod-crypto-cmac \
  86. +kmod-crypto-hmac \
  87. +kmod-crypto-arc4 \
  88. +kmod-crypto-aead \
  89. +kmod-crypto-ccm \
  90. +kmod-crypto-ecb \
  91. +kmod-crypto-des
  92. endef
  93. define KernelPackage/fs-cifs/description
  94. Kernel module for CIFS support
  95. endef
  96. $(eval $(call KernelPackage,fs-cifs))
  97. define KernelPackage/fs-configfs
  98. SUBMENU:=$(FS_MENU)
  99. TITLE:=Configuration filesystem support
  100. KCONFIG:= \
  101. CONFIG_CONFIGFS_FS
  102. FILES:=$(LINUX_DIR)/fs/configfs/configfs.ko
  103. AUTOLOAD:=$(call AutoLoad,30,configfs)
  104. endef
  105. define KernelPackage/fs-configfs/description
  106. Kernel module for configfs support
  107. endef
  108. $(eval $(call KernelPackage,fs-configfs))
  109. define KernelPackage/fs-cramfs
  110. SUBMENU:=$(FS_MENU)
  111. TITLE:=Compressed RAM/ROM filesystem support
  112. DEPENDS:=+kmod-lib-zlib-inflate
  113. KCONFIG:= \
  114. CONFIG_CRAMFS
  115. FILES:=$(LINUX_DIR)/fs/cramfs/cramfs.ko
  116. AUTOLOAD:=$(call AutoLoad,30,cramfs)
  117. endef
  118. define KernelPackage/fs-cramfs/description
  119. Kernel module for cramfs support
  120. endef
  121. $(eval $(call KernelPackage,fs-cramfs))
  122. define KernelPackage/fs-efivarfs
  123. SUBMENU:=$(FS_MENU)
  124. TITLE:=efivar filesystem support
  125. KCONFIG:=CONFIG_EFIVAR_FS
  126. FILES:=$(LINUX_DIR)/fs/efivarfs/efivarfs.ko
  127. DEPENDS:=@(x86_64||x86)
  128. AUTOLOAD:=$(call Autoload,90,efivarfs)
  129. endef
  130. define KernelPackage/fs-efivarfs/description
  131. Kernel module to support efivarfs file system mountpoint.
  132. endef
  133. $(eval $(call KernelPackage,fs-efivarfs))
  134. define KernelPackage/fs-exportfs
  135. SUBMENU:=$(FS_MENU)
  136. TITLE:=exportfs kernel server support
  137. KCONFIG:=CONFIG_EXPORTFS
  138. FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
  139. AUTOLOAD:=$(call AutoLoad,20,exportfs,1)
  140. endef
  141. define KernelPackage/fs-exportfs/description
  142. Kernel module for exportfs. Needed for some other modules.
  143. endef
  144. $(eval $(call KernelPackage,fs-exportfs))
  145. define KernelPackage/fs-ext4
  146. SUBMENU:=$(FS_MENU)
  147. TITLE:=EXT4 filesystem support
  148. DEPENDS := \
  149. +kmod-lib-crc16 \
  150. +kmod-crypto-hash \
  151. +kmod-crypto-crc32c
  152. KCONFIG:= \
  153. CONFIG_EXT4_FS \
  154. CONFIG_EXT4_ENCRYPTION=n \
  155. CONFIG_JBD2
  156. FILES:= \
  157. $(LINUX_DIR)/fs/ext4/ext4.ko \
  158. $(LINUX_DIR)/fs/jbd2/jbd2.ko \
  159. $(LINUX_DIR)/fs/mbcache.ko
  160. AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
  161. endef
  162. define KernelPackage/fs-ext4/description
  163. Kernel module for EXT4 filesystem support
  164. endef
  165. $(eval $(call KernelPackage,fs-ext4))
  166. define KernelPackage/fs-f2fs
  167. SUBMENU:=$(FS_MENU)
  168. TITLE:=F2FS filesystem support
  169. DEPENDS:= +kmod-crypto-hash +kmod-crypto-crc32 +kmod-nls-base
  170. KCONFIG:=CONFIG_F2FS_FS
  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. DEPENDS:=+kmod-cdrom
  199. KCONFIG:=CONFIG_HFS_FS
  200. FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
  201. AUTOLOAD:=$(call AutoLoad,30,hfs)
  202. $(call AddDepends/nls)
  203. endef
  204. define KernelPackage/fs-hfs/description
  205. Kernel module for HFS filesystem support
  206. endef
  207. $(eval $(call KernelPackage,fs-hfs))
  208. define KernelPackage/fs-hfsplus
  209. SUBMENU:=$(FS_MENU)
  210. TITLE:=HFS+ filesystem support
  211. DEPENDS:=+kmod-cdrom
  212. KCONFIG:=CONFIG_HFSPLUS_FS
  213. FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
  214. AUTOLOAD:=$(call AutoLoad,30,hfsplus)
  215. $(call AddDepends/nls,utf8)
  216. endef
  217. define KernelPackage/fs-hfsplus/description
  218. Kernel module for HFS+ filesystem support
  219. endef
  220. $(eval $(call KernelPackage,fs-hfsplus))
  221. define KernelPackage/fs-isofs
  222. SUBMENU:=$(FS_MENU)
  223. TITLE:=ISO9660 filesystem support
  224. DEPENDS:=+kmod-lib-zlib-inflate +kmod-cdrom
  225. KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
  226. FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
  227. AUTOLOAD:=$(call AutoLoad,30,isofs)
  228. $(call AddDepends/nls)
  229. endef
  230. define KernelPackage/fs-isofs/description
  231. Kernel module for ISO9660 filesystem support
  232. endef
  233. $(eval $(call KernelPackage,fs-isofs))
  234. define KernelPackage/fs-jfs
  235. SUBMENU:=$(FS_MENU)
  236. TITLE:=JFS filesystem support
  237. KCONFIG:=CONFIG_JFS_FS
  238. FILES:=$(LINUX_DIR)/fs/jfs/jfs.ko
  239. AUTOLOAD:=$(call AutoLoad,30,jfs,1)
  240. $(call AddDepends/nls)
  241. endef
  242. define KernelPackage/fs-jfs/description
  243. Kernel module for JFS support
  244. endef
  245. $(eval $(call KernelPackage,fs-jfs))
  246. define KernelPackage/fs-minix
  247. SUBMENU:=$(FS_MENU)
  248. TITLE:=Minix filesystem support
  249. KCONFIG:=CONFIG_MINIX_FS
  250. FILES:=$(LINUX_DIR)/fs/minix/minix.ko
  251. AUTOLOAD:=$(call AutoLoad,30,minix)
  252. endef
  253. define KernelPackage/fs-minix/description
  254. Kernel module for Minix filesystem support
  255. endef
  256. $(eval $(call KernelPackage,fs-minix))
  257. define KernelPackage/fs-msdos
  258. SUBMENU:=$(FS_MENU)
  259. TITLE:=MSDOS filesystem support
  260. DEPENDS:=+kmod-fs-vfat
  261. KCONFIG:=CONFIG_MSDOS_FS
  262. FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
  263. AUTOLOAD:=$(call AutoLoad,40,msdos)
  264. $(call AddDepends/nls)
  265. endef
  266. define KernelPackage/fs-msdos/description
  267. Kernel module for MSDOS filesystem support
  268. endef
  269. $(eval $(call KernelPackage,fs-msdos))
  270. define KernelPackage/fs-nfs
  271. SUBMENU:=$(FS_MENU)
  272. TITLE:=NFS filesystem client support
  273. DEPENDS:=+kmod-fs-nfs-common +kmod-dnsresolver
  274. KCONFIG:= \
  275. CONFIG_NFS_FS \
  276. CONFIG_NFS_USE_LEGACY_DNS=n \
  277. CONFIG_NFS_USE_NEW_IDMAPPER=n
  278. FILES:= \
  279. $(LINUX_DIR)/fs/nfs/nfs.ko
  280. AUTOLOAD:=$(call AutoLoad,40,nfs)
  281. endef
  282. define KernelPackage/fs-nfs/description
  283. Kernel module for NFS client support
  284. endef
  285. $(eval $(call KernelPackage,fs-nfs))
  286. define KernelPackage/fs-nfs-common
  287. SUBMENU:=$(FS_MENU)
  288. TITLE:=Common NFS filesystem modules
  289. KCONFIG:= \
  290. CONFIG_LOCKD \
  291. CONFIG_SUNRPC \
  292. CONFIG_GRACE_PERIOD
  293. FILES:= \
  294. $(LINUX_DIR)/fs/lockd/lockd.ko \
  295. $(LINUX_DIR)/net/sunrpc/sunrpc.ko \
  296. $(LINUX_DIR)/fs/nfs_common/grace.ko \
  297. $(LINUX_DIR)/fs/nfs_common/[email protected]
  298. AUTOLOAD:=$(call AutoLoad,30,grace sunrpc lockd)
  299. endef
  300. $(eval $(call KernelPackage,fs-nfs-common))
  301. define KernelPackage/fs-nfs-common-rpcsec
  302. SUBMENU:=$(FS_MENU)
  303. TITLE:=NFS Secure RPC
  304. DEPENDS:= \
  305. +kmod-fs-nfs-common \
  306. +kmod-crypto-des \
  307. +kmod-crypto-cbc \
  308. +kmod-crypto-cts \
  309. +kmod-crypto-md5 \
  310. +kmod-crypto-sha1 \
  311. +kmod-crypto-hmac \
  312. +kmod-crypto-ecb \
  313. +kmod-crypto-arc4
  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 client 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. FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
  389. AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
  390. endef
  391. define KernelPackage/fs-reiserfs/description
  392. Kernel module for ReiserFS support
  393. endef
  394. $(eval $(call KernelPackage,fs-reiserfs))
  395. define KernelPackage/fs-squashfs
  396. SUBMENU:=$(FS_MENU)
  397. TITLE:=SquashFS 4.0 filesystem support
  398. KCONFIG:=CONFIG_SQUASHFS \
  399. CONFIG_SQUASHFS_XZ=y
  400. FILES:=$(LINUX_DIR)/fs/squashfs/squashfs.ko
  401. AUTOLOAD:=$(call AutoLoad,30,squashfs,1)
  402. endef
  403. define KernelPackage/fs-squashfs/description
  404. Kernel module for SquashFS 4.0 support
  405. endef
  406. $(eval $(call KernelPackage,fs-squashfs))
  407. define KernelPackage/fs-udf
  408. SUBMENU:=$(FS_MENU)
  409. TITLE:=UDF filesystem support
  410. KCONFIG:=CONFIG_UDF_FS
  411. FILES:=$(LINUX_DIR)/fs/udf/udf.ko
  412. AUTOLOAD:=$(call AutoLoad,30,udf)
  413. DEPENDS:=+kmod-lib-crc-itu-t +kmod-cdrom
  414. $(call AddDepends/nls)
  415. endef
  416. define KernelPackage/fs-udf/description
  417. Kernel module for UDF filesystem support
  418. endef
  419. $(eval $(call KernelPackage,fs-udf))
  420. define KernelPackage/fs-vfat
  421. SUBMENU:=$(FS_MENU)
  422. TITLE:=VFAT filesystem support
  423. KCONFIG:= \
  424. CONFIG_FAT_FS \
  425. CONFIG_VFAT_FS
  426. FILES:= \
  427. $(LINUX_DIR)/fs/fat/fat.ko \
  428. $(LINUX_DIR)/fs/fat/vfat.ko
  429. AUTOLOAD:=$(call AutoLoad,30,fat vfat)
  430. $(call AddDepends/nls,cp437 iso8859-1 utf8)
  431. endef
  432. define KernelPackage/fs-vfat/description
  433. Kernel module for VFAT filesystem support
  434. endef
  435. $(eval $(call KernelPackage,fs-vfat))
  436. define KernelPackage/fs-xfs
  437. SUBMENU:=$(FS_MENU)
  438. TITLE:=XFS filesystem support
  439. KCONFIG:=CONFIG_XFS_FS
  440. DEPENDS:= +kmod-fs-exportfs +kmod-lib-crc32c
  441. FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
  442. AUTOLOAD:=$(call AutoLoad,30,xfs,1)
  443. endef
  444. define KernelPackage/fs-xfs/description
  445. Kernel module for XFS support
  446. endef
  447. $(eval $(call KernelPackage,fs-xfs))
  448. define KernelPackage/fuse
  449. SUBMENU:=$(FS_MENU)
  450. TITLE:=FUSE (Filesystem in Userspace) support
  451. KCONFIG:= CONFIG_FUSE_FS
  452. FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
  453. AUTOLOAD:=$(call AutoLoad,80,fuse)
  454. endef
  455. define KernelPackage/fuse/description
  456. Kernel module for userspace filesystem support
  457. endef
  458. $(eval $(call KernelPackage,fuse))