fs.mk 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  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)
  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/fs-hfs
  86. SUBMENU:=$(FS_MENU)
  87. TITLE:=HFS+ filesystem support
  88. KCONFIG:=CONFIG_HFS_FS
  89. FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
  90. AUTOLOAD:=$(call AutoLoad,30,hfs)
  91. $(call AddDepends/nls)
  92. endef
  93. define KernelPackage/fs-hfs/description
  94. Kernel module for HFS filesystem support
  95. endef
  96. $(eval $(call KernelPackage,fs-hfs))
  97. define KernelPackage/fs-hfsplus
  98. SUBMENU:=$(FS_MENU)
  99. TITLE:=HFS+ filesystem support
  100. KCONFIG:=CONFIG_HFSPLUS_FS
  101. FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
  102. AUTOLOAD:=$(call AutoLoad,30,hfsplus)
  103. $(call AddDepends/nls,utf8)
  104. endef
  105. define KernelPackage/fs-hfsplus/description
  106. Kernel module for HFS+ filesystem support
  107. endef
  108. $(eval $(call KernelPackage,fs-hfsplus))
  109. define KernelPackage/fs-isofs
  110. SUBMENU:=$(FS_MENU)
  111. TITLE:=ISO9660 filesystem support
  112. KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
  113. FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
  114. AUTOLOAD:=$(call AutoLoad,30,isofs)
  115. $(call AddDepends/nls)
  116. endef
  117. define KernelPackage/fs-isofs/description
  118. Kernel module for ISO9660 filesystem support
  119. endef
  120. $(eval $(call KernelPackage,fs-isofs))
  121. define KernelPackage/fs-minix
  122. SUBMENU:=$(FS_MENU)
  123. TITLE:=Minix filesystem support
  124. KCONFIG:=CONFIG_MINIX_FS
  125. FILES:=$(LINUX_DIR)/fs/minix/minix.ko
  126. AUTOLOAD:=$(call AutoLoad,30,minix)
  127. endef
  128. define KernelPackage/fs-minix/description
  129. Kernel module for Minix filesystem support
  130. endef
  131. $(eval $(call KernelPackage,fs-minix))
  132. define KernelPackage/fs-msdos
  133. SUBMENU:=$(FS_MENU)
  134. TITLE:=MSDOS filesystem support
  135. KCONFIG:=CONFIG_MSDOS_FS
  136. FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
  137. AUTOLOAD:=$(call AutoLoad,40,msdos)
  138. $(call AddDepends/nls)
  139. endef
  140. define KernelPackage/fs-msdos/description
  141. Kernel module for MSDOS filesystem support
  142. endef
  143. $(eval $(call KernelPackage,fs-msdos))
  144. define KernelPackage/fs-nfs
  145. SUBMENU:=$(FS_MENU)
  146. TITLE:=NFS filesystem support
  147. DEPENDS:=+kmod-fs-nfs-common
  148. KCONFIG:= \
  149. CONFIG_NFS_FS \
  150. CONFIG_NFS_USE_LEGACY_DNS=n \
  151. CONFIG_NFS_USE_NEW_IDMAPPER=n
  152. FILES:= \
  153. $(LINUX_DIR)/fs/nfs/nfs.ko
  154. AUTOLOAD:=$(call AutoLoad,40,nfs)
  155. endef
  156. define KernelPackage/fs-nfs/description
  157. Kernel module for NFS support
  158. endef
  159. $(eval $(call KernelPackage,fs-nfs))
  160. define KernelPackage/fs-nfs-common
  161. SUBMENU:=$(FS_MENU)
  162. TITLE:=Common NFS filesystem modules
  163. KCONFIG:= \
  164. CONFIG_LOCKD \
  165. CONFIG_SUNRPC
  166. FILES:= \
  167. $(LINUX_DIR)/fs/lockd/lockd.ko \
  168. $(LINUX_DIR)/net/sunrpc/sunrpc.ko
  169. AUTOLOAD:=$(call AutoLoad,30,sunrpc lockd)
  170. endef
  171. $(eval $(call KernelPackage,fs-nfs-common))
  172. define KernelPackage/fs-nfs-common-v4
  173. SUBMENU:=$(FS_MENU)
  174. TITLE:=Common NFS V4 filesystem modules
  175. KCONFIG+=\
  176. CONFIG_SUNRPC_GSS\
  177. CONFIG_NFS_V4=y\
  178. CONFIG_NFSD_V4=y
  179. DEPENDS:= @BROKEN
  180. FILES+=$(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko
  181. AUTOLOAD=$(call AutoLoad,30,auth_rpcgss)
  182. endef
  183. define KernelPackage/fs-nfs-common-v4/description
  184. Kernel modules for NFS V4 & NFSD V4 kernel support
  185. endef
  186. $(eval $(call KernelPackage,fs-nfs-common-v4))
  187. define KernelPackage/fs-nfsd
  188. SUBMENU:=$(FS_MENU)
  189. TITLE:=NFS kernel server support
  190. DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs
  191. KCONFIG:= \
  192. CONFIG_NFSD \
  193. CONFIG_NFSD_FAULT_INJECTION=n
  194. FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
  195. AUTOLOAD:=$(call AutoLoad,40,nfsd)
  196. endef
  197. define KernelPackage/fs-nfsd/description
  198. Kernel module for NFS kernel server support
  199. endef
  200. $(eval $(call KernelPackage,fs-nfsd))
  201. define KernelPackage/fs-ntfs
  202. SUBMENU:=$(FS_MENU)
  203. TITLE:=NTFS filesystem support
  204. KCONFIG:=CONFIG_NTFS_FS
  205. FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
  206. AUTOLOAD:=$(call AutoLoad,30,ntfs)
  207. $(call AddDepends/nls)
  208. endef
  209. define KernelPackage/fs-ntfs/description
  210. Kernel module for NTFS filesystem support
  211. endef
  212. $(eval $(call KernelPackage,fs-ntfs))
  213. define KernelPackage/fs-reiserfs
  214. SUBMENU:=$(FS_MENU)
  215. TITLE:=ReiserFS filesystem support
  216. KCONFIG:=CONFIG_REISERFS_FS
  217. FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
  218. AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
  219. endef
  220. define KernelPackage/fs-reiserfs/description
  221. Kernel module for ReiserFS support
  222. endef
  223. $(eval $(call KernelPackage,fs-reiserfs))
  224. define KernelPackage/fs-udf
  225. SUBMENU:=$(FS_MENU)
  226. TITLE:=UDF filesystem support
  227. KCONFIG:=CONFIG_UDF_FS
  228. FILES:=$(LINUX_DIR)/fs/udf/udf.ko
  229. AUTOLOAD:=$(call AutoLoad,30,udf)
  230. DEPENDS:=+kmod-lib-crc-itu-t
  231. $(call AddDepends/nls)
  232. endef
  233. define KernelPackage/fs-udf/description
  234. Kernel module for UDF filesystem support
  235. endef
  236. $(eval $(call KernelPackage,fs-udf))
  237. define KernelPackage/fs-vfat
  238. SUBMENU:=$(FS_MENU)
  239. TITLE:=VFAT filesystem support
  240. KCONFIG:= \
  241. CONFIG_FAT_FS \
  242. CONFIG_VFAT_FS
  243. FILES:= \
  244. $(LINUX_DIR)/fs/fat/fat.ko \
  245. $(LINUX_DIR)/fs/fat/vfat.ko
  246. AUTOLOAD:=$(call AutoLoad,30,fat vfat)
  247. $(call AddDepends/nls)
  248. endef
  249. define KernelPackage/fs-vfat/description
  250. Kernel module for VFAT filesystem support
  251. endef
  252. $(eval $(call KernelPackage,fs-vfat))
  253. define KernelPackage/fs-xfs
  254. SUBMENU:=$(FS_MENU)
  255. TITLE:=XFS filesystem support
  256. KCONFIG:=CONFIG_XFS_FS
  257. DEPENDS:= +kmod-fs-exportfs @!avr32
  258. FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
  259. AUTOLOAD:=$(call AutoLoad,30,xfs,1)
  260. endef
  261. define KernelPackage/fs-xfs/description
  262. Kernel module for XFS support
  263. endef
  264. $(eval $(call KernelPackage,fs-xfs))