riscv: optimized memmove
[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-$(CONFIG_MMU)       += uaccess.o
5 lib-$(CONFIG_64BIT)     += tishift.o
6 lib-y                   += string.o
7
8 # string.o implements standard library functions like memset/memcpy etc.
9 # Use -ffreestanding to ensure that the compiler does not try to "optimize"
10 # them into calls to themselves.
11 CFLAGS_string.o := -ffreestanding
12
13 obj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o