fs.mk 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  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
  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. FILES:=$(LINUX_DIR)/fs/cifs/cifs.ko
  93. AUTOLOAD:=$(call AutoLoad,30,cifs)
  94. $(call AddDepends/nls)
  95. DEPENDS+= \
  96. +kmod-crypto-hmac \
  97. +kmod-crypto-md5 \
  98. +kmod-crypto-md4 \
  99. +kmod-crypto-des \
  100. +kmod-crypto-ecb \
  101. +kmod-crypto-sha256
  102. endef
  103. define KernelPackage/fs-cifs/description
  104. Kernel module for CIFS support
  105. endef
  106. $(eval $(call KernelPackage,fs-cifs))
  107. define KernelPackage/fs-configfs
  108. SUBMENU:=$(FS_MENU)
  109. TITLE:=Configuration filesystem support
  110. KCONFIG:= \
  111. CONFIG_CONFIGFS_FS
  112. FILES:=$(LINUX_DIR)/fs/configfs/configfs.ko
  113. AUTOLOAD:=$(call AutoLoad,30,configfs)
  114. endef
  115. define KernelPackage/fs-configfs/description
  116. Kernel module for configfs support
  117. endef
  118. $(eval $(call KernelPackage,fs-configfs))
  119. define KernelPackage/fs-cramfs
  120. SUBMENU:=$(FS_MENU)
  121. TITLE:=Compressed RAM/ROM filesystem support
  122. DEPENDS:=+kmod-lib-zlib-inflate
  123. KCONFIG:= \
  124. CONFIG_CRAMFS
  125. FILES:=$(LINUX_DIR)/fs/cramfs/cramfs.ko
  126. AUTOLOAD:=$(call AutoLoad,30,cramfs)
  127. endef
  128. define KernelPackage/fs-cramfs/description
  129. Kernel module for cramfs support
  130. endef
  131. $(eval $(call KernelPackage,fs-cramfs))
  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/fuse
  183. SUBMENU:=$(FS_MENU)
  184. TITLE:=FUSE (Filesystem in Userspace) support
  185. KCONFIG:= CONFIG_FUSE_FS
  186. FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
  187. AUTOLOAD:=$(call AutoLoad,80,fuse)
  188. endef
  189. define KernelPackage/fuse/description
  190. Kernel module for userspace filesystem support
  191. endef
  192. $(eval $(call KernelPackage,fuse))
  193. define KernelPackage/fs-hfs
  194. SUBMENU:=$(FS_MENU)
  195. TITLE:=HFS filesystem support
  196. KCONFIG:=CONFIG_HFS_FS
  197. FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
  198. AUTOLOAD:=$(call AutoLoad,30,hfs)
  199. $(call AddDepends/nls)
  200. endef
  201. define KernelPackage/fs-hfs/description
  202. Kernel module for HFS filesystem support
  203. endef
  204. $(eval $(call KernelPackage,fs-hfs))
  205. define KernelPackage/fs-hfsplus
  206. SUBMENU:=$(FS_MENU)
  207. TITLE:=HFS+ filesystem support
  208. KCONFIG:=CONFIG_HFSPLUS_FS
  209. FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
  210. AUTOLOAD:=$(call AutoLoad,30,hfsplus)
  211. $(call AddDepends/nls,utf8)
  212. endef
  213. define KernelPackage/fs-hfsplus/description
  214. Kernel module for HFS+ filesystem support
  215. endef
  216. $(eval $(call KernelPackage,fs-hfsplus))
  217. define KernelPackage/fs-isofs
  218. SUBMENU:=$(FS_MENU)
  219. TITLE:=ISO9660 filesystem support
  220. DEPENDS:=+kmod-lib-zlib-inflate
  221. KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
  222. FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
  223. AUTOLOAD:=$(call AutoLoad,30,isofs)
  224. $(call AddDepends/nls)
  225. endef
  226. define KernelPackage/fs-isofs/description
  227. Kernel module for ISO9660 filesystem support
  228. endef
  229. $(eval $(call KernelPackage,fs-isofs))
  230. define KernelPackage/fs-minix
  231. SUBMENU:=$(FS_MENU)
  232. TITLE:=Minix filesystem support
  233. KCONFIG:=CONFIG_MINIX_FS
  234. FILES:=$(LINUX_DIR)/fs/minix/minix.ko
  235. AUTOLOAD:=$(call AutoLoad,30,minix)
  236. endef
  237. define KernelPackage/fs-minix/description
  238. Kernel module for Minix filesystem support
  239. endef
  240. $(eval $(call KernelPackage,fs-minix))
  241. define KernelPackage/fs-msdos
  242. SUBMENU:=$(FS_MENU)
  243. TITLE:=MSDOS filesystem support
  244. DEPENDS:=+kmod-fs-vfat
  245. KCONFIG:=CONFIG_MSDOS_FS
  246. FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
  247. AUTOLOAD:=$(call AutoLoad,40,msdos)
  248. $(call AddDepends/nls)
  249. endef
  250. define KernelPackage/fs-msdos/description
  251. Kernel module for MSDOS filesystem support
  252. endef
  253. $(eval $(call KernelPackage,fs-msdos))
  254. define KernelPackage/fs-nfs
  255. SUBMENU:=$(FS_MENU)
  256. TITLE:=NFS filesystem support
  257. DEPENDS:=+kmod-fs-nfs-common +kmod-dnsresolver
  258. KCONFIG:= \
  259. CONFIG_NFS_FS \
  260. CONFIG_NFS_USE_LEGACY_DNS=n \
  261. CONFIG_NFS_USE_NEW_IDMAPPER=n
  262. FILES:= \
  263. $(LINUX_DIR)/fs/nfs/nfs.ko \
  264. $(LINUX_DIR)/fs/nfs/nfsv3.ko
  265. AUTOLOAD:=$(call AutoLoad,40,nfs nfsv3)
  266. endef
  267. define KernelPackage/fs-nfs/description
  268. Kernel module for NFS support
  269. endef
  270. $(eval $(call KernelPackage,fs-nfs))
  271. define KernelPackage/fs-nfs-common
  272. SUBMENU:=$(FS_MENU)
  273. TITLE:=Common NFS filesystem modules
  274. KCONFIG:= \
  275. CONFIG_LOCKD \
  276. CONFIG_SUNRPC \
  277. CONFIG_GRACE_PERIOD
  278. FILES:= \
  279. $(LINUX_DIR)/fs/lockd/lockd.ko \
  280. $(LINUX_DIR)/net/sunrpc/sunrpc.ko \
  281. $(LINUX_DIR)/fs/nfs_common/grace.ko
  282. AUTOLOAD:=$(call AutoLoad,30,grace sunrpc lockd)
  283. endef
  284. $(eval $(call KernelPackage,fs-nfs-common))
  285. define KernelPackage/fs-nfs-common-v4
  286. SUBMENU:=$(FS_MENU)
  287. TITLE:=Common NFS V4 filesystem modules
  288. KCONFIG+=\
  289. CONFIG_SUNRPC_GSS\
  290. CONFIG_NFS_V4=y\
  291. CONFIG_NFSD_V4=y
  292. DEPENDS:= @BROKEN
  293. FILES+=$(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko
  294. AUTOLOAD=$(call AutoLoad,30,auth_rpcgss)
  295. endef
  296. define KernelPackage/fs-nfs-common-v4/description
  297. Kernel modules for NFS V4 & NFSD V4 kernel support
  298. endef
  299. $(eval $(call KernelPackage,fs-nfs-common-v4))
  300. define KernelPackage/fs-nfsd
  301. SUBMENU:=$(FS_MENU)
  302. TITLE:=NFS kernel server support
  303. DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs
  304. KCONFIG:= \
  305. CONFIG_NFSD \
  306. CONFIG_NFSD_FAULT_INJECTION=n
  307. FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
  308. AUTOLOAD:=$(call AutoLoad,40,nfsd)
  309. endef
  310. define KernelPackage/fs-nfsd/description
  311. Kernel module for NFS kernel server support
  312. endef
  313. $(eval $(call KernelPackage,fs-nfsd))
  314. define KernelPackage/fs-ntfs
  315. SUBMENU:=$(FS_MENU)
  316. TITLE:=NTFS filesystem support
  317. KCONFIG:=CONFIG_NTFS_FS
  318. FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
  319. AUTOLOAD:=$(call AutoLoad,30,ntfs)
  320. $(call AddDepends/nls)
  321. endef
  322. define KernelPackage/fs-ntfs/description
  323. Kernel module for NTFS filesystem support
  324. endef
  325. $(eval $(call KernelPackage,fs-ntfs))
  326. define KernelPackage/fs-reiserfs
  327. SUBMENU:=$(FS_MENU)
  328. TITLE:=ReiserFS filesystem support
  329. KCONFIG:=CONFIG_REISERFS_FS \
  330. CONFIG_REISERFS_FS_XATTR=y
  331. FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
  332. AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
  333. endef
  334. define KernelPackage/fs-reiserfs/description
  335. Kernel module for ReiserFS support
  336. endef
  337. $(eval $(call KernelPackage,fs-reiserfs))
  338. define KernelPackage/fs-squashfs
  339. SUBMENU:=$(FS_MENU)
  340. TITLE:=SquashFS 4.0 filesystem support
  341. KCONFIG:=CONFIG_SQUASHFS \
  342. CONFIG_SQUASHFS_XZ=y
  343. FILES:=$(LINUX_DIR)/fs/squashfs/squashfs.ko
  344. AUTOLOAD:=$(call AutoLoad,30,squashfs,1)
  345. endef
  346. define KernelPackage/fs-squashfs/description
  347. Kernel module for SquashFS 4.0 support
  348. endef
  349. $(eval $(call KernelPackage,fs-squashfs))
  350. define KernelPackage/fs-udf
  351. SUBMENU:=$(FS_MENU)
  352. TITLE:=UDF filesystem support
  353. KCONFIG:=CONFIG_UDF_FS
  354. FILES:=$(LINUX_DIR)/fs/udf/udf.ko
  355. AUTOLOAD:=$(call AutoLoad,30,udf)
  356. DEPENDS:=+kmod-lib-crc-itu-t
  357. $(call AddDepends/nls)
  358. endef
  359. define KernelPackage/fs-udf/description
  360. Kernel module for UDF filesystem support
  361. endef
  362. $(eval $(call KernelPackage,fs-udf))
  363. define KernelPackage/fs-vfat
  364. SUBMENU:=$(FS_MENU)
  365. TITLE:=VFAT filesystem support
  366. KCONFIG:= \
  367. CONFIG_FAT_FS \
  368. CONFIG_VFAT_FS
  369. FILES:= \
  370. $(LINUX_DIR)/fs/fat/fat.ko \
  371. $(LINUX_DIR)/fs/fat/vfat.ko
  372. AUTOLOAD:=$(call AutoLoad,30,fat vfat)
  373. $(call AddDepends/nls,cp437 iso8859-1 utf8)
  374. endef
  375. define KernelPackage/fs-vfat/description
  376. Kernel module for VFAT filesystem support
  377. endef
  378. $(eval $(call KernelPackage,fs-vfat))
  379. define KernelPackage/fs-xfs
  380. SUBMENU:=$(FS_MENU)
  381. TITLE:=XFS filesystem support
  382. KCONFIG:=CONFIG_XFS_FS
  383. DEPENDS:= +kmod-fs-exportfs +kmod-lib-crc32c
  384. FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
  385. AUTOLOAD:=$(call AutoLoad,30,xfs,1)
  386. endef
  387. define KernelPackage/fs-xfs/description
  388. Kernel module for XFS support
  389. endef
  390. $(eval $(call KernelPackage,fs-xfs))
  391. define KernelPackage/fs-jfs
  392. SUBMENU:=$(FS_MENU)
  393. TITLE:=JFS filesystem support
  394. KCONFIG:=CONFIG_JFS_FS
  395. FILES:=$(LINUX_DIR)/fs/jfs/jfs.ko
  396. AUTOLOAD:=$(call AutoLoad,30,jfs,1)
  397. $(call AddDepends/nls)
  398. endef
  399. define KernelPackage/fs-jfs/description
  400. Kernel module for JFS support
  401. endef
  402. $(eval $(call KernelPackage,fs-jfs))