fs.mk 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  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_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||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:=CONFIG_CIFS
  39. FILES:=$(LINUX_DIR)/fs/cifs/cifs.ko
  40. AUTOLOAD:=$(call AutoLoad,30,cifs)
  41. $(call AddDepends/nls)
  42. DEPENDS+= \
  43. +!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36):kmod-crypto-arc4 \
  44. +!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36):kmod-crypto-hmac \
  45. +!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36):kmod-crypto-md5 \
  46. +!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37):kmod-crypto-md4 \
  47. +!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39):kmod-crypto-des \
  48. +!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39):kmod-crypto-ecb
  49. endef
  50. define KernelPackage/fs-cifs/description
  51. Kernel module for CIFS support
  52. endef
  53. $(eval $(call KernelPackage,fs-cifs))
  54. define KernelPackage/fs-exportfs
  55. SUBMENU:=$(FS_MENU)
  56. TITLE:=exportfs kernel server support
  57. KCONFIG:=CONFIG_EXPORTFS
  58. FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
  59. AUTOLOAD:=$(call AutoLoad,20,exportfs)
  60. endef
  61. define KernelPackage/fs-exportfs/description
  62. Kernel module for exportfs. Needed for some other modules.
  63. endef
  64. $(eval $(call KernelPackage,fs-exportfs))
  65. define KernelPackage/fs-ext2
  66. SUBMENU:=$(FS_MENU)
  67. TITLE:=EXT2 filesystem support
  68. KCONFIG:=CONFIG_EXT2_FS
  69. DEPENDS:=@LINUX_2_6_30||LINUX_2_6_31
  70. FILES:=$(LINUX_DIR)/fs/ext2/ext2.ko
  71. AUTOLOAD:=$(call AutoLoad,32,ext2,1)
  72. endef
  73. define KernelPackage/fs-ext2/description
  74. Kernel module for EXT2 filesystem support
  75. endef
  76. $(eval $(call KernelPackage,fs-ext2,1))
  77. define KernelPackage/fs-ext3
  78. SUBMENU:=$(FS_MENU)
  79. TITLE:=EXT3 filesystem support
  80. KCONFIG:= \
  81. CONFIG_EXT3_FS \
  82. CONFIG_JBD
  83. DEPENDS:=@LINUX_2_6_30||LINUX_2_6_31
  84. FILES:= \
  85. $(LINUX_DIR)/fs/ext3/ext3.ko \
  86. $(LINUX_DIR)/fs/jbd/jbd.ko
  87. AUTOLOAD:=$(call AutoLoad,31,jbd ext3,1)
  88. endef
  89. define KernelPackage/fs-ext3/description
  90. Kernel module for EXT3 filesystem support
  91. endef
  92. $(eval $(call KernelPackage,fs-ext3))
  93. define KernelPackage/fs-ext4
  94. SUBMENU:=$(FS_MENU)
  95. TITLE:=EXT4 filesystem support
  96. KCONFIG:= \
  97. CONFIG_EXT4_FS \
  98. CONFIG_JBD2
  99. FILES:= \
  100. $(LINUX_DIR)/fs/ext4/ext4.ko \
  101. $(LINUX_DIR)/fs/jbd2/jbd2.ko
  102. ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.37)),1)
  103. FILES+= \
  104. $(LINUX_DIR)/fs/mbcache.ko
  105. AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
  106. else
  107. AUTOLOAD:=$(call AutoLoad,30,jbd2 ext4,1)
  108. endif
  109. $(call AddDepends/crc16)
  110. endef
  111. define KernelPackage/fs-ext4/description
  112. Kernel module for EXT4 filesystem support
  113. endef
  114. $(eval $(call KernelPackage,fs-ext4))
  115. define KernelPackage/fs-hfs
  116. SUBMENU:=$(FS_MENU)
  117. TITLE:=HFS+ filesystem support
  118. KCONFIG:=CONFIG_HFS_FS
  119. FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
  120. AUTOLOAD:=$(call AutoLoad,30,hfs)
  121. $(call AddDepends/nls)
  122. endef
  123. define KernelPackage/fs-hfs/description
  124. Kernel module for HFS filesystem support
  125. endef
  126. $(eval $(call KernelPackage,fs-hfs))
  127. define KernelPackage/fs-hfsplus
  128. SUBMENU:=$(FS_MENU)
  129. TITLE:=HFS+ filesystem support
  130. KCONFIG:=CONFIG_HFSPLUS_FS
  131. FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
  132. AUTOLOAD:=$(call AutoLoad,30,hfsplus)
  133. $(call AddDepends/nls,utf8)
  134. endef
  135. define KernelPackage/fs-hfsplus/description
  136. Kernel module for HFS+ filesystem support
  137. endef
  138. $(eval $(call KernelPackage,fs-hfsplus))
  139. define KernelPackage/fs-isofs
  140. SUBMENU:=$(FS_MENU)
  141. TITLE:=ISO9660 filesystem support
  142. KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
  143. FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
  144. AUTOLOAD:=$(call AutoLoad,30,isofs)
  145. $(call AddDepends/nls)
  146. endef
  147. define KernelPackage/fs-isofs/description
  148. Kernel module for ISO9660 filesystem support
  149. endef
  150. $(eval $(call KernelPackage,fs-isofs))
  151. define KernelPackage/fs-minix
  152. SUBMENU:=$(FS_MENU)
  153. TITLE:=Minix filesystem support
  154. KCONFIG:=CONFIG_MINIX_FS
  155. FILES:=$(LINUX_DIR)/fs/minix/minix.ko
  156. AUTOLOAD:=$(call AutoLoad,30,minix)
  157. endef
  158. define KernelPackage/fs-minix/description
  159. Kernel module for Minix filesystem support
  160. endef
  161. $(eval $(call KernelPackage,fs-minix))
  162. define KernelPackage/fs-msdos
  163. SUBMENU:=$(FS_MENU)
  164. TITLE:=MSDOS filesystem support
  165. KCONFIG:=CONFIG_MSDOS_FS
  166. FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
  167. AUTOLOAD:=$(call AutoLoad,40,msdos)
  168. $(call AddDepends/nls)
  169. endef
  170. define KernelPackage/fs-msdos/description
  171. Kernel module for MSDOS filesystem support
  172. endef
  173. $(eval $(call KernelPackage,fs-msdos))
  174. define KernelPackage/fs-nfs
  175. SUBMENU:=$(FS_MENU)
  176. TITLE:=NFS filesystem support
  177. DEPENDS:=+kmod-fs-nfs-common
  178. KCONFIG:= \
  179. CONFIG_NFS_FS
  180. FILES:= \
  181. $(LINUX_DIR)/fs/nfs/nfs.ko
  182. AUTOLOAD:=$(call AutoLoad,40,nfs)
  183. endef
  184. define KernelPackage/fs-nfs/description
  185. Kernel module for NFS support
  186. endef
  187. $(eval $(call KernelPackage,fs-nfs))
  188. define KernelPackage/fs-nfs-common
  189. SUBMENU:=$(FS_MENU)
  190. TITLE:=Common NFS filesystem modules
  191. KCONFIG:= \
  192. CONFIG_LOCKD \
  193. CONFIG_SUNRPC
  194. FILES:= \
  195. $(LINUX_DIR)/fs/lockd/lockd.ko \
  196. $(LINUX_DIR)/net/sunrpc/sunrpc.ko
  197. AUTOLOAD:=$(call AutoLoad,30,sunrpc lockd)
  198. endef
  199. $(eval $(call KernelPackage,fs-nfs-common))
  200. define KernelPackage/fs-nfs-common-v4
  201. SUBMENU:=$(FS_MENU)
  202. TITLE:=Common NFS V4 filesystem modules
  203. KCONFIG+=\
  204. CONFIG_SUNRPC_GSS\
  205. CONFIG_NFS_V4=y\
  206. CONFIG_NFSD_V4=y
  207. DEPENDS:= @BROKEN
  208. FILES+=$(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko
  209. AUTOLOAD=$(call AutoLoad,30,auth_rpcgss)
  210. endef
  211. define KernelPackage/fs-nfs-common-v4/description
  212. Kernel modules for NFS V4 & NFSD V4 kernel support
  213. endef
  214. $(eval $(call KernelPackage,fs-nfs-common-v4))
  215. define KernelPackage/fs-nfsd
  216. SUBMENU:=$(FS_MENU)
  217. TITLE:=NFS kernel server support
  218. DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs
  219. KCONFIG:=CONFIG_NFSD
  220. FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko
  221. AUTOLOAD:=$(call AutoLoad,40,nfsd)
  222. endef
  223. define KernelPackage/fs-nfsd/description
  224. Kernel module for NFS kernel server support
  225. endef
  226. $(eval $(call KernelPackage,fs-nfsd))
  227. define KernelPackage/fs-ntfs
  228. SUBMENU:=$(FS_MENU)
  229. TITLE:=NTFS filesystem support
  230. KCONFIG:=CONFIG_NTFS_FS
  231. FILES:=$(LINUX_DIR)/fs/ntfs/ntfs.ko
  232. AUTOLOAD:=$(call AutoLoad,30,ntfs)
  233. $(call AddDepends/nls)
  234. endef
  235. define KernelPackage/fs-ntfs/description
  236. Kernel module for NTFS filesystem support
  237. endef
  238. $(eval $(call KernelPackage,fs-ntfs))
  239. define KernelPackage/fs-reiserfs
  240. SUBMENU:=$(FS_MENU)
  241. TITLE:=ReiserFS filesystem support
  242. KCONFIG:=CONFIG_REISERFS_FS
  243. FILES:=$(LINUX_DIR)/fs/reiserfs/reiserfs.ko
  244. AUTOLOAD:=$(call AutoLoad,30,reiserfs,1)
  245. endef
  246. define KernelPackage/fs-reiserfs/description
  247. Kernel module for ReiserFS support
  248. endef
  249. $(eval $(call KernelPackage,fs-reiserfs))
  250. define KernelPackage/fs-udf
  251. SUBMENU:=$(FS_MENU)
  252. TITLE:=UDF filesystem support
  253. KCONFIG:=CONFIG_UDF_FS
  254. FILES:=$(LINUX_DIR)/fs/udf/udf.ko
  255. AUTOLOAD:=$(call AutoLoad,30,udf)
  256. DEPENDS:=+kmod-lib-crc-itu-t
  257. $(call AddDepends/nls)
  258. endef
  259. define KernelPackage/fs-udf/description
  260. Kernel module for UDF filesystem support
  261. endef
  262. $(eval $(call KernelPackage,fs-udf))
  263. define KernelPackage/fs-vfat
  264. SUBMENU:=$(FS_MENU)
  265. TITLE:=VFAT filesystem support
  266. KCONFIG:= \
  267. CONFIG_FAT_FS \
  268. CONFIG_VFAT_FS
  269. FILES:= \
  270. $(LINUX_DIR)/fs/fat/fat.ko \
  271. $(LINUX_DIR)/fs/fat/vfat.ko
  272. AUTOLOAD:=$(call AutoLoad,30,fat vfat)
  273. $(call AddDepends/nls)
  274. endef
  275. define KernelPackage/fs-vfat/description
  276. Kernel module for VFAT filesystem support
  277. endef
  278. $(eval $(call KernelPackage,fs-vfat))
  279. define KernelPackage/fs-xfs
  280. SUBMENU:=$(FS_MENU)
  281. TITLE:=XFS filesystem support
  282. KCONFIG:=CONFIG_XFS_FS
  283. DEPENDS:= +kmod-fs-exportfs
  284. FILES:=$(LINUX_DIR)/fs/xfs/xfs.ko
  285. AUTOLOAD:=$(call AutoLoad,30,xfs,1)
  286. endef
  287. define KernelPackage/fs-xfs/description
  288. Kernel module for XFS support
  289. endef
  290. $(eval $(call KernelPackage,fs-xfs))