1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for s390-specific library files.. 4# 5 6# string.o implements standard library functions like memset/memcpy etc. 7# Use -ffreestanding to ensure that the compiler does not try to "optimize" 8# them into calls to themselves. 9CFLAGS_string.o = -ffreestanding 10 11lib-y += delay.o string.o uaccess.o find.o spinlock.o tishift.o 12lib-y += csum-partial.o 13lib-$(CONFIG_KPROBES) += probes.o 14lib-$(CONFIG_UPROBES) += probes.o 15obj-$(CONFIG_S390_KPROBES_SANITY_TEST) += test_kprobes_s390.o 16test_kprobes_s390-objs += test_kprobes_asm.o test_kprobes.o 17 18# Instrumenting memory accesses to __user data (in different address space) 19# produce false positives 20KASAN_SANITIZE_uaccess.o := n 21 22obj-$(CONFIG_S390_UNWIND_SELFTEST) += test_unwind.o 23CFLAGS_test_unwind.o += -fno-optimize-sibling-calls 24 25obj-$(CONFIG_S390_MODULES_SANITY_TEST) += test_modules.o 26obj-$(CONFIG_S390_MODULES_SANITY_TEST_HELPERS) += test_modules_helpers.o 27 28lib-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o 29 30obj-$(CONFIG_EXPOLINE_EXTERN) += expoline.o 31