lib.mk 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  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-zstd
  96. SUBMENU:=$(LIB_MENU)
  97. TITLE:=ZSTD support
  98. DEPENDS:=+kmod-crypto-acompress
  99. KCONFIG:= \
  100. CONFIG_CRYPTO_ZSTD \
  101. CONFIG_ZSTD_COMPRESS \
  102. CONFIG_ZSTD_DECOMPRESS \
  103. CONFIG_XXHASH
  104. FILES:= \
  105. $(LINUX_DIR)/crypto/zstd.ko \
  106. $(LINUX_DIR)/lib/xxhash.ko \
  107. $(LINUX_DIR)/lib/zstd/[email protected] \
  108. $(LINUX_DIR)/lib/zstd/zstd_compress.ko \
  109. $(LINUX_DIR)/lib/zstd/zstd_decompress.ko
  110. AUTOLOAD:=$(call AutoProbe,xxhash zstd zstd_compress zstd_decompress)
  111. endef
  112. define KernelPackage/lib-zstd/description
  113. Kernel module for ZSTD compression/decompression support
  114. endef
  115. $(eval $(call KernelPackage,lib-zstd))
  116. define KernelPackage/lib-lz4-decompress
  117. SUBMENU:=$(LIB_MENU)
  118. TITLE:=LZ4 decompress
  119. HIDDEN:=1
  120. KCONFIG:=CONFIG_LZ4_DECOMPRESS
  121. FILES:=$(LINUX_DIR)/lib/lz4/lz4_decompress.ko
  122. endef
  123. $(eval $(call KernelPackage,lib-lz4-decompress))
  124. define KernelPackage/lib-lz4
  125. SUBMENU:=$(LIB_MENU)
  126. TITLE:=LZ4 support
  127. DEPENDS:=+kmod-crypto-acompress +kmod-lib-lz4-decompress
  128. KCONFIG:= \
  129. CONFIG_CRYPTO_LZ4 \
  130. CONFIG_LZ4_COMPRESS
  131. FILES:= \
  132. $(LINUX_DIR)/crypto/lz4.ko \
  133. $(LINUX_DIR)/lib/lz4/lz4_compress.ko
  134. AUTOLOAD:=$(call AutoProbe,lz4 lz4_compress)
  135. endef
  136. define KernelPackage/lib-lz4/description
  137. Kernel module for LZ4 compression/decompression support
  138. endef
  139. $(eval $(call KernelPackage,lib-lz4))
  140. define KernelPackage/lib-lz4hc
  141. SUBMENU:=$(LIB_MENU)
  142. TITLE:=LZ4HC support
  143. DEPENDS:=+kmod-crypto-acompress +kmod-lib-lz4-decompress
  144. KCONFIG:= \
  145. CONFIG_CRYPTO_LZ4HC \
  146. CONFIG_LZ4HC_COMPRESS
  147. FILES:= \
  148. $(LINUX_DIR)/crypto/lz4hc.ko \
  149. $(LINUX_DIR)/lib/lz4/lz4hc_compress.ko
  150. AUTOLOAD:=$(call AutoProbe,lz4hc lz4hc_compress)
  151. endef
  152. define KernelPackage/lib-lz4hc/description
  153. Kernel module for LZ4HC compression/decompression support
  154. endef
  155. $(eval $(call KernelPackage,lib-lz4hc))
  156. define KernelPackage/lib-842
  157. SUBMENU:=$(LIB_MENU)
  158. TITLE:=842 support
  159. DEPENDS:=+kmod-crypto-acompress +kmod-crypto-crc32
  160. KCONFIG:= \
  161. CONFIG_CRYPTO_842 \
  162. CONFIG_842_COMPRESS \
  163. CONFIG_842_DECOMPRESS
  164. FILES:= \
  165. $(LINUX_DIR)/crypto/842.ko \
  166. $(LINUX_DIR)/lib/842/842_compress.ko \
  167. $(LINUX_DIR)/lib/842/842_decompress.ko
  168. AUTOLOAD:=$(call AutoProbe,842 842_compress 842_decompress)
  169. endef
  170. define KernelPackage/lib-842/description
  171. Kernel module for 842 compression/decompression support
  172. endef
  173. $(eval $(call KernelPackage,lib-842))
  174. define KernelPackage/lib-raid6
  175. SUBMENU:=$(LIB_MENU)
  176. TITLE:=RAID6 algorithm support
  177. HIDDEN:=1
  178. KCONFIG:=CONFIG_RAID6_PQ
  179. FILES:=$(LINUX_DIR)/lib/raid6/raid6_pq.ko
  180. AUTOLOAD:=$(call AutoProbe,raid6_pq)
  181. endef
  182. define KernelPackage/lib-raid6/description
  183. Kernel module for RAID6 algorithms
  184. endef
  185. $(eval $(call KernelPackage,lib-raid6))
  186. define KernelPackage/lib-xor
  187. SUBMENU:=$(LIB_MENU)
  188. TITLE:=XOR blocks algorithm support
  189. HIDDEN:=1
  190. KCONFIG:=CONFIG_XOR_BLOCKS
  191. ifneq ($(wildcard $(LINUX_DIR)/arch/$(LINUX_KARCH)/lib/xor-neon.ko),)
  192. FILES:= \
  193. $(LINUX_DIR)/crypto/xor.ko \
  194. $(LINUX_DIR)/arch/$(LINUX_KARCH)/lib/xor-neon.ko
  195. AUTOLOAD:=$(call AutoProbe,xor-neon xor)
  196. else
  197. FILES:=$(LINUX_DIR)/crypto/xor.ko
  198. AUTOLOAD:=$(call AutoProbe,xor)
  199. endif
  200. endef
  201. define KernelPackage/lib-xor/description
  202. Kernel module for XOR blocks algorithms
  203. endef
  204. $(eval $(call KernelPackage,lib-xor))
  205. define KernelPackage/lib-textsearch
  206. SUBMENU:=$(LIB_MENU)
  207. TITLE:=Textsearch support
  208. KCONFIG:= \
  209. CONFIG_TEXTSEARCH=y \
  210. CONFIG_TEXTSEARCH_KMP \
  211. CONFIG_TEXTSEARCH_BM \
  212. CONFIG_TEXTSEARCH_FSM
  213. FILES:= \
  214. $(LINUX_DIR)/lib/ts_kmp.ko \
  215. $(LINUX_DIR)/lib/ts_bm.ko \
  216. $(LINUX_DIR)/lib/ts_fsm.ko
  217. AUTOLOAD:=$(call AutoProbe,ts_kmp ts_bm ts_fsm)
  218. endef
  219. $(eval $(call KernelPackage,lib-textsearch))
  220. define KernelPackage/lib-zlib-inflate
  221. SUBMENU:=$(LIB_MENU)
  222. TITLE:=Zlib support
  223. HIDDEN:=1
  224. KCONFIG:=CONFIG_ZLIB_INFLATE
  225. FILES:=$(LINUX_DIR)/lib/zlib_inflate/zlib_inflate.ko
  226. AUTOLOAD:=$(call AutoProbe,zlib_inflate)
  227. endef
  228. $(eval $(call KernelPackage,lib-zlib-inflate))
  229. define KernelPackage/lib-zlib-deflate
  230. SUBMENU:=$(LIB_MENU)
  231. TITLE:=Zlib support
  232. HIDDEN:=1
  233. KCONFIG:=CONFIG_ZLIB_DEFLATE
  234. FILES:=$(LINUX_DIR)/lib/zlib_deflate/zlib_deflate.ko
  235. AUTOLOAD:=$(call AutoProbe,zlib_deflate)
  236. endef
  237. $(eval $(call KernelPackage,lib-zlib-deflate))
  238. define KernelPackage/lib-cordic
  239. SUBMENU:=$(LIB_MENU)
  240. TITLE:=Cordic function support
  241. KCONFIG:=CONFIG_CORDIC
  242. FILES:=$(LINUX_DIR)/lib/math/cordic.ko
  243. AUTOLOAD:=$(call AutoProbe,cordic)
  244. endef
  245. define KernelPackage/lib-cordic/description
  246. Kernel module for Cordic function support
  247. endef
  248. $(eval $(call KernelPackage,lib-cordic))
  249. define KernelPackage/asn1-decoder
  250. SUBMENU:=$(LIB_MENU)
  251. TITLE:=Simple ASN1 decoder
  252. KCONFIG:= CONFIG_ASN1
  253. HIDDEN:=1
  254. FILES:=$(LINUX_DIR)/lib/asn1_decoder.ko
  255. endef
  256. $(eval $(call KernelPackage,asn1-decoder))
  257. define KernelPackage/asn1-encoder
  258. SUBMENU:=$(LIB_MENU)
  259. TITLE:=Simple ASN1 encoder
  260. KCONFIG:= CONFIG_ASN1_ENCODER
  261. HIDDEN:=1
  262. FILES:=$(LINUX_DIR)/lib/asn1_encoder.ko
  263. endef
  264. $(eval $(call KernelPackage,asn1-encoder))
  265. define KernelPackage/oid-registry
  266. SUBMENU:=$(LIB_MENU)
  267. TITLE:=Object identifier registry
  268. KCONFIG:= CONFIG_OID_REGISTRY
  269. FILES:=$(LINUX_DIR)/lib/oid_registry.ko
  270. AUTOLOAD:=$(call AutoLoad,31,oid_registry)
  271. endef
  272. $(eval $(call KernelPackage,oid-registry))
  273. define KernelPackage/lib-objagg
  274. SUBMENU:=$(LIB_MENU)
  275. TITLE:=objagg support
  276. FILES:=$(LINUX_DIR)/lib/objagg.ko
  277. KCONFIG:= \
  278. CONFIG_OBJAGG \
  279. CONFIG_TEST_OBJAGG=n
  280. AUTOLOAD:=$(call AutoProbe,objagg)
  281. endef
  282. $(eval $(call KernelPackage,lib-objagg))
  283. define KernelPackage/lib-parman
  284. SUBMENU:=$(LIB_MENU)
  285. TITLE:=parman support
  286. FILES:=$(LINUX_DIR)/lib/parman.ko
  287. KCONFIG:= \
  288. CONFIG_PARMAN \
  289. CONFIG_TEST_PARMAN=n
  290. AUTOLOAD:=$(call AutoProbe,parman)
  291. endef
  292. $(eval $(call KernelPackage,lib-parman))