xref: /linux-6.15/arch/riscv/lib/Makefile (revision 511484fa)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2fbe934d6SPalmer Dabbeltlib-y			+= delay.o
3fbe934d6SPalmer Dabbeltlib-y			+= memcpy.o
4fbe934d6SPalmer Dabbeltlib-y			+= memset.o
504091d6cSNylon Chenlib-y			+= memmove.o
658ff5371SSamuel Hollandifeq ($(CONFIG_KASAN_GENERIC)$(CONFIG_KASAN_SW_TAGS),)
756e0790cSHeiko Stuebnerlib-y			+= strcmp.o
856e0790cSHeiko Stuebnerlib-y			+= strlen.o
956e0790cSHeiko Stuebnerlib-y			+= strncmp.o
1058ff5371SSamuel Hollandendif
11a04c192eSCharlie Jenkinslib-y			+= csum.o
12c2a658d4SAndy Chiuifeq ($(CONFIG_MMU), y)
13c2a658d4SAndy Chiulib-$(CONFIG_RISCV_ISA_V)	+= uaccess_vector.o
14c2a658d4SAndy Chiuendif
1511129e8eSChristoph Hellwiglib-$(CONFIG_MMU)	+= uaccess.o
1685d90b91SOlof Johanssonlib-$(CONFIG_64BIT)	+= tishift.o
17ab0f7746SAndrew Joneslib-$(CONFIG_RISCV_ISA_ZICBOZ)	+= clear_page.o
18d36cebe0SEric Biggersobj-$(CONFIG_CRC32_ARCH)	+= crc32-riscv.o
1972acff5fSEric Biggerscrc32-riscv-y := crc32.o crc32_msb.o crc32_lsb.o
20*511484faSEric Biggersobj-$(CONFIG_CRC64_ARCH) += crc64-riscv.o
21*511484faSEric Biggerscrc64-riscv-y := crc64.o crc64_msb.o crc64_lsb.o
228bf3e178SEric Biggersobj-$(CONFIG_CRC_T10DIF_ARCH)	+= crc-t10dif-riscv.o
238bf3e178SEric Biggerscrc-t10dif-riscv-y := crc-t10dif.o crc16_msb.o
24ee55ff80SGuo Renobj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o
25c5674d00SGreentime Hulib-$(CONFIG_RISCV_ISA_V)	+= xor.o
26c2a658d4SAndy Chiulib-$(CONFIG_RISCV_ISA_V)	+= riscv_v_helpers.o
27