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