lib.mk 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. #
  2. # Copyright (C) 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. LIB_MENU:=Libraries
  8. define KernelPackage/lib-crc-ccitt
  9. SUBMENU:=$(LIB_MENU)
  10. TITLE:=CRC-CCITT support
  11. KCONFIG:=CONFIG_CRC_CCITT
  12. FILES:=$(LINUX_DIR)/lib/crc-ccitt.ko
  13. AUTOLOAD:=$(call AutoProbe,crc-ccitt)
  14. endef
  15. define KernelPackage/lib-crc-ccitt/description
  16. Kernel module for CRC-CCITT support
  17. endef
  18. $(eval $(call KernelPackage,lib-crc-ccitt))
  19. define KernelPackage/lib-crc-itu-t
  20. SUBMENU:=$(LIB_MENU)
  21. TITLE:=CRC ITU-T V.41 support
  22. KCONFIG:=CONFIG_CRC_ITU_T
  23. FILES:=$(LINUX_DIR)/lib/crc-itu-t.ko
  24. AUTOLOAD:=$(call AutoProbe,crc-itu-t)
  25. endef
  26. define KernelPackage/lib-crc-itu-t/description
  27. Kernel module for CRC ITU-T V.41 support
  28. endef
  29. $(eval $(call KernelPackage,lib-crc-itu-t))
  30. define KernelPackage/lib-crc7
  31. SUBMENU:=$(LIB_MENU)
  32. TITLE:=CRC7 support
  33. KCONFIG:=CONFIG_CRC7
  34. FILES:=$(LINUX_DIR)/lib/crc7.ko
  35. AUTOLOAD:=$(call AutoProbe,crc7)
  36. endef
  37. define KernelPackage/lib-crc7/description
  38. Kernel module for CRC7 support
  39. endef
  40. $(eval $(call KernelPackage,lib-crc7))
  41. define KernelPackage/lib-crc8
  42. SUBMENU:=$(LIB_MENU)
  43. TITLE:=CRC8 support
  44. KCONFIG:=CONFIG_CRC8
  45. FILES:=$(LINUX_DIR)/lib/crc8.ko
  46. AUTOLOAD:=$(call AutoProbe,crc8)
  47. endef
  48. define KernelPackage/lib-crc8/description
  49. Kernel module for CRC8 support
  50. endef
  51. $(eval $(call KernelPackage,lib-crc8))
  52. define KernelPackage/lib-crc16
  53. SUBMENU:=$(LIB_MENU)
  54. TITLE:=CRC16 support
  55. KCONFIG:=CONFIG_CRC16
  56. FILES:=$(LINUX_DIR)/lib/crc16.ko
  57. AUTOLOAD:=$(call AutoLoad,20,crc16,1)
  58. endef
  59. define KernelPackage/lib-crc16/description
  60. Kernel module for CRC16 support
  61. endef
  62. $(eval $(call KernelPackage,lib-crc16))
  63. define KernelPackage/lib-crc32c
  64. SUBMENU:=$(LIB_MENU)
  65. TITLE:=CRC32 support
  66. KCONFIG:=CONFIG_LIBCRC32C
  67. DEPENDS:=+kmod-crypto-crc32c
  68. FILES:=$(LINUX_DIR)/lib/libcrc32c.ko
  69. AUTOLOAD:=$(call AutoProbe,libcrc32c)
  70. endef
  71. define KernelPackage/lib-crc32c/description
  72. Kernel module for CRC32 support
  73. endef
  74. $(eval $(call KernelPackage,lib-crc32c))
  75. define KernelPackage/lib-lzo
  76. SUBMENU:=$(LIB_MENU)
  77. TITLE:=LZO support
  78. DEPENDS:=+kmod-crypto-acompress
  79. KCONFIG:= \
  80. CONFIG_CRYPTO_LZO \
  81. CONFIG_LZO_COMPRESS \
  82. CONFIG_LZO_DECOMPRESS
  83. HIDDEN:=1
  84. FILES:= \
  85. $(LINUX_DIR)/crypto/lzo.ko \
  86. $(LINUX_DIR)/crypto/lzo-rle.ko \
  87. $(LINUX_DIR)/lib/lzo/lzo_compress.ko \
  88. $(LINUX_DIR)/lib/lzo/lzo_decompress.ko
  89. AUTOLOAD:=$(call AutoProbe,lzo lzo-rle lzo_compress lzo_decompress)
  90. endef
  91. define KernelPackage/lib-lzo/description
  92. Kernel module for LZO compression/decompression support
  93. endef
  94. $(eval $(call KernelPackage,lib-lzo))
  95. define KernelPackage/lib-xxhash
  96. SUBMENU:=$(LIB_MENU)
  97. TITLE:=xxhash support
  98. HIDDEN:=1
  99. KCONFIG:=CONFIG_XXHASH
  100. FILES:=$(LINUX_DIR)/lib/xxhash.ko
  101. endef
  102. $(eval $(call KernelPackage,lib-xxhash))
  103. define KernelPackage/lib-zstd
  104. SUBMENU:=$(LIB_MENU)
  105. TITLE:=ZSTD support
  106. DEPENDS:=+kmod-crypto-acompress +kmod-lib-xxhash
  107. KCONFIG:= \
  108. CONFIG_CRYPTO_ZSTD \
  109. CONFIG_ZSTD_COMPRESS \
  110. CONFIG_ZSTD_DECOMPRESS
  111. FILES:= \
  112. $(LINUX_DIR)/crypto/zstd.ko \
  113. $(LINUX_DIR)/lib/zstd/zstd_common.ko \
  114. $(LINUX_DIR)/lib/zstd/zstd_compress.ko \
  115. $(LINUX_DIR)/lib/zstd/zstd_decompress.ko
  116. AUTOLOAD:=$(call AutoProbe,zstd zstd_compress zstd_decompress)
  117. endef
  118. define KernelPackage/lib-zstd/description
  119. Kernel module for ZSTD compression/decompression support
  120. endef
  121. $(eval $(call KernelPackage,lib-zstd))
  122. define KernelPackage/lib-lz4-decompress
  123. SUBMENU:=$(LIB_MENU)
  124. TITLE:=LZ4 decompress
  125. HIDDEN:=1
  126. KCONFIG:=CONFIG_LZ4_DECOMPRESS
  127. FILES:=$(LINUX_DIR)/lib/lz4/lz4_decompress.ko
  128. endef
  129. $(eval $(call KernelPackage,lib-lz4-decompress))
  130. define KernelPackage/lib-lz4
  131. SUBMENU:=$(LIB_MENU)
  132. TITLE:=LZ4 support
  133. DEPENDS:=+kmod-crypto-acompress +kmod-lib-lz4-decompress
  134. KCONFIG:= \
  135. CONFIG_CRYPTO_LZ4 \
  136. CONFIG_LZ4_COMPRESS
  137. FILES:= \
  138. $(LINUX_DIR)/crypto/lz4.ko \
  139. $(LINUX_DIR)/lib/lz4/lz4_compress.ko
  140. AUTOLOAD:=$(call AutoProbe,lz4 lz4_compress)
  141. endef
  142. define KernelPackage/lib-lz4/description
  143. Kernel module for LZ4 compression/decompression support
  144. endef
  145. $(eval $(call KernelPackage,lib-lz4))
  146. define KernelPackage/lib-lz4hc
  147. SUBMENU:=$(LIB_MENU)
  148. TITLE:=LZ4HC support
  149. DEPENDS:=+kmod-crypto-acompress +kmod-lib-lz4-decompress
  150. KCONFIG:= \
  151. CONFIG_CRYPTO_LZ4HC \
  152. CONFIG_LZ4HC_COMPRESS
  153. FILES:= \
  154. $(LINUX_DIR)/crypto/lz4hc.ko \
  155. $(LINUX_DIR)/lib/lz4/lz4hc_compress.ko
  156. AUTOLOAD:=$(call AutoProbe,lz4hc lz4hc_compress)
  157. endef
  158. define KernelPackage/lib-lz4hc/description
  159. Kernel module for LZ4HC compression/decompression support
  160. endef
  161. $(eval $(call KernelPackage,lib-lz4hc))
  162. define KernelPackage/lib-842
  163. SUBMENU:=$(LIB_MENU)
  164. TITLE:=842 support
  165. DEPENDS:=+kmod-crypto-acompress +kmod-crypto-crc32
  166. KCONFIG:= \
  167. CONFIG_CRYPTO_842 \
  168. CONFIG_842_COMPRESS \
  169. CONFIG_842_DECOMPRESS
  170. FILES:= \
  171. $(LINUX_DIR)/crypto/842.ko \
  172. $(LINUX_DIR)/lib/842/842_compress.ko \
  173. $(LINUX_DIR)/lib/842/842_decompress.ko
  174. AUTOLOAD:=$(call AutoProbe,842 842_compress 842_decompress)
  175. endef
  176. define KernelPackage/lib-842/description
  177. Kernel module for 842 compression/decompression support
  178. endef
  179. $(eval $(call KernelPackage,lib-842))
  180. define KernelPackage/lib-raid6
  181. SUBMENU:=$(LIB_MENU)
  182. TITLE:=RAID6 algorithm support
  183. HIDDEN:=1
  184. KCONFIG:=CONFIG_RAID6_PQ
  185. FILES:=$(LINUX_DIR)/lib/raid6/raid6_pq.ko
  186. AUTOLOAD:=$(call AutoProbe,raid6_pq)
  187. endef
  188. define KernelPackage/lib-raid6/description
  189. Kernel module for RAID6 algorithms
  190. endef
  191. $(eval $(call KernelPackage,lib-raid6))
  192. define KernelPackage/lib-xor
  193. SUBMENU:=$(LIB_MENU)
  194. TITLE:=XOR blocks algorithm support
  195. HIDDEN:=1
  196. KCONFIG:=CONFIG_XOR_BLOCKS
  197. ifneq ($(wildcard $(LINUX_DIR)/arch/$(LINUX_KARCH)/lib/xor-neon.ko),)
  198. FILES:= \
  199. $(LINUX_DIR)/crypto/xor.ko \
  200. $(LINUX_DIR)/arch/$(LINUX_KARCH)/lib/xor-neon.ko
  201. AUTOLOAD:=$(call AutoProbe,xor-neon xor)
  202. else
  203. FILES:=$(LINUX_DIR)/crypto/xor.ko
  204. AUTOLOAD:=$(call AutoProbe,xor)
  205. endif
  206. endef
  207. define KernelPackage/lib-xor/description
  208. Kernel module for XOR blocks algorithms
  209. endef
  210. $(eval $(call KernelPackage,lib-xor))
  211. define KernelPackage/lib-textsearch
  212. SUBMENU:=$(LIB_MENU)
  213. TITLE:=Textsearch support
  214. KCONFIG:= \
  215. CONFIG_TEXTSEARCH=y \
  216. CONFIG_TEXTSEARCH_KMP \
  217. CONFIG_TEXTSEARCH_BM \
  218. CONFIG_TEXTSEARCH_FSM
  219. FILES:= \
  220. $(LINUX_DIR)/lib/ts_kmp.ko \
  221. $(LINUX_DIR)/lib/ts_bm.ko \
  222. $(LINUX_DIR)/lib/ts_fsm.ko
  223. AUTOLOAD:=$(call AutoProbe,ts_kmp ts_bm ts_fsm)
  224. endef
  225. $(eval $(call KernelPackage,lib-textsearch))
  226. define KernelPackage/lib-zlib-inflate
  227. SUBMENU:=$(LIB_MENU)
  228. TITLE:=Zlib support
  229. HIDDEN:=1
  230. KCONFIG:=CONFIG_ZLIB_INFLATE
  231. FILES:=$(LINUX_DIR)/lib/zlib_inflate/zlib_inflate.ko
  232. AUTOLOAD:=$(call AutoProbe,zlib_inflate)
  233. endef
  234. $(eval $(call KernelPackage,lib-zlib-inflate))
  235. define KernelPackage/lib-zlib-deflate
  236. SUBMENU:=$(LIB_MENU)
  237. TITLE:=Zlib support
  238. HIDDEN:=1
  239. KCONFIG:=CONFIG_ZLIB_DEFLATE
  240. FILES:=$(LINUX_DIR)/lib/zlib_deflate/zlib_deflate.ko
  241. AUTOLOAD:=$(call AutoProbe,zlib_deflate)
  242. endef
  243. $(eval $(call KernelPackage,lib-zlib-deflate))
  244. define KernelPackage/lib-cordic
  245. SUBMENU:=$(LIB_MENU)
  246. TITLE:=Cordic function support
  247. KCONFIG:=CONFIG_CORDIC
  248. FILES:=$(LINUX_DIR)/lib/math/cordic.ko
  249. AUTOLOAD:=$(call AutoProbe,cordic)
  250. endef
  251. define KernelPackage/lib-cordic/description
  252. Kernel module for Cordic function support
  253. endef
  254. $(eval $(call KernelPackage,lib-cordic))
  255. define KernelPackage/asn1-decoder
  256. SUBMENU:=$(LIB_MENU)
  257. TITLE:=Simple ASN1 decoder
  258. KCONFIG:= CONFIG_ASN1
  259. HIDDEN:=1
  260. FILES:=$(LINUX_DIR)/lib/asn1_decoder.ko
  261. endef
  262. $(eval $(call KernelPackage,asn1-decoder))
  263. define KernelPackage/asn1-encoder
  264. SUBMENU:=$(LIB_MENU)
  265. TITLE:=Simple ASN1 encoder
  266. KCONFIG:= CONFIG_ASN1_ENCODER
  267. HIDDEN:=1
  268. FILES:=$(LINUX_DIR)/lib/asn1_encoder.ko
  269. endef
  270. $(eval $(call KernelPackage,asn1-encoder))
  271. define KernelPackage/oid-registry
  272. SUBMENU:=$(LIB_MENU)
  273. TITLE:=Object identifier registry
  274. KCONFIG:= CONFIG_OID_REGISTRY
  275. FILES:=$(LINUX_DIR)/lib/oid_registry.ko
  276. AUTOLOAD:=$(call AutoLoad,31,oid_registry)
  277. endef
  278. $(eval $(call KernelPackage,oid-registry))
  279. define KernelPackage/lib-objagg
  280. SUBMENU:=$(LIB_MENU)
  281. TITLE:=objagg support
  282. HIDDEN:=1
  283. FILES:=$(LINUX_DIR)/lib/objagg.ko
  284. KCONFIG:= \
  285. CONFIG_OBJAGG \
  286. CONFIG_TEST_OBJAGG=n
  287. AUTOLOAD:=$(call AutoProbe,objagg)
  288. endef
  289. $(eval $(call KernelPackage,lib-objagg))
  290. define KernelPackage/lib-parman
  291. SUBMENU:=$(LIB_MENU)
  292. TITLE:=parman support
  293. HIDDEN:=1
  294. FILES:=$(LINUX_DIR)/lib/parman.ko
  295. KCONFIG:= \
  296. CONFIG_PARMAN \
  297. CONFIG_TEST_PARMAN=n
  298. AUTOLOAD:=$(call AutoProbe,parman)
  299. endef
  300. $(eval $(call KernelPackage,lib-parman))