riscv: optimized memcpy
[platform/kernel/linux-starfive.git] / arch / riscv / lib / Makefile
1 # SPDX-License-Identifier: GPL-2.0-only
2 lib-y                   += delay.o
3 lib-y                   += memset.o
4 lib-y                   += memmove.o
5 lib-$(CONFIG_MMU)       += uaccess.o
6 lib-$(CONFIG_64BIT)     += tishift.o
7 lib-y                   += string.o
8
9 # string.o implements standard library functions like memset/memcpy etc.
10 # Use -ffreestanding to ensure that the compiler does not try to "optimize"
11 # them into calls to themselves.
12 CFLAGS_string.o := -ffreestanding
13
14 obj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o