fs.mk 7.6 KB

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