fs.mk 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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-autofs4
  9. SUBMENU:=$(FS_MENU)
  10. TITLE:=AUTOFS4 filesystem support
  11. KCONFIG:=CONFIG_AUTOFS4_FS
  12. FILES:=$(LINUX_DIR)/fs/autofs4/autofs4.ko
  13. AUTOLOAD:=$(call AutoLoad,30,autofs4)
  14. endef
  15. define KernelPackage/fs-autofs4/description
  16. Kernel module for AutoFS4 support
  17. endef
  18. $(eval $(call KernelPackage,fs-autofs4))
  19. define KernelPackage/fs-btrfs
  20. SUBMENU:=$(FS_MENU)
  21. TITLE:=BTRFS filesystem support
  22. DEPENDS:=+kmod-lib-crc32c +kmod-lib-lzo +kmod-lib-zlib
  23. KCONFIG:=\
  24. CONFIG_BTRFS_FS \
  25. CONFIG_BTRFS_FS_POSIX_ACL=n \
  26. CONFIG_BTRFS_FS_CHECK_INTEGRITY=n
  27. FILES:=\
  28. $(LINUX_DIR)/fs/btrfs/btrfs.ko
  29. AUTOLOAD:=$(call AutoLoad,30,btrfs,1)
  30. endef
  31. define KernelPackage/fs-btrfs/description
  32. Kernel module for BTRFS support
  33. endef
  34. $(eval $(call KernelPackage,fs-btrfs))
  35. define KernelPackage/fs-cifs
  36. SUBMENU:=$(FS_MENU)
  37. TITLE:=CIFS support
  38. KCONFIG:= \
  39. CONFIG_CIFS \
  40. CONFIG_CIFS_DFS_UPCALL=n \
  41. CONFIG_CIFS_UPCALL=n
  42. FILES:=$(LINUX_DIR)/fs/cifs/cifs.ko
  43. AUTOLOAD:=$(call AutoLoad,30,cifs)
  44. $(call AddDepends/nls)
  45. DEPENDS+= \
  46. +kmod-crypto-arc4 \
  47. +kmod-crypto-hmac \
  48. +kmod-crypto-md5 \
  49. +kmod-crypto-md4 \
  50. +kmod-crypto-des \
  51. +kmod-crypto-ecb
  52. endef
  53. define KernelPackage/fs-cifs/description
  54. Kernel module for CIFS support
  55. endef
  56. $(eval $(call KernelPackage,fs-cifs))
  57. define KernelPackage/fs-exportfs
  58. SUBMENU:=$(FS_MENU)
  59. TITLE:=exportfs kernel server support
  60. KCONFIG:=CONFIG_EXPORTFS
  61. FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
  62. AUTOLOAD:=$(call AutoLoad,20,exportfs)
  63. endef
  64. define KernelPackage/fs-exportfs/description
  65. Kernel module for exportfs. Needed for some other modules.
  66. endef
  67. $(eval $(call KernelPackage,fs-exportfs))
  68. define KernelPackage/fs-ext4
  69. SUBMENU:=$(FS_MENU)
  70. TITLE:=EXT4 filesystem support
  71. KCONFIG:= \
  72. CONFIG_EXT4_FS \
  73. CONFIG_JBD2
  74. FILES:= \
  75. $(LINUX_DIR)/fs/ext4/ext4.ko \
  76. $(LINUX_DIR)/fs/jbd2/jbd2.ko \
  77. $(LINUX_DIR)/fs/mbcache.ko
  78. AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
  79. $(call AddDepends/crc16, +!LINUX_3_3:kmod-crypto-hash)
  80. endef
  81. define KernelPackage/fs-ext4/description
  82. Kernel module for EXT4 filesystem support
  83. endef
  84. $(eval $(call KernelPackage,fs-ext4))
  85. define KernelPackage/fuse
  86. SUBMENU:=$(FS_MENU)
  87. TITLE:=FUSE (Filesystem in Userspace) support
  88. KCONFIG:= CONFIG_FUSE_FS
  89. FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
  90. AUTOLOAD:=$(call AutoLoad,80,fuse)
  91. endef
  92. define KernelPackage/fuse/description
  93. Kernel module for userspace filesystem support
  94. endef
  95. $(eval $(call KernelPackage,fuse))
  96. define KernelPackage/fs-hfs
  97. SUBMENU:=$(FS_MENU)
  98. TITLE:=HFS+ filesystem support
  99. KCONFIG:=CONFIG_HFS_FS
  100. FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
  101. AUTOLOAD:=$(call AutoLoad,30,hfs)
  102. $(call AddDepends/nls)
  103. endef
  104. define KernelPackage/fs-hfs/description
  105. Kernel module for HFS filesystem support
  106. endef
  107. $(eval $(call KernelPackage,fs-hfs))
  108. define KernelPackage/fs-hfsplus
  109. SUBMENU:=$(FS_MENU)
  110. TITLE:=HFS+ filesystem support
  111. KCONFIG:=CONFIG_HFSPLUS_FS
  112. FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
  113. AUTOLOAD:=$(call AutoLoad,30,hfsplus)
  114. $(call AddDepends/nls,utf8)
  115. endef
  116. define KernelPackage/fs-hfsplus/description
  117. Kernel module for HFS+ filesystem support
  118. endef
  119. $(eval $(call KernelPackage,fs-hfsplus))
  120. define KernelPackage/fs-isofs
  121. SUBMENU:=$(FS_MENU)
  122. TITLE:=ISO9660 filesystem support
  123. KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
  124. FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
  125. AUTOLOAD:=$(call AutoLoad,30,isofs)
  126. $(call AddDepends/nls)
  127. endef
  128. define KernelPackage/fs-isofs/description
  129. Kernel module for ISO9660 filesystem support
  130. endef
  131. $(eval $(call KernelPackage,fs-isofs))
  132. define KernelPackage/fs-minix
  133. SUBMENU:=$(FS_MENU)
  134. TITLE:=Minix filesystem support
  135. KCONFIG:=CONFIG_MINIX_FS
  136. FILES:=$(LINUX_DIR)/fs/minix/minix.ko
  137. AUTOLOAD:=$(call AutoLoad,30,minix)
  138. endef
  139. define KernelPackage/fs-minix/description
  140. Kernel module for Minix filesystem support
  141. endef
  142. $(eval $(call KernelPackage,fs-minix))
  143. define KernelPackage/fs-msdos
  144. SUBMENU:=$(FS_MENU)
  145. TITLE:=MSDOS filesystem support
  146. KCONFIG:=CONFIG_MSDOS_FS
  147. FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
  148. AUTOLOAD:=$(call AutoLoad,40,msdos)
  149. $(call AddDepends/nls)
  150. endef
  151. define KernelPackage/fs-msdos/description
  152. Kernel module for MSDOS filesystem support
  153. endef
  154. $(eval $(call KernelPackage,fs-msdos))
  155. define KernelPackage/fs-nfs
  156. SUBMENU:=$(FS_MENU)
  157. TITLE:=NFS filesystem support
  158. DEPENDS:=+kmod-fs-nfs-common
  159. KCONFIG:= \
  160. CONFIG_NFS_FS \
  161. CONFIG_NFS_USE_LEGACY_DNS=n \
  162. CONFIG_NFS_USE_NEW_IDMAPPER=n
  163. FILES:= \
  164. $(LINUX_DIR)/fs/nfs/nfs.ko
  165. AUTOLOAD:=$(call AutoLoad,40,nfs)
  166. endef
  167. define KernelPackage/fs-nfs/description
  168. Kernel module for NFS support
  169. endef
  170. $(eval $(call KernelPackage,fs-nfs))
  171. define KernelPackage/fs-nfs-common
  172. SUBMENU:=$(FS_MENU)
  173. TITLE:=Common NFS filesystem modules
  174. KCONFIG:= \
  175. CONFIG_LOCKD \
  176. CONFIG_SUNRPC
  177. FILES:= \
  178. $(LINUX_DIR)/fs/lockd/lockd.ko \
  179. $(LINUX_DIR)/net/sunrpc/sunrpc.ko
  180. AUTOLOAD:=$(call AutoLoad,30,sunrpc lockd)
  181. endef
  182. $(eval $(call KernelPackage,fs-nfs-common))
  183. define KernelPackage/fs-nfs-common-v4
  184. SUBMENU:=$(FS_MENU)
  185. TITLE:=Common NFS V4 filesystem modules
  186. KCONFIG+=\
  187. CONFIG_SUNRPC_GSS\
  188. CONFIG_NFS_V4=y\
  189. CONFIG_NFSD_V4=y
  190. DEPENDS:= @BROKEN
  191. FILES+=$(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko
  192. AUTOLOAD=$(call AutoLoad,30,auth_rpcgss)
  193. endef
  194. define KernelPackage/fs-nfs-common-v4/description
  195. Kernel modules for NFS V4 & NFSD V4 kernel support
  196. endef
  197. $(eval $(call KernelPackage,fs-nfs-common-v4))
  198. define KernelPackage/fs-nfsd
  199. SUBMENU:=$(FS_MENU)
  200. TITLE:=NFS kernel server support
  201. DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs
  202. KCONFIG:= \
  203. CONFIG_NFSD \
  204. CONFIG_NFSD_FAULT_INJECTION=n
  205. FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
  206. AUTOLOAD:=$(call AutoLoad,40,nfsd)
  207. endef
  208. define KernelPackage/fs-nfsd/description
  209. Kernel module for NFS kernel server support
  210. endef
  211. $(eval $(call KernelPackage,fs-nfsd))
  212. define KernelPackage/fs-ntfs
  213. SUBMENU:=$(FS_MENU)
  214. TITLE:=NTFS filesystem support
  215. KCONFIG:=CONFIG_NTFS_FS
  216. FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
  217. AUTOLOAD:=$(call AutoLoad,30,ntfs)
  218. $(call AddDepends/nls)
  219. endef
  220. define KernelPackage/fs-ntfs/description
  221. Kernel module for NTFS filesystem support
  222. endef
  223. $(eval $(call KernelPackage,fs-ntfs))
  224. define KernelPackage/fs-reiserfs
  225. SUBMENU:=$(FS_MENU)
  226. TITLE:=ReiserFS filesystem support
  227. KCONFIG:=CONFIG_REISERFS_FS
  228. FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
  229. AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
  230. endef
  231. define KernelPackage/fs-reiserfs/description
  232. Kernel module for ReiserFS support
  233. endef
  234. $(eval $(call KernelPackage,fs-reiserfs))
  235. define KernelPackage/fs-udf
  236. SUBMENU:=$(FS_MENU)
  237. TITLE:=UDF filesystem support
  238. KCONFIG:=CONFIG_UDF_FS
  239. FILES:=$(LINUX_DIR)/fs/udf/udf.ko
  240. AUTOLOAD:=$(call AutoLoad,30,udf)
  241. DEPENDS:=+kmod-lib-crc-itu-t
  242. $(call AddDepends/nls)
  243. endef
  244. define KernelPackage/fs-udf/description
  245. Kernel module for UDF filesystem support
  246. endef
  247. $(eval $(call KernelPackage,fs-udf))
  248. define KernelPackage/fs-vfat
  249. SUBMENU:=$(FS_MENU)
  250. TITLE:=VFAT filesystem support
  251. KCONFIG:= \
  252. CONFIG_FAT_FS \
  253. CONFIG_VFAT_FS
  254. FILES:= \
  255. $(LINUX_DIR)/fs/fat/fat.ko \
  256. $(LINUX_DIR)/fs/fat/vfat.ko
  257. AUTOLOAD:=$(call AutoLoad,30,fat vfat)
  258. $(call AddDepends/nls)
  259. endef
  260. define KernelPackage/fs-vfat/description
  261. Kernel module for VFAT filesystem support
  262. endef
  263. $(eval $(call KernelPackage,fs-vfat))
  264. define KernelPackage/fs-xfs
  265. SUBMENU:=$(FS_MENU)
  266. TITLE:=XFS filesystem support
  267. KCONFIG:=CONFIG_XFS_FS
  268. DEPENDS:= +kmod-fs-exportfs @!avr32
  269. FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
  270. AUTOLOAD:=$(call AutoLoad,30,xfs,1)
  271. endef
  272. define KernelPackage/fs-xfs/description
  273. Kernel module for XFS support
  274. endef
  275. $(eval $(call KernelPackage,fs-xfs))