Makefile (9aebdea494b5d2d5fe0ba54d71e9d6c5acfe76b4) Makefile (c04dd455eb311d2d289c9d81d080eaf11a06cebf)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for Kernel-based Virtual Machine module, HYP part
4#
5
6incdir := $(srctree)/$(src)/include
7subdir-asflags-y := -I$(incdir)
8subdir-ccflags-y := -I$(incdir) \
9 -fno-stack-protector \
10 -DDISABLE_BRANCH_PROFILING \
11 $(DISABLE_STACKLEAK_PLUGIN)
12
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for Kernel-based Virtual Machine module, HYP part
4#
5
6incdir := $(srctree)/$(src)/include
7subdir-asflags-y := -I$(incdir)
8subdir-ccflags-y := -I$(incdir) \
9 -fno-stack-protector \
10 -DDISABLE_BRANCH_PROFILING \
11 $(DISABLE_STACKLEAK_PLUGIN)
12
13obj-$(CONFIG_KVM) += hyp.o vhe/ nvhe/
13obj-$(CONFIG_KVM) += vhe/ nvhe/
14obj-$(CONFIG_KVM_INDIRECT_VECTORS) += smccc_wa.o
14obj-$(CONFIG_KVM_INDIRECT_VECTORS) += smccc_wa.o
15
16hyp-y := vgic-v3-sr.o aarch32.o vgic-v2-cpuif-proxy.o entry.o \
17 fpsimd.o
18
19# KVM code is run at a different exception code with a different map, so
20# compiler instrumentation that inserts callbacks or checks into the code may
21# cause crashes. Just disable it.
22GCOV_PROFILE := n
23KASAN_SANITIZE := n
24UBSAN_SANITIZE := n
25KCOV_INSTRUMENT := n