| .. | .. | 
|---|
| 3 | 3 |  # Makefile for Kernel-based Virtual Machine module, HYP part | 
|---|
| 4 | 4 |  # | 
|---|
| 5 | 5 |   | 
|---|
| 6 |  | -ccflags-y += -fno-stack-protector -DDISABLE_BRANCH_PROFILING \  | 
|---|
| 7 |  | -		$(DISABLE_STACKLEAK_PLUGIN) \  | 
|---|
| 8 |  | -		$(DISABLE_CFI)  | 
|---|
 | 6 | +incdir := $(srctree)/$(src)/include  | 
|---|
 | 7 | +subdir-asflags-y := -I$(incdir)  | 
|---|
 | 8 | +subdir-ccflags-y := -I$(incdir)				\  | 
|---|
 | 9 | +		    -fno-stack-protector		\  | 
|---|
 | 10 | +		    -DDISABLE_BRANCH_PROFILING		\  | 
|---|
 | 11 | +		    $(DISABLE_STACKLEAK_PLUGIN)  | 
|---|
| 9 | 12 |   | 
|---|
| 10 |  | -ifeq ($(cc-name),clang)  | 
|---|
| 11 |  | -ccflags-y += -fno-jump-tables  | 
|---|
| 12 |  | -endif  | 
|---|
| 13 |  | -  | 
|---|
| 14 |  | -KVM=../../../../virt/kvm  | 
|---|
| 15 |  | -  | 
|---|
| 16 |  | -obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v3-sr.o  | 
|---|
| 17 |  | -obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/timer-sr.o  | 
|---|
| 18 |  | -obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/aarch32.o  | 
|---|
| 19 |  | -  | 
|---|
| 20 |  | -obj-$(CONFIG_KVM_ARM_HOST) += vgic-v2-cpuif-proxy.o  | 
|---|
| 21 |  | -obj-$(CONFIG_KVM_ARM_HOST) += sysreg-sr.o  | 
|---|
| 22 |  | -obj-$(CONFIG_KVM_ARM_HOST) += debug-sr.o  | 
|---|
| 23 |  | -obj-$(CONFIG_KVM_ARM_HOST) += entry.o  | 
|---|
| 24 |  | -obj-$(CONFIG_KVM_ARM_HOST) += switch.o  | 
|---|
| 25 |  | -obj-$(CONFIG_KVM_ARM_HOST) += fpsimd.o  | 
|---|
| 26 |  | -obj-$(CONFIG_KVM_ARM_HOST) += tlb.o  | 
|---|
| 27 |  | -obj-$(CONFIG_KVM_ARM_HOST) += hyp-entry.o  | 
|---|
| 28 |  | -obj-$(CONFIG_KVM_ARM_HOST) += s2-setup.o  | 
|---|
| 29 |  | -  | 
|---|
| 30 |  | -# KVM code is run at a different exception code with a different map, so  | 
|---|
| 31 |  | -# compiler instrumentation that inserts callbacks or checks into the code may  | 
|---|
| 32 |  | -# cause crashes. Just disable it.  | 
|---|
| 33 |  | -GCOV_PROFILE	:= n  | 
|---|
| 34 |  | -KASAN_SANITIZE	:= n  | 
|---|
| 35 |  | -UBSAN_SANITIZE	:= n  | 
|---|
| 36 |  | -KCOV_INSTRUMENT	:= n  | 
|---|
| 37 |  | -  | 
|---|
| 38 |  | -# remove the SCS flags from all objects in this directory  | 
|---|
| 39 |  | -KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_SCS), $(KBUILD_CFLAGS))  | 
|---|
 | 13 | +obj-$(CONFIG_KVM) += vhe/ nvhe/ pgtable.o reserved_mem.o  | 
|---|