Makefile (9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e) Makefile (6ccc971ee2c61a1ffb487e46bf6184f7df6aacfb)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for Kernel-based Virtual Machine module
4#
5
6ccflags-y += -I $(srctree)/$(src)
7
8include $(srctree)/virt/kvm/Makefile.kvm

--- 9 unchanged lines hidden (view full) ---

18 vgic/vgic.o vgic/vgic-init.o \
19 vgic/vgic-irqfd.o vgic/vgic-v2.o \
20 vgic/vgic-v3.o vgic/vgic-v4.o \
21 vgic/vgic-mmio.o vgic/vgic-mmio-v2.o \
22 vgic/vgic-mmio-v3.o vgic/vgic-kvm-device.o \
23 vgic/vgic-its.o vgic/vgic-debug.o
24
25kvm-$(CONFIG_HW_PERF_EVENTS) += pmu-emul.o pmu.o
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for Kernel-based Virtual Machine module
4#
5
6ccflags-y += -I $(srctree)/$(src)
7
8include $(srctree)/virt/kvm/Makefile.kvm

--- 9 unchanged lines hidden (view full) ---

18 vgic/vgic.o vgic/vgic-init.o \
19 vgic/vgic-irqfd.o vgic/vgic-v2.o \
20 vgic/vgic-v3.o vgic/vgic-v4.o \
21 vgic/vgic-mmio.o vgic/vgic-mmio-v2.o \
22 vgic/vgic-mmio-v3.o vgic/vgic-kvm-device.o \
23 vgic/vgic-its.o vgic/vgic-debug.o
24
25kvm-$(CONFIG_HW_PERF_EVENTS) += pmu-emul.o pmu.o
26kvm-$(CONFIG_ARM64_PTR_AUTH) += pauth.o
26
27always-y := hyp_constants.h hyp-constants.s
28
29define rule_gen_hyp_constants
30 $(call filechk,offsets,__HYP_CONSTANTS_H__)
31endef
32
33CFLAGS_hyp-constants.o = -I $(srctree)/$(src)/hyp/include
34$(obj)/hyp-constants.s: $(src)/hyp/hyp-constants.c FORCE
35 $(call if_changed_dep,cc_s_c)
36
37$(obj)/hyp_constants.h: $(obj)/hyp-constants.s FORCE
38 $(call if_changed_rule,gen_hyp_constants)
39
40obj-kvm := $(addprefix $(obj)/, $(kvm-y))
41$(obj-kvm): $(obj)/hyp_constants.h
27
28always-y := hyp_constants.h hyp-constants.s
29
30define rule_gen_hyp_constants
31 $(call filechk,offsets,__HYP_CONSTANTS_H__)
32endef
33
34CFLAGS_hyp-constants.o = -I $(srctree)/$(src)/hyp/include
35$(obj)/hyp-constants.s: $(src)/hyp/hyp-constants.c FORCE
36 $(call if_changed_dep,cc_s_c)
37
38$(obj)/hyp_constants.h: $(obj)/hyp-constants.s FORCE
39 $(call if_changed_rule,gen_hyp_constants)
40
41obj-kvm := $(addprefix $(obj)/, $(kvm-y))
42$(obj-kvm): $(obj)/hyp_constants.h