Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Makefile for Kernel-based Virtual Machine module, HYP part
  4. #
  5. ccflags-y += -fno-stack-protector -DDISABLE_BRANCH_PROFILING \
  6. $(DISABLE_STACKLEAK_PLUGIN)
  7. KVM=../../../../virt/kvm
  8. obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v3-sr.o
  9. obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/timer-sr.o
  10. obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/aarch32.o
  11. obj-$(CONFIG_KVM_ARM_HOST) += vgic-v2-cpuif-proxy.o
  12. obj-$(CONFIG_KVM_ARM_HOST) += sysreg-sr.o
  13. obj-$(CONFIG_KVM_ARM_HOST) += debug-sr.o
  14. obj-$(CONFIG_KVM_ARM_HOST) += entry.o
  15. obj-$(CONFIG_KVM_ARM_HOST) += switch.o
  16. obj-$(CONFIG_KVM_ARM_HOST) += fpsimd.o
  17. obj-$(CONFIG_KVM_ARM_HOST) += tlb.o
  18. obj-$(CONFIG_KVM_ARM_HOST) += hyp-entry.o
  19. obj-$(CONFIG_KVM_ARM_HOST) += s2-setup.o
  20. # KVM code is run at a different exception code with a different map, so
  21. # compiler instrumentation that inserts callbacks or checks into the code may
  22. # cause crashes. Just disable it.
  23. GCOV_PROFILE := n
  24. KASAN_SANITIZE := n
  25. UBSAN_SANITIZE := n
  26. KCOV_INSTRUMENT := n