fs.mk 8.6 KB

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