fs.mk 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  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-afs
  26. SUBMENU:=$(FS_MENU)
  27. TITLE:=Andrew FileSystem client
  28. DEFAULT:=n
  29. DEPENDS:=+kmod-rxrpc +kmod-dnsresolver +kmod-fs-fscache
  30. KCONFIG:=\
  31. CONFIG_AFS_FS=m \
  32. CONFIG_AFS_DEBUG=n \
  33. CONFIG_AFS_FSCACHE=y
  34. FILES:=$(LINUX_DIR)/fs/afs/kafs.ko
  35. AUTOLOAD:=$(call AutoLoad,30,kafs)
  36. endef
  37. define KernelPackage/fs-afs/description
  38. Kernel module for Andrew FileSystem client support
  39. endef
  40. $(eval $(call KernelPackage,fs-afs))
  41. define KernelPackage/fs-autofs4
  42. SUBMENU:=$(FS_MENU)
  43. TITLE:=AUTOFS4 filesystem support
  44. KCONFIG:=CONFIG_AUTOFS4_FS
  45. FILES:=$(LINUX_DIR)/fs/autofs4/autofs4.ko
  46. AUTOLOAD:=$(call AutoLoad,30,autofs4)
  47. endef
  48. define KernelPackage/fs-autofs4/description
  49. Kernel module for AutoFS4 support
  50. endef
  51. $(eval $(call KernelPackage,fs-autofs4))
  52. define KernelPackage/fs-btrfs
  53. SUBMENU:=$(FS_MENU)
  54. TITLE:=BTRFS filesystem support
  55. DEPENDS:=+kmod-lib-crc32c +kmod-lib-lzo +kmod-lib-zlib +kmod-lib-raid6 +kmod-lib-xor
  56. KCONFIG:=\
  57. CONFIG_BTRFS_FS \
  58. CONFIG_BTRFS_FS_POSIX_ACL=n \
  59. CONFIG_BTRFS_FS_CHECK_INTEGRITY=n
  60. FILES:=\
  61. $(LINUX_DIR)/fs/btrfs/btrfs.ko
  62. AUTOLOAD:=$(call AutoLoad,30,btrfs,1)
  63. endef
  64. define KernelPackage/fs-btrfs/description
  65. Kernel module for BTRFS support
  66. endef
  67. $(eval $(call KernelPackage,fs-btrfs))
  68. define KernelPackage/fs-cifs
  69. SUBMENU:=$(FS_MENU)
  70. TITLE:=CIFS support
  71. KCONFIG:= \
  72. CONFIG_CIFS \
  73. CONFIG_CIFS_DFS_UPCALL=n \
  74. CONFIG_CIFS_UPCALL=n
  75. FILES:=$(LINUX_DIR)/fs/cifs/cifs.ko
  76. AUTOLOAD:=$(call AutoLoad,30,cifs)
  77. $(call AddDepends/nls)
  78. DEPENDS+= \
  79. +kmod-crypto-arc4 \
  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
  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-exportfs
  117. SUBMENU:=$(FS_MENU)
  118. TITLE:=exportfs kernel server support
  119. KCONFIG:=CONFIG_EXPORTFS
  120. FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
  121. AUTOLOAD:=$(call AutoLoad,20,exportfs,1)
  122. endef
  123. define KernelPackage/fs-exportfs/description
  124. Kernel module for exportfs. Needed for some other modules.
  125. endef
  126. $(eval $(call KernelPackage,fs-exportfs))
  127. define KernelPackage/fs-ext4
  128. SUBMENU:=$(FS_MENU)
  129. TITLE:=EXT4 filesystem support
  130. DEPENDS := \
  131. +kmod-lib-crc16 \
  132. +kmod-crypto-hash
  133. KCONFIG:= \
  134. CONFIG_EXT4_FS \
  135. CONFIG_JBD2
  136. FILES:= \
  137. $(LINUX_DIR)/fs/ext4/ext4.ko \
  138. $(LINUX_DIR)/fs/jbd2/jbd2.ko \
  139. $(LINUX_DIR)/fs/mbcache.ko
  140. AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
  141. endef
  142. define KernelPackage/fs-ext4/description
  143. Kernel module for EXT4 filesystem support
  144. endef
  145. $(eval $(call KernelPackage,fs-ext4))
  146. define KernelPackage/fs-f2fs
  147. SUBMENU:=$(FS_MENU)
  148. TITLE:=F2FS filesystem support
  149. KCONFIG:= \
  150. CONFIG_F2FS_FS \
  151. CONFIG_F2FS_STAT_FS=y \
  152. CONFIG_F2FS_FS_XATTR=y \
  153. CONFIG_F2FS_FS_POSIX_ACL=n \
  154. CONFIG_F2FS_FS_SECURITY=n \
  155. CONFIG_F2FS_CHECK_FS=n
  156. FILES:=$(LINUX_DIR)/fs/f2fs/f2fs.ko
  157. AUTOLOAD:=$(call AutoLoad,30,f2fs,1)
  158. endef
  159. define KernelPackage/fs-f2fs/description
  160. Kernel module for F2FS filesystem support
  161. endef
  162. $(eval $(call KernelPackage,fs-f2fs))
  163. define KernelPackage/fuse
  164. SUBMENU:=$(FS_MENU)
  165. TITLE:=FUSE (Filesystem in Userspace) support
  166. KCONFIG:= CONFIG_FUSE_FS
  167. FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
  168. AUTOLOAD:=$(call AutoLoad,80,fuse)
  169. endef
  170. define KernelPackage/fuse/description
  171. Kernel module for userspace filesystem support
  172. endef
  173. $(eval $(call KernelPackage,fuse))
  174. define KernelPackage/fs-hfs
  175. SUBMENU:=$(FS_MENU)
  176. TITLE:=HFS filesystem support
  177. KCONFIG:=CONFIG_HFS_FS
  178. FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
  179. AUTOLOAD:=$(call AutoLoad,30,hfs)
  180. $(call AddDepends/nls)
  181. endef
  182. define KernelPackage/fs-hfs/description
  183. Kernel module for HFS filesystem support
  184. endef
  185. $(eval $(call KernelPackage,fs-hfs))
  186. define KernelPackage/fs-hfsplus
  187. SUBMENU:=$(FS_MENU)
  188. TITLE:=HFS+ filesystem support
  189. KCONFIG:=CONFIG_HFSPLUS_FS
  190. FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
  191. AUTOLOAD:=$(call AutoLoad,30,hfsplus)
  192. $(call AddDepends/nls,utf8)
  193. endef
  194. define KernelPackage/fs-hfsplus/description
  195. Kernel module for HFS+ filesystem support
  196. endef
  197. $(eval $(call KernelPackage,fs-hfsplus))
  198. define KernelPackage/fs-isofs
  199. SUBMENU:=$(FS_MENU)
  200. TITLE:=ISO9660 filesystem support
  201. DEPENDS:=+kmod-lib-zlib
  202. KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
  203. FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
  204. AUTOLOAD:=$(call AutoLoad,30,isofs)
  205. $(call AddDepends/nls)
  206. endef
  207. define KernelPackage/fs-isofs/description
  208. Kernel module for ISO9660 filesystem support
  209. endef
  210. $(eval $(call KernelPackage,fs-isofs))
  211. define KernelPackage/fs-minix
  212. SUBMENU:=$(FS_MENU)
  213. TITLE:=Minix filesystem support
  214. KCONFIG:=CONFIG_MINIX_FS
  215. FILES:=$(LINUX_DIR)/fs/minix/minix.ko
  216. AUTOLOAD:=$(call AutoLoad,30,minix)
  217. endef
  218. define KernelPackage/fs-minix/description
  219. Kernel module for Minix filesystem support
  220. endef
  221. $(eval $(call KernelPackage,fs-minix))
  222. define KernelPackage/fs-msdos
  223. SUBMENU:=$(FS_MENU)
  224. TITLE:=MSDOS filesystem support
  225. DEPENDS:=+kmod-fs-vfat
  226. KCONFIG:=CONFIG_MSDOS_FS
  227. FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
  228. AUTOLOAD:=$(call AutoLoad,40,msdos)
  229. $(call AddDepends/nls)
  230. endef
  231. define KernelPackage/fs-msdos/description
  232. Kernel module for MSDOS filesystem support
  233. endef
  234. $(eval $(call KernelPackage,fs-msdos))
  235. define KernelPackage/fs-nfs
  236. SUBMENU:=$(FS_MENU)
  237. TITLE:=NFS filesystem support
  238. DEPENDS:=+kmod-fs-nfs-common +kmod-dnsresolver
  239. KCONFIG:= \
  240. CONFIG_NFS_FS \
  241. CONFIG_NFS_USE_LEGACY_DNS=n \
  242. CONFIG_NFS_USE_NEW_IDMAPPER=n
  243. FILES:= \
  244. $(LINUX_DIR)/fs/nfs/nfs.ko \
  245. $(LINUX_DIR)/fs/nfs/nfsv3.ko
  246. AUTOLOAD:=$(call AutoLoad,40,nfs nfsv3)
  247. endef
  248. define KernelPackage/fs-nfs/description
  249. Kernel module for NFS support
  250. endef
  251. $(eval $(call KernelPackage,fs-nfs))
  252. define KernelPackage/fs-nfs-common
  253. SUBMENU:=$(FS_MENU)
  254. TITLE:=Common NFS filesystem modules
  255. KCONFIG:= \
  256. CONFIG_LOCKD \
  257. CONFIG_SUNRPC \
  258. CONFIG_GRACE_PERIOD
  259. FILES:= \
  260. $(LINUX_DIR)/fs/lockd/lockd.ko \
  261. $(LINUX_DIR)/net/sunrpc/sunrpc.ko \
  262. $(LINUX_DIR)/fs/nfs_common/grace.ko
  263. AUTOLOAD:=$(call AutoLoad,30,grace sunrpc lockd)
  264. endef
  265. $(eval $(call KernelPackage,fs-nfs-common))
  266. define KernelPackage/fs-nfs-common-v4
  267. SUBMENU:=$(FS_MENU)
  268. TITLE:=Common NFS V4 filesystem modules
  269. KCONFIG+=\
  270. CONFIG_SUNRPC_GSS\
  271. CONFIG_NFS_V4=y\
  272. CONFIG_NFSD_V4=y
  273. DEPENDS:= @BROKEN
  274. FILES+=$(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko
  275. AUTOLOAD=$(call AutoLoad,30,auth_rpcgss)
  276. endef
  277. define KernelPackage/fs-nfs-common-v4/description
  278. Kernel modules for NFS V4 & NFSD V4 kernel support
  279. endef
  280. $(eval $(call KernelPackage,fs-nfs-common-v4))
  281. define KernelPackage/fs-nfsd
  282. SUBMENU:=$(FS_MENU)
  283. TITLE:=NFS kernel server support
  284. DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs
  285. KCONFIG:= \
  286. CONFIG_NFSD \
  287. CONFIG_NFSD_FAULT_INJECTION=n
  288. FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
  289. AUTOLOAD:=$(call AutoLoad,40,nfsd)
  290. endef
  291. define KernelPackage/fs-nfsd/description
  292. Kernel module for NFS kernel server support
  293. endef
  294. $(eval $(call KernelPackage,fs-nfsd))
  295. define KernelPackage/fs-ntfs
  296. SUBMENU:=$(FS_MENU)
  297. TITLE:=NTFS filesystem support
  298. KCONFIG:=CONFIG_NTFS_FS
  299. FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
  300. AUTOLOAD:=$(call AutoLoad,30,ntfs)
  301. $(call AddDepends/nls)
  302. endef
  303. define KernelPackage/fs-ntfs/description
  304. Kernel module for NTFS filesystem support
  305. endef
  306. $(eval $(call KernelPackage,fs-ntfs))
  307. define KernelPackage/fs-reiserfs
  308. SUBMENU:=$(FS_MENU)
  309. TITLE:=ReiserFS filesystem support
  310. KCONFIG:=CONFIG_REISERFS_FS
  311. FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
  312. AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
  313. endef
  314. define KernelPackage/fs-reiserfs/description
  315. Kernel module for ReiserFS support
  316. endef
  317. $(eval $(call KernelPackage,fs-reiserfs))
  318. define KernelPackage/fs-udf
  319. SUBMENU:=$(FS_MENU)
  320. TITLE:=UDF filesystem support
  321. KCONFIG:=CONFIG_UDF_FS
  322. FILES:=$(LINUX_DIR)/fs/udf/udf.ko
  323. AUTOLOAD:=$(call AutoLoad,30,udf)
  324. DEPENDS:=+kmod-lib-crc-itu-t
  325. $(call AddDepends/nls)
  326. endef
  327. define KernelPackage/fs-udf/description
  328. Kernel module for UDF filesystem support
  329. endef
  330. $(eval $(call KernelPackage,fs-udf))
  331. define KernelPackage/fs-vfat
  332. SUBMENU:=$(FS_MENU)
  333. TITLE:=VFAT filesystem support
  334. KCONFIG:= \
  335. CONFIG_FAT_FS \
  336. CONFIG_VFAT_FS
  337. FILES:= \
  338. $(LINUX_DIR)/fs/fat/fat.ko \
  339. $(LINUX_DIR)/fs/fat/vfat.ko
  340. AUTOLOAD:=$(call AutoLoad,30,fat vfat)
  341. $(call AddDepends/nls)
  342. endef
  343. define KernelPackage/fs-vfat/description
  344. Kernel module for VFAT filesystem support
  345. endef
  346. $(eval $(call KernelPackage,fs-vfat))
  347. define KernelPackage/fs-xfs
  348. SUBMENU:=$(FS_MENU)
  349. TITLE:=XFS filesystem support
  350. KCONFIG:=CONFIG_XFS_FS
  351. DEPENDS:= +kmod-fs-exportfs +kmod-lib-crc32c
  352. FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
  353. AUTOLOAD:=$(call AutoLoad,30,xfs,1)
  354. endef
  355. define KernelPackage/fs-xfs/description
  356. Kernel module for XFS support
  357. endef
  358. $(eval $(call KernelPackage,fs-xfs))
  359. define KernelPackage/fs-jfs
  360. SUBMENU:=$(FS_MENU)
  361. TITLE:=JFS filesystem support
  362. KCONFIG:=CONFIG_JFS_FS
  363. FILES:=$(LINUX_DIR)/fs/jfs/jfs.ko
  364. AUTOLOAD:=$(call AutoLoad,30,jfs,1)
  365. $(call AddDepends/nls)
  366. endef
  367. define KernelPackage/fs-jfs/description
  368. Kernel module for JFS support
  369. endef
  370. $(eval $(call KernelPackage,fs-jfs))