fs.mk 10 KB

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