fs.mk 8.1 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 +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. +!LINUX_3_3&&!LINUX_3_6:kmod-crypto-sha256
  53. endef
  54. define KernelPackage/fs-cifs/description
  55. Kernel module for CIFS support
  56. endef
  57. $(eval $(call KernelPackage,fs-cifs))
  58. define KernelPackage/fs-configfs
  59. SUBMENU:=$(FS_MENU)
  60. TITLE:=Configuration filesystem support
  61. KCONFIG:= \
  62. CONFIG_CONFIGFS_FS
  63. FILES:=$(LINUX_DIR)/fs/configfs/configfs.ko
  64. AUTOLOAD:=$(call AutoLoad,30,configfs)
  65. endef
  66. define KernelPackage/fs-configfs/description
  67. Kernel module for configfs support
  68. endef
  69. $(eval $(call KernelPackage,fs-configfs))
  70. define KernelPackage/fs-exportfs
  71. SUBMENU:=$(FS_MENU)
  72. TITLE:=exportfs kernel server support
  73. KCONFIG:=CONFIG_EXPORTFS
  74. FILES=$(LINUX_DIR)/fs/exportfs/exportfs.ko
  75. AUTOLOAD:=$(call AutoLoad,20,exportfs)
  76. endef
  77. define KernelPackage/fs-exportfs/description
  78. Kernel module for exportfs. Needed for some other modules.
  79. endef
  80. $(eval $(call KernelPackage,fs-exportfs))
  81. define KernelPackage/fs-ext4
  82. SUBMENU:=$(FS_MENU)
  83. TITLE:=EXT4 filesystem support
  84. KCONFIG:= \
  85. CONFIG_EXT4_FS \
  86. CONFIG_JBD2
  87. FILES:= \
  88. $(LINUX_DIR)/fs/ext4/ext4.ko \
  89. $(LINUX_DIR)/fs/jbd2/jbd2.ko \
  90. $(LINUX_DIR)/fs/mbcache.ko
  91. AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
  92. $(call AddDepends/crc16, +!LINUX_3_3:kmod-crypto-hash)
  93. endef
  94. define KernelPackage/fs-ext4/description
  95. Kernel module for EXT4 filesystem support
  96. endef
  97. $(eval $(call KernelPackage,fs-ext4))
  98. define KernelPackage/fuse
  99. SUBMENU:=$(FS_MENU)
  100. TITLE:=FUSE (Filesystem in Userspace) support
  101. KCONFIG:= CONFIG_FUSE_FS
  102. FILES:=$(LINUX_DIR)/fs/fuse/fuse.ko
  103. AUTOLOAD:=$(call AutoLoad,80,fuse)
  104. endef
  105. define KernelPackage/fuse/description
  106. Kernel module for userspace filesystem support
  107. endef
  108. $(eval $(call KernelPackage,fuse))
  109. define KernelPackage/fs-hfs
  110. SUBMENU:=$(FS_MENU)
  111. TITLE:=HFS filesystem support
  112. KCONFIG:=CONFIG_HFS_FS
  113. FILES:=$(LINUX_DIR)/fs/hfs/hfs.ko
  114. AUTOLOAD:=$(call AutoLoad,30,hfs)
  115. $(call AddDepends/nls)
  116. endef
  117. define KernelPackage/fs-hfs/description
  118. Kernel module for HFS filesystem support
  119. endef
  120. $(eval $(call KernelPackage,fs-hfs))
  121. define KernelPackage/fs-hfsplus
  122. SUBMENU:=$(FS_MENU)
  123. TITLE:=HFS+ filesystem support
  124. KCONFIG:=CONFIG_HFSPLUS_FS
  125. FILES:=$(LINUX_DIR)/fs/hfsplus/hfsplus.ko
  126. AUTOLOAD:=$(call AutoLoad,30,hfsplus)
  127. $(call AddDepends/nls,utf8)
  128. endef
  129. define KernelPackage/fs-hfsplus/description
  130. Kernel module for HFS+ filesystem support
  131. endef
  132. $(eval $(call KernelPackage,fs-hfsplus))
  133. define KernelPackage/fs-isofs
  134. SUBMENU:=$(FS_MENU)
  135. TITLE:=ISO9660 filesystem support
  136. DEPENDS:=+kmod-lib-zlib
  137. KCONFIG:=CONFIG_ISO9660_FS CONFIG_JOLIET=y CONFIG_ZISOFS=n
  138. FILES:=$(LINUX_DIR)/fs/isofs/isofs.ko
  139. AUTOLOAD:=$(call AutoLoad,30,isofs)
  140. $(call AddDepends/nls)
  141. endef
  142. define KernelPackage/fs-isofs/description
  143. Kernel module for ISO9660 filesystem support
  144. endef
  145. $(eval $(call KernelPackage,fs-isofs))
  146. define KernelPackage/fs-minix
  147. SUBMENU:=$(FS_MENU)
  148. TITLE:=Minix filesystem support
  149. KCONFIG:=CONFIG_MINIX_FS
  150. FILES:=$(LINUX_DIR)/fs/minix/minix.ko
  151. AUTOLOAD:=$(call AutoLoad,30,minix)
  152. endef
  153. define KernelPackage/fs-minix/description
  154. Kernel module for Minix filesystem support
  155. endef
  156. $(eval $(call KernelPackage,fs-minix))
  157. define KernelPackage/fs-msdos
  158. SUBMENU:=$(FS_MENU)
  159. TITLE:=MSDOS filesystem support
  160. KCONFIG:=CONFIG_MSDOS_FS
  161. FILES:=$(LINUX_DIR)/fs/fat/msdos.ko
  162. AUTOLOAD:=$(call AutoLoad,40,msdos)
  163. $(call AddDepends/nls)
  164. endef
  165. define KernelPackage/fs-msdos/description
  166. Kernel module for MSDOS filesystem support
  167. endef
  168. $(eval $(call KernelPackage,fs-msdos))
  169. define KernelPackage/fs-nfs
  170. SUBMENU:=$(FS_MENU)
  171. TITLE:=NFS filesystem support
  172. DEPENDS:=+kmod-fs-nfs-common
  173. KCONFIG:= \
  174. CONFIG_NFS_FS \
  175. CONFIG_NFS_USE_LEGACY_DNS=n \
  176. CONFIG_NFS_USE_NEW_IDMAPPER=n
  177. FILES:= \
  178. $(LINUX_DIR)/fs/nfs/nfs.ko
  179. AUTOLOAD:=$(call AutoLoad,40,nfs)
  180. endef
  181. define KernelPackage/fs-nfs/description
  182. Kernel module for NFS support
  183. endef
  184. $(eval $(call KernelPackage,fs-nfs))
  185. define KernelPackage/fs-nfs-common
  186. SUBMENU:=$(FS_MENU)
  187. TITLE:=Common NFS filesystem modules
  188. KCONFIG:= \
  189. CONFIG_LOCKD \
  190. CONFIG_SUNRPC
  191. FILES:= \
  192. $(LINUX_DIR)/fs/lockd/lockd.ko \
  193. $(LINUX_DIR)/net/sunrpc/sunrpc.ko
  194. AUTOLOAD:=$(call AutoLoad,30,sunrpc lockd)
  195. endef
  196. $(eval $(call KernelPackage,fs-nfs-common))
  197. define KernelPackage/fs-nfs-common-v4
  198. SUBMENU:=$(FS_MENU)
  199. TITLE:=Common NFS V4 filesystem modules
  200. KCONFIG+=\
  201. CONFIG_SUNRPC_GSS\
  202. CONFIG_NFS_V4=y\
  203. CONFIG_NFSD_V4=y
  204. DEPENDS:= @BROKEN
  205. FILES+=$(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko
  206. AUTOLOAD=$(call AutoLoad,30,auth_rpcgss)
  207. endef
  208. define KernelPackage/fs-nfs-common-v4/description
  209. Kernel modules for NFS V4 & NFSD V4 kernel support
  210. endef
  211. $(eval $(call KernelPackage,fs-nfs-common-v4))
  212. define KernelPackage/fs-nfsd
  213. SUBMENU:=$(FS_MENU)
  214. TITLE:=NFS kernel server support
  215. DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs
  216. KCONFIG:= \
  217. CONFIG_NFSD \
  218. CONFIG_NFSD_FAULT_INJECTION=n
  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 @!avr32
  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))