fs.mk 11 KB

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