diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2012-12-10 11:41:44 -0500 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2013-06-12 11:42:09 -0400 |
commit | 6211753fdfd05af9e08f54c8d0ba3ee516034878 (patch) | |
tree | 2037e1c5ac32642ef36cce2fdffdaac154b1516e /arch/arm64 | |
parent | dcd2e40c1e1cce302498d16d095b0f8a30326f74 (diff) |
arm64: KVM: Build system integration
Only the Makefile is plugged in. The Kconfig stuff is in a separate
patch to allow for an easier merge process.
Reviewed-by: Christopher Covington <cov@codeaurora.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/Makefile | 1 | ||||
-rw-r--r-- | arch/arm64/kvm/Makefile | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index c95c5cb212fd..d0ce30a275e0 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile | |||
@@ -37,6 +37,7 @@ TEXT_OFFSET := 0x00080000 | |||
37 | export TEXT_OFFSET GZFLAGS | 37 | export TEXT_OFFSET GZFLAGS |
38 | 38 | ||
39 | core-y += arch/arm64/kernel/ arch/arm64/mm/ | 39 | core-y += arch/arm64/kernel/ arch/arm64/mm/ |
40 | core-$(CONFIG_KVM) += arch/arm64/kvm/ | ||
40 | libs-y := arch/arm64/lib/ $(libs-y) | 41 | libs-y := arch/arm64/lib/ $(libs-y) |
41 | libs-y += $(LIBGCC) | 42 | libs-y += $(LIBGCC) |
42 | 43 | ||
diff --git a/arch/arm64/kvm/Makefile b/arch/arm64/kvm/Makefile new file mode 100644 index 000000000000..dca110556683 --- /dev/null +++ b/arch/arm64/kvm/Makefile | |||
@@ -0,0 +1,23 @@ | |||
1 | # | ||
2 | # Makefile for Kernel-based Virtual Machine module | ||
3 | # | ||
4 | |||
5 | ccflags-y += -Ivirt/kvm -Iarch/arm64/kvm | ||
6 | CFLAGS_arm.o := -I. | ||
7 | CFLAGS_mmu.o := -I. | ||
8 | |||
9 | KVM=../../../virt/kvm | ||
10 | ARM=../../../arch/arm/kvm | ||
11 | |||
12 | obj-$(CONFIG_KVM_ARM_HOST) += kvm.o | ||
13 | |||
14 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o | ||
15 | kvm-$(CONFIG_KVM_ARM_HOST) += $(ARM)/arm.o $(ARM)/mmu.o $(ARM)/mmio.o | ||
16 | kvm-$(CONFIG_KVM_ARM_HOST) += $(ARM)/psci.o $(ARM)/perf.o | ||
17 | |||
18 | kvm-$(CONFIG_KVM_ARM_HOST) += inject_fault.o | ||
19 | kvm-$(CONFIG_KVM_ARM_HOST) += hyp.o hyp-init.o handle_exit.o | ||
20 | kvm-$(CONFIG_KVM_ARM_HOST) += guest.o reset.o sys_regs.o sys_regs_generic_v8.o | ||
21 | |||
22 | kvm-$(CONFIG_KVM_ARM_VGIC) += $(KVM)/arm/vgic.o | ||
23 | kvm-$(CONFIG_KVM_ARM_TIMER) += $(KVM)/arm/arch_timer.o | ||