fs.mk 8.8 KB

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