1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 26211753fSMarc Zyngier# 36211753fSMarc Zyngier# Makefile for Kernel-based Virtual Machine module 46211753fSMarc Zyngier# 56211753fSMarc Zyngier 6b1992c37SMasahiro Yamadaccflags-y += -I $(src) 76211753fSMarc Zyngier 8d8f6ef45SDavid Woodhouseinclude $(srctree)/virt/kvm/Makefile.kvm 96211753fSMarc Zyngier 10d82755b2SWill Deaconobj-$(CONFIG_KVM) += kvm.o 11d82755b2SWill Deaconobj-$(CONFIG_KVM) += hyp/ 126211753fSMarc Zyngier 1379e06c4cSLinus TorvaldsCFLAGS_sys_regs.o += -Wno-override-init 1490c1f934SMarc ZyngierCFLAGS_handle_exit.o += -Wno-override-init 159f5fee05SMarc Zyngier 1620492a62SMarc Zyngierkvm-y += arm.o mmu.o mmio.o psci.o hypercalls.o pvtime.o \ 179f75b6d4SMarc Zyngier inject_fault.o va_layout.o handle_exit.o \ 1825357de0SFuad Tabba guest.o debug.o reset.o sys_regs.o stacktrace.o \ 1925357de0SFuad Tabba vgic-sys-reg-v3.o fpsimd.o pkvm.o \ 2025357de0SFuad Tabba arch_timer.o trng.o vmid.o emulate-nested.o nested.o at.o \ 2125357de0SFuad Tabba vgic/vgic.o vgic/vgic-init.o \ 2225357de0SFuad Tabba vgic/vgic-irqfd.o vgic/vgic-v2.o \ 2325357de0SFuad Tabba vgic/vgic-v3.o vgic/vgic-v4.o \ 246211753fSMarc Zyngier vgic/vgic-mmio.o vgic/vgic-mmio-v2.o \ 2520492a62SMarc Zyngier vgic/vgic-mmio-v3.o vgic/vgic-kvm-device.o \ 266ccc971eSMarc Zyngier vgic/vgic-its.o vgic/vgic-debug.o 27*7c4f7354SSebastian Ene 28ed4ed15dSWill Deaconkvm-$(CONFIG_HW_PERF_EVENTS) += pmu-emul.o pmu.o 29ed4ed15dSWill Deaconkvm-$(CONFIG_ARM64_PTR_AUTH) += pauth.o 30ed4ed15dSWill Deaconkvm-$(CONFIG_PTDUMP_STAGE2_DEBUGFS) += ptdump.o 31ed4ed15dSWill Deacon 32ed4ed15dSWill Deaconalways-y := hyp_constants.h hyp-constants.s 33ed4ed15dSWill Deacon 34ed4ed15dSWill Deacondefine rule_gen_hyp_constants 35b1992c37SMasahiro Yamada $(call filechk,offsets,__HYP_CONSTANTS_H__) 36ed4ed15dSWill Deaconendef 37ed4ed15dSWill Deacon 38ed4ed15dSWill DeaconCFLAGS_hyp-constants.o = -I $(src)/hyp/include 39ed4ed15dSWill Deacon$(obj)/hyp-constants.s: $(src)/hyp/hyp-constants.c FORCE 40ed4ed15dSWill Deacon $(call if_changed_dep,cc_s_c) 41ed4ed15dSWill Deacon 42ed4ed15dSWill Deacon$(obj)/hyp_constants.h: $(obj)/hyp-constants.s FORCE 43ed4ed15dSWill Deacon $(call if_changed_rule,gen_hyp_constants) 44 45obj-kvm := $(addprefix $(obj)/, $(kvm-y)) 46$(obj-kvm): $(obj)/hyp_constants.h 47