summaryrefslogtreecommitdiff
path: root/arch/riscv/lib/Makefile
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2025-02-16 14:55:28 -0800
committerEric Biggers <ebiggers@google.com>2025-03-10 09:29:22 -0700
commit72acff5f81851fe0858d2430b35b4b08f8f27a72 (patch)
tree0f2b0ed74678564b4cb0c7a21a5c95fcd923b167 /arch/riscv/lib/Makefile
parentbbe2610bc5ada51418a4191e799cfb4577302a31 (diff)
downloadlwn-72acff5f81851fe0858d2430b35b4b08f8f27a72.tar.gz
lwn-72acff5f81851fe0858d2430b35b4b08f8f27a72.zip
riscv/crc32: reimplement the CRC32 functions using new template
Delete the previous Zbc optimized CRC32 code, and re-implement it using the new template. The new implementation is more optimized and shares more code among CRC variants. Tested-by: Björn Töpel <bjorn@rivosinc.com> Acked-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20250216225530.306980-3-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'arch/riscv/lib/Makefile')
-rw-r--r--arch/riscv/lib/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/lib/Makefile b/arch/riscv/lib/Makefile
index 79368a895fee..7b32d3e88337 100644
--- a/arch/riscv/lib/Makefile
+++ b/arch/riscv/lib/Makefile
@@ -16,6 +16,7 @@ lib-$(CONFIG_MMU) += uaccess.o
lib-$(CONFIG_64BIT) += tishift.o
lib-$(CONFIG_RISCV_ISA_ZICBOZ) += clear_page.o
obj-$(CONFIG_CRC32_ARCH) += crc32-riscv.o
+crc32-riscv-y := crc32.o crc32_msb.o crc32_lsb.o
obj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o
lib-$(CONFIG_RISCV_ISA_V) += xor.o
lib-$(CONFIG_RISCV_ISA_V) += riscv_v_helpers.o