2
0

lib.mk 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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)/lib/lzo/lzo_compress.ko \
  87. $(LINUX_DIR)/lib/lzo/lzo_decompress.ko
  88. AUTOLOAD:=$(call AutoProbe,lzo lzo_compress lzo_decompress)
  89. endef
  90. define KernelPackage/lib-lzo/description
  91. Kernel module for LZO compression/decompression support
  92. endef
  93. $(eval $(call KernelPackage,lib-lzo))
  94. define KernelPackage/lib-zstd
  95. SUBMENU:=$(LIB_MENU)
  96. TITLE:=ZSTD support
  97. KCONFIG:= \
  98. CONFIG_ZSTD_COMPRESS \
  99. CONFIG_ZSTD_DECOMPRESS \
  100. CONFIG_XXHASH
  101. HIDDEN:=1
  102. FILES:= \
  103. $(LINUX_DIR)/lib/xxhash.ko \
  104. $(LINUX_DIR)/lib/zstd/zstd_compress.ko \
  105. $(LINUX_DIR)/lib/zstd/zstd_decompress.ko
  106. AUTOLOAD:=$(call AutoProbe,xxhash zstd_compress zstd_decompress)
  107. endef
  108. define KernelPackage/lib-zstd/description
  109. Kernel module for ZSTD compression/decompression support
  110. endef
  111. $(eval $(call KernelPackage,lib-zstd))
  112. define KernelPackage/lib-lz4
  113. SUBMENU:=$(LIB_MENU)
  114. TITLE:=LZ4 support
  115. DEPENDS:=+kmod-crypto-acompress
  116. KCONFIG:= \
  117. CONFIG_CRYPTO_LZ4 \
  118. CONFIG_LZ4_COMPRESS \
  119. CONFIG_LZ4_DECOMPRESS
  120. FILES:= \
  121. $(LINUX_DIR)/crypto/lz4.ko \
  122. $(LINUX_DIR)/lib/lz4/lz4_compress.ko \
  123. $(LINUX_DIR)/lib/lz4/lz4_decompress.ko
  124. AUTOLOAD:=$(call AutoProbe,lz4 lz4_compress lz4_decompress)
  125. endef
  126. define KernelPackage/lib-lz4/description
  127. Kernel module for LZ4 compression/decompression support
  128. endef
  129. $(eval $(call KernelPackage,lib-lz4))
  130. define KernelPackage/lib-raid6
  131. SUBMENU:=$(LIB_MENU)
  132. TITLE:=RAID6 algorithm support
  133. HIDDEN:=1
  134. KCONFIG:=CONFIG_RAID6_PQ
  135. FILES:=$(LINUX_DIR)/lib/raid6/raid6_pq.ko
  136. AUTOLOAD:=$(call AutoProbe,raid6_pq)
  137. endef
  138. define KernelPackage/lib-raid6/description
  139. Kernel module for RAID6 algorithms
  140. endef
  141. $(eval $(call KernelPackage,lib-raid6))
  142. define KernelPackage/lib-xor
  143. SUBMENU:=$(LIB_MENU)
  144. TITLE:=XOR blocks algorithm support
  145. HIDDEN:=1
  146. KCONFIG:=CONFIG_XOR_BLOCKS
  147. ifneq ($(wildcard $(LINUX_DIR)/arch/$(LINUX_KARCH)/lib/xor-neon.ko),)
  148. FILES:= \
  149. $(LINUX_DIR)/crypto/xor.ko \
  150. $(LINUX_DIR)/arch/$(LINUX_KARCH)/lib/xor-neon.ko
  151. AUTOLOAD:=$(call AutoProbe,xor-neon xor)
  152. else
  153. FILES:=$(LINUX_DIR)/crypto/xor.ko
  154. AUTOLOAD:=$(call AutoProbe,xor)
  155. endif
  156. endef
  157. define KernelPackage/lib-xor/description
  158. Kernel module for XOR blocks algorithms
  159. endef
  160. $(eval $(call KernelPackage,lib-xor))
  161. define KernelPackage/lib-textsearch
  162. SUBMENU:=$(LIB_MENU)
  163. TITLE:=Textsearch support
  164. KCONFIG:= \
  165. CONFIG_TEXTSEARCH=y \
  166. CONFIG_TEXTSEARCH_KMP \
  167. CONFIG_TEXTSEARCH_BM \
  168. CONFIG_TEXTSEARCH_FSM
  169. FILES:= \
  170. $(LINUX_DIR)/lib/ts_kmp.ko \
  171. $(LINUX_DIR)/lib/ts_bm.ko \
  172. $(LINUX_DIR)/lib/ts_fsm.ko
  173. AUTOLOAD:=$(call AutoProbe,ts_kmp ts_bm ts_fsm)
  174. endef
  175. $(eval $(call KernelPackage,lib-textsearch))
  176. define KernelPackage/lib-zlib-inflate
  177. SUBMENU:=$(LIB_MENU)
  178. TITLE:=Zlib support
  179. HIDDEN:=1
  180. KCONFIG:=CONFIG_ZLIB_INFLATE
  181. FILES:=$(LINUX_DIR)/lib/zlib_inflate/zlib_inflate.ko
  182. AUTOLOAD:=$(call AutoProbe,zlib_inflate)
  183. endef
  184. $(eval $(call KernelPackage,lib-zlib-inflate))
  185. define KernelPackage/lib-zlib-deflate
  186. SUBMENU:=$(LIB_MENU)
  187. TITLE:=Zlib support
  188. HIDDEN:=1
  189. KCONFIG:=CONFIG_ZLIB_DEFLATE
  190. FILES:=$(LINUX_DIR)/lib/zlib_deflate/zlib_deflate.ko
  191. AUTOLOAD:=$(call AutoProbe,zlib_deflate)
  192. endef
  193. $(eval $(call KernelPackage,lib-zlib-deflate))
  194. define KernelPackage/lib-cordic
  195. SUBMENU:=$(LIB_MENU)
  196. TITLE:=Cordic function support
  197. KCONFIG:=CONFIG_CORDIC
  198. FILES:=$(LINUX_DIR)/lib/[email protected] \
  199. $(LINUX_DIR)/lib/math/[email protected]
  200. AUTOLOAD:=$(call AutoProbe,cordic)
  201. endef
  202. define KernelPackage/lib-cordic/description
  203. Kernel module for Cordic function support
  204. endef
  205. $(eval $(call KernelPackage,lib-cordic))
  206. define KernelPackage/asn1-decoder
  207. SUBMENU:=$(LIB_MENU)
  208. TITLE:=Simple ASN1 decoder
  209. KCONFIG:= CONFIG_ASN1
  210. HIDDEN:=1
  211. FILES:=$(LINUX_DIR)/lib/asn1_decoder.ko
  212. endef
  213. $(eval $(call KernelPackage,asn1-decoder))