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. 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:=CONFIG_AUTOFS4_FS
  44. FILES:=$(LINUX_DIR)/fs/autofs4/autofs4.ko
  45. AUTOLOAD:=$(call AutoLoad,30,autofs4)
  46. endef
  47. define KernelPackage/fs-autofs4/description
  48. Kernel module for AutoFS4 support
  49. endef
  50. $(eval $(call KernelPackage,fs-autofs4))
  51. define KernelPackage/fs-btrfs
  52. SUBMENU:=$(FS_MENU)
  53. TITLE:=BTRFS filesystem support
  54. DEPENDS:=+kmod-lib-crc32c +kmod-lib-lzo +kmod-lib-zlib +kmod-lib-raid6 +kmod-lib-xor
  55. KCONFIG:=\
  56. CONFIG_BTRFS_FS \
  57. CONFIG_BTRFS_FS_POSIX_ACL=n \
  58. CONFIG_BTRFS_FS_CHECK_INTEGRITY=n
  59. FILES:=\
  60. $(LINUX_DIR)/fs/btrfs/btrfs.ko
  61. AUTOLOAD:=$(call AutoLoad,30,btrfs,1)
  62. endef
  63. define KernelPackage/fs-btrfs/description
  64. Kernel module for BTRFS support
  65. endef
  66. $(eval $(call KernelPackage,fs-btrfs))
  67. define KernelPackage/fs-cifs
  68. SUBMENU:=$(FS_MENU)
  69. TITLE:=CIFS support
  70. KCONFIG:= \
  71. CONFIG_CIFS \
  72. CONFIG_CIFS_DFS_UPCALL=n \
  73. CONFIG_CIFS_UPCALL=n
  74. FILES:=$(LINUX_DIR)/fs/cifs/cifs.ko
  75. AUTOLOAD:=$(call AutoLoad,30,cifs)
  76. $(call AddDepends/nls)
  77. DEPENDS+= \
  78. +kmod-crypto-arc4 \
  79. +kmod-crypto-hmac \
  80. +kmod-crypto-md5 \
  81. +kmod-crypto-md4 \
  82. +kmod-crypto-des \
  83. +kmod-crypto-ecb \
  84. +kmod-crypto-sha256
  85. endef
  86. define KernelPackage/fs-cifs/description
  87. Kernel module for CIFS support
  88. endef
  89. $(eval $(call KernelPackage,fs-cifs))
  90. define KernelPackage/fs-configfs
  91. SUBMENU:=$(FS_MENU)
  92. TITLE:=Configuration filesystem support
  93. KCONFIG:= \
  94. CONFIG_CONFIGFS_FS
  95. FILES:=$(LINUX_DIR)/fs/configfs/configfs.ko
  96. AUTOLOAD:=$(call AutoLoad,30,configfs)
  97. endef
  98. define KernelPackage/fs-configfs/description
  99. Kernel module for configfs support
  100. endef
  101. $(eval $(call KernelPackage,fs-configfs))
  102. define KernelPackage/fs-cramfs
  103. SUBMENU:=$(FS_MENU)
  104. TITLE:=Compressed RAM/ROM filesystem support
  105. DEPENDS:=+kmod-lib-zlib
  106. KCONFIG:= \
  107. CONFIG_CRAMFS
  108. FILES:=$(LINUX_DIR)/fs/cramfs/cramfs.ko
  109. AUTOLOAD:=$(call AutoLoad,30,cramfs)
  110. endef
  111. define KernelPackage/fs-cramfs/description
  112. Kernel module for cramfs support
  113. endef
  114. $(eval $(call KernelPackage,fs-cramfs))
  115. define KernelPackage/fs-exportfs
  116. SUBMENU:=$(FS_MENU)
  117. TITLE:=exportfs kernel server support
  118. KCONFIG:=CONFIG_EXPORTFS
  119. FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
  120. AUTOLOAD:=$(call AutoLoad,20,exportfs,1)
  121. endef
  122. define KernelPackage/fs-exportfs/description
  123. Kernel module for exportfs. Needed for some other modules.
  124. endef
  125. $(eval $(call KernelPackage,fs-exportfs))
  126. define KernelPackage/fs-ext4
  127. SUBMENU:=$(FS_MENU)
  128. TITLE:=EXT4 filesystem support
  129. DEPENDS := \
  130. +kmod-lib-crc16 \
  131. +kmod-crypto-hash
  132. KCONFIG:= \
  133. CONFIG_EXT4_FS \
  134. CONFIG_EXT4_ENCRYPTION=n \
  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))