fs.mk 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  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_XATTR=y \
  74. CONFIG_CIFS_DFS_UPCALL=n \
  75. CONFIG_CIFS_UPCALL=n
  76. FILES:=$(LINUX_DIR)/fs/cifs/cifs.ko
  77. AUTOLOAD:=$(call AutoLoad,30,cifs)
  78. $(call AddDepends/nls)
  79. DEPENDS+= \
  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_EXT4_ENCRYPTION=n \
  136. CONFIG_JBD2
  137. FILES:= \
  138. $(LINUX_DIR)/fs/ext4/ext4.ko \
  139. $(LINUX_DIR)/fs/jbd2/jbd2.ko \
  140. $(LINUX_DIR)/fs/mbcache.ko
  141. AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
  142. endef
  143. define KernelPackage/fs-ext4/description
  144. Kernel module for EXT4 filesystem support
  145. endef
  146. $(eval $(call KernelPackage,fs-ext4))
  147. define KernelPackage/fs-f2fs
  148. SUBMENU:=$(FS_MENU)
  149. TITLE:=F2FS filesystem support
  150. KCONFIG:= \
  151. CONFIG_F2FS_FS \
  152. CONFIG_F2FS_STAT_FS=y \
  153. CONFIG_F2FS_FS_XATTR=y \
  154. CONFIG_F2FS_FS_POSIX_ACL=n \
  155. CONFIG_F2FS_FS_SECURITY=n \
  156. CONFIG_F2FS_CHECK_FS=n
  157. FILES:=$(LINUX_DIR)/fs/f2fs/f2fs.ko
  158. AUTOLOAD:=$(call AutoLoad,30,f2fs,1)
  159. endef
  160. define KernelPackage/fs-f2fs/description
  161. Kernel module for F2FS filesystem support
  162. endef
  163. $(eval $(call KernelPackage,fs-f2fs))
  164. define KernelPackage/fuse
  165. SUBMENU:=$(FS_MENU)
  166. TITLE:=FUSE (Filesystem in Userspace) support
  167. KCONFIG:= CONFIG_FUSE_FS
  168. FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
  169. AUTOLOAD:=$(call AutoLoad,80,fuse)
  170. endef
  171. define KernelPackage/fuse/description
  172. Kernel module for userspace filesystem support
  173. endef
  174. $(eval $(call KernelPackage,fuse))
  175. define KernelPackage/fs-hfs
  176. SUBMENU:=$(FS_MENU)
  177. TITLE:=HFS filesystem support
  178. KCONFIG:=CONFIG_HFS_FS
  179. FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
  180. AUTOLOAD:=$(call AutoLoad,30,hfs)
  181. $(call AddDepends/nls)
  182. endef
  183. define KernelPackage/fs-hfs/description
  184. Kernel module for HFS filesystem support
  185. endef
  186. $(eval $(call KernelPackage,fs-hfs))
  187. define KernelPackage/fs-hfsplus
  188. SUBMENU:=$(FS_MENU)
  189. TITLE:=HFS+ filesystem support
  190. KCONFIG:=CONFIG_HFSPLUS_FS
  191. FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
  192. AUTOLOAD:=$(call AutoLoad,30,hfsplus)
  193. $(call AddDepends/nls,utf8)
  194. endef
  195. define KernelPackage/fs-hfsplus/description
  196. Kernel module for HFS+ filesystem support
  197. endef
  198. $(eval $(call KernelPackage,fs-hfsplus))
  199. define KernelPackage/fs-isofs
  200. SUBMENU:=$(FS_MENU)
  201. TITLE:=ISO9660 filesystem support
  202. DEPENDS:=+kmod-lib-zlib
  203. KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
  204. FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
  205. AUTOLOAD:=$(call AutoLoad,30,isofs)
  206. $(call AddDepends/nls)
  207. endef
  208. define KernelPackage/fs-isofs/description
  209. Kernel module for ISO9660 filesystem support
  210. endef
  211. $(eval $(call KernelPackage,fs-isofs))
  212. define KernelPackage/fs-minix
  213. SUBMENU:=$(FS_MENU)
  214. TITLE:=Minix filesystem support
  215. KCONFIG:=CONFIG_MINIX_FS
  216. FILES:=$(LINUX_DIR)/fs/minix/minix.ko
  217. AUTOLOAD:=$(call AutoLoad,30,minix)
  218. endef
  219. define KernelPackage/fs-minix/description
  220. Kernel module for Minix filesystem support
  221. endef
  222. $(eval $(call KernelPackage,fs-minix))
  223. define KernelPackage/fs-msdos
  224. SUBMENU:=$(FS_MENU)
  225. TITLE:=MSDOS filesystem support
  226. DEPENDS:=+kmod-fs-vfat
  227. KCONFIG:=CONFIG_MSDOS_FS
  228. FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
  229. AUTOLOAD:=$(call AutoLoad,40,msdos)
  230. $(call AddDepends/nls)
  231. endef
  232. define KernelPackage/fs-msdos/description
  233. Kernel module for MSDOS filesystem support
  234. endef
  235. $(eval $(call KernelPackage,fs-msdos))
  236. define KernelPackage/fs-nfs
  237. SUBMENU:=$(FS_MENU)
  238. TITLE:=NFS filesystem support
  239. DEPENDS:=+kmod-fs-nfs-common +kmod-dnsresolver
  240. KCONFIG:= \
  241. CONFIG_NFS_FS \
  242. CONFIG_NFS_USE_LEGACY_DNS=n \
  243. CONFIG_NFS_USE_NEW_IDMAPPER=n
  244. FILES:= \
  245. $(LINUX_DIR)/fs/nfs/nfs.ko \
  246. $(LINUX_DIR)/fs/nfs/nfsv3.ko
  247. AUTOLOAD:=$(call AutoLoad,40,nfs nfsv3)
  248. endef
  249. define KernelPackage/fs-nfs/description
  250. Kernel module for NFS support
  251. endef
  252. $(eval $(call KernelPackage,fs-nfs))
  253. define KernelPackage/fs-nfs-common
  254. SUBMENU:=$(FS_MENU)
  255. TITLE:=Common NFS filesystem modules
  256. KCONFIG:= \
  257. CONFIG_LOCKD \
  258. CONFIG_SUNRPC \
  259. CONFIG_GRACE_PERIOD
  260. FILES:= \
  261. $(LINUX_DIR)/fs/lockd/lockd.ko \
  262. $(LINUX_DIR)/net/sunrpc/sunrpc.ko \
  263. $(LINUX_DIR)/fs/nfs_common/grace.ko
  264. AUTOLOAD:=$(call AutoLoad,30,grace sunrpc lockd)
  265. endef
  266. $(eval $(call KernelPackage,fs-nfs-common))
  267. define KernelPackage/fs-nfs-common-v4
  268. SUBMENU:=$(FS_MENU)
  269. TITLE:=Common NFS V4 filesystem modules
  270. KCONFIG+=\
  271. CONFIG_SUNRPC_GSS\
  272. CONFIG_NFS_V4=y\
  273. CONFIG_NFSD_V4=y
  274. DEPENDS:= @BROKEN
  275. FILES+=$(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko
  276. AUTOLOAD=$(call AutoLoad,30,auth_rpcgss)
  277. endef
  278. define KernelPackage/fs-nfs-common-v4/description
  279. Kernel modules for NFS V4 & NFSD V4 kernel support
  280. endef
  281. $(eval $(call KernelPackage,fs-nfs-common-v4))
  282. define KernelPackage/fs-nfsd
  283. SUBMENU:=$(FS_MENU)
  284. TITLE:=NFS kernel server support
  285. DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs
  286. KCONFIG:= \
  287. CONFIG_NFSD \
  288. CONFIG_NFSD_FAULT_INJECTION=n
  289. FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
  290. AUTOLOAD:=$(call AutoLoad,40,nfsd)
  291. endef
  292. define KernelPackage/fs-nfsd/description
  293. Kernel module for NFS kernel server support
  294. endef
  295. $(eval $(call KernelPackage,fs-nfsd))
  296. define KernelPackage/fs-ntfs
  297. SUBMENU:=$(FS_MENU)
  298. TITLE:=NTFS filesystem support
  299. KCONFIG:=CONFIG_NTFS_FS
  300. FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
  301. AUTOLOAD:=$(call AutoLoad,30,ntfs)
  302. $(call AddDepends/nls)
  303. endef
  304. define KernelPackage/fs-ntfs/description
  305. Kernel module for NTFS filesystem support
  306. endef
  307. $(eval $(call KernelPackage,fs-ntfs))
  308. define KernelPackage/fs-reiserfs
  309. SUBMENU:=$(FS_MENU)
  310. TITLE:=ReiserFS filesystem support
  311. KCONFIG:=CONFIG_REISERFS_FS \
  312. CONFIG_REISERFS_FS_XATTR=y
  313. FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
  314. AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
  315. endef
  316. define KernelPackage/fs-reiserfs/description
  317. Kernel module for ReiserFS support
  318. endef
  319. $(eval $(call KernelPackage,fs-reiserfs))
  320. define KernelPackage/fs-udf
  321. SUBMENU:=$(FS_MENU)
  322. TITLE:=UDF filesystem support
  323. KCONFIG:=CONFIG_UDF_FS
  324. FILES:=$(LINUX_DIR)/fs/udf/udf.ko
  325. AUTOLOAD:=$(call AutoLoad,30,udf)
  326. DEPENDS:=+kmod-lib-crc-itu-t
  327. $(call AddDepends/nls)
  328. endef
  329. define KernelPackage/fs-udf/description
  330. Kernel module for UDF filesystem support
  331. endef
  332. $(eval $(call KernelPackage,fs-udf))
  333. define KernelPackage/fs-vfat
  334. SUBMENU:=$(FS_MENU)
  335. TITLE:=VFAT filesystem support
  336. KCONFIG:= \
  337. CONFIG_FAT_FS \
  338. CONFIG_VFAT_FS
  339. FILES:= \
  340. $(LINUX_DIR)/fs/fat/fat.ko \
  341. $(LINUX_DIR)/fs/fat/vfat.ko
  342. AUTOLOAD:=$(call AutoLoad,30,fat vfat)
  343. $(call AddDepends/nls)
  344. endef
  345. define KernelPackage/fs-vfat/description
  346. Kernel module for VFAT filesystem support
  347. endef
  348. $(eval $(call KernelPackage,fs-vfat))
  349. define KernelPackage/fs-xfs
  350. SUBMENU:=$(FS_MENU)
  351. TITLE:=XFS filesystem support
  352. KCONFIG:=CONFIG_XFS_FS
  353. DEPENDS:= +kmod-fs-exportfs +kmod-lib-crc32c
  354. FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
  355. AUTOLOAD:=$(call AutoLoad,30,xfs,1)
  356. endef
  357. define KernelPackage/fs-xfs/description
  358. Kernel module for XFS support
  359. endef
  360. $(eval $(call KernelPackage,fs-xfs))
  361. define KernelPackage/fs-jfs
  362. SUBMENU:=$(FS_MENU)
  363. TITLE:=JFS filesystem support
  364. KCONFIG:=CONFIG_JFS_FS
  365. FILES:=$(LINUX_DIR)/fs/jfs/jfs.ko
  366. AUTOLOAD:=$(call AutoLoad,30,jfs,1)
  367. $(call AddDepends/nls)
  368. endef
  369. define KernelPackage/fs-jfs/description
  370. Kernel module for JFS support
  371. endef
  372. $(eval $(call KernelPackage,fs-jfs))