Skip to content

Commit 25357de

Browse files
Fuad TabbaMarc Zyngier
authored andcommitted
KVM: arm64: Clean up kvm makefiles
Consolidate references to the CONFIG_KVM configuration item to encompass entire folders rather than per line. Signed-off-by: Fuad Tabba <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Acked-by: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f261336 commit 25357de

File tree

2 files changed

+17
-36
lines changed

2 files changed

+17
-36
lines changed

arch/arm64/kvm/Makefile

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,18 @@ KVM=../../../virt/kvm
1010
obj-$(CONFIG_KVM) += kvm.o
1111
obj-$(CONFIG_KVM) += hyp/
1212

13-
kvm-$(CONFIG_KVM) += $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o
14-
kvm-$(CONFIG_KVM) += $(KVM)/eventfd.o $(KVM)/vfio.o $(KVM)/irqchip.o
15-
kvm-$(CONFIG_KVM) += arm.o mmu.o mmio.o
16-
kvm-$(CONFIG_KVM) += psci.o perf.o
17-
kvm-$(CONFIG_KVM) += hypercalls.o
18-
kvm-$(CONFIG_KVM) += pvtime.o
13+
kvm-y := $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/eventfd.o \
14+
$(KVM)/vfio.o $(KVM)/irqchip.o \
15+
arm.o mmu.o mmio.o psci.o perf.o hypercalls.o pvtime.o \
16+
inject_fault.o regmap.o va_layout.o hyp.o hyp-init.o handle_exit.o \
17+
guest.o debug.o reset.o sys_regs.o sys_regs_generic_v8.o \
18+
vgic-sys-reg-v3.o fpsimd.o pmu.o \
19+
aarch32.o arch_timer.o \
20+
vgic/vgic.o vgic/vgic-init.o \
21+
vgic/vgic-irqfd.o vgic/vgic-v2.o \
22+
vgic/vgic-v3.o vgic/vgic-v4.o \
23+
vgic/vgic-mmio.o vgic/vgic-mmio-v2.o \
24+
vgic/vgic-mmio-v3.o vgic/vgic-kvm-device.o \
25+
vgic/vgic-its.o vgic/vgic-debug.o
1926

20-
kvm-$(CONFIG_KVM) += inject_fault.o regmap.o va_layout.o
21-
kvm-$(CONFIG_KVM) += hyp.o hyp-init.o handle_exit.o
22-
kvm-$(CONFIG_KVM) += guest.o debug.o reset.o sys_regs.o sys_regs_generic_v8.o
23-
kvm-$(CONFIG_KVM) += vgic-sys-reg-v3.o fpsimd.o pmu.o
24-
kvm-$(CONFIG_KVM) += aarch32.o
25-
kvm-$(CONFIG_KVM) += arch_timer.o
2627
kvm-$(CONFIG_KVM_ARM_PMU) += pmu-emul.o
27-
28-
kvm-$(CONFIG_KVM) += vgic/vgic.o
29-
kvm-$(CONFIG_KVM) += vgic/vgic-init.o
30-
kvm-$(CONFIG_KVM) += vgic/vgic-irqfd.o
31-
kvm-$(CONFIG_KVM) += vgic/vgic-v2.o
32-
kvm-$(CONFIG_KVM) += vgic/vgic-v3.o
33-
kvm-$(CONFIG_KVM) += vgic/vgic-v4.o
34-
kvm-$(CONFIG_KVM) += vgic/vgic-mmio.o
35-
kvm-$(CONFIG_KVM) += vgic/vgic-mmio-v2.o
36-
kvm-$(CONFIG_KVM) += vgic/vgic-mmio-v3.o
37-
kvm-$(CONFIG_KVM) += vgic/vgic-kvm-device.o
38-
kvm-$(CONFIG_KVM) += vgic/vgic-its.o
39-
kvm-$(CONFIG_KVM) += vgic/vgic-debug.o

arch/arm64/kvm/hyp/Makefile

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,10 @@
66
ccflags-y += -fno-stack-protector -DDISABLE_BRANCH_PROFILING \
77
$(DISABLE_STACKLEAK_PLUGIN)
88

9-
obj-$(CONFIG_KVM) += vgic-v3-sr.o
10-
obj-$(CONFIG_KVM) += timer-sr.o
11-
obj-$(CONFIG_KVM) += aarch32.o
12-
obj-$(CONFIG_KVM) += vgic-v2-cpuif-proxy.o
13-
obj-$(CONFIG_KVM) += sysreg-sr.o
14-
obj-$(CONFIG_KVM) += debug-sr.o
15-
obj-$(CONFIG_KVM) += entry.o
16-
obj-$(CONFIG_KVM) += switch.o
17-
obj-$(CONFIG_KVM) += fpsimd.o
18-
obj-$(CONFIG_KVM) += tlb.o
19-
obj-$(CONFIG_KVM) += hyp-entry.o
9+
obj-$(CONFIG_KVM) += hyp.o
10+
11+
hyp-y := vgic-v3-sr.o timer-sr.o aarch32.o vgic-v2-cpuif-proxy.o sysreg-sr.o \
12+
debug-sr.o entry.o switch.o fpsimd.o tlb.o hyp-entry.o
2013

2114
# KVM code is run at a different exception code with a different map, so
2215
# compiler instrumentation that inserts callbacks or checks into the code may

0 commit comments

Comments
 (0)