Lines Matching +full:riscv +full:- +full:crypto

1 # SPDX-License-Identifier: GPL-2.0
3 purgatory-y := purgatory.o sha256.o entry.o string.o ctype.o memcpy.o memset.o
5 purgatory-y += strcmp.o strlen.o strncmp.o
8 targets += $(purgatory-y)
9 PURGATORY_OBJS = $(addprefix $(obj)/,$(purgatory-y))
17 $(obj)/memcpy.o: $(srctree)/arch/riscv/lib/memcpy.S FORCE
20 $(obj)/memset.o: $(srctree)/arch/riscv/lib/memset.S FORCE
23 $(obj)/strcmp.o: $(srctree)/arch/riscv/lib/strcmp.S FORCE
26 $(obj)/strlen.o: $(srctree)/arch/riscv/lib/strlen.S FORCE
29 $(obj)/strncmp.o: $(srctree)/arch/riscv/lib/strncmp.S FORCE
32 $(obj)/sha256.o: $(srctree)/lib/crypto/sha256.c FORCE
35 CFLAGS_sha256.o := -D__DISABLE_EXPORTS -D__NO_FORTIFY
36 CFLAGS_string.o := -D__DISABLE_EXPORTS
37 CFLAGS_ctype.o := -D__DISABLE_EXPORTS
39 # When profile-guided optimization is enabled, llvm emits two different
42 KBUILD_CFLAGS := $(filter-out -fprofile-sample-use=% -fprofile-use=%,$(KBUILD_CFLAGS))
44 # When linking purgatory.ro with -r unresolved symbols are not checked,
45 # also link a purgatory.chk binary without -r to check for unresolved symbols.
46 PURGATORY_LDFLAGS := -e purgatory_start -z nodefaultlib
47 LDFLAGS_purgatory.ro := -r $(PURGATORY_LDFLAGS)
54 PURGATORY_CFLAGS_REMOVE := -mcmodel=kernel
55 PURGATORY_CFLAGS := -mcmodel=medany -ffreestanding -fno-zero-initialized-in-bss
56 PURGATORY_CFLAGS += $(DISABLE_STACKLEAK_PLUGIN) -DDISABLE_BRANCH_PROFILING
57 PURGATORY_CFLAGS += -fno-stack-protector -g0
59 # Default KBUILD_CFLAGS can have -pg option set when FTRACE is enabled. That
67 PURGATORY_CFLAGS_REMOVE += -fstack-protector
71 PURGATORY_CFLAGS_REMOVE += -fstack-protector-strong
79 PURGATORY_CFLAGS_REMOVE += -fPIE
98 asflags-remove-y += $(foreach x, -g -gdwarf-4 -gdwarf-5, $(x) -Wa,$(x))
106 $(obj)/kexec-purgatory.o: $(obj)/purgatory.ro $(obj)/purgatory.chk
108 obj-y += kexec-purgatory.o