fs.mk 11 KB

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