2008-03-28 07:58:47 +01:00
|
|
|
#This Make file is to generate asm-offsets.h and build source.
|
|
|
|
#
|
|
|
|
|
|
|
|
#Generate asm-offsets.h for vmm module build
|
|
|
|
offsets-file := asm-offsets.h
|
|
|
|
|
|
|
|
always := $(offsets-file)
|
|
|
|
targets := $(offsets-file)
|
|
|
|
targets += arch/ia64/kvm/asm-offsets.s
|
|
|
|
|
|
|
|
# Default sed regexp - multiline due to syntax constraints
|
|
|
|
define sed-y
|
|
|
|
"/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"
|
|
|
|
endef
|
|
|
|
|
|
|
|
quiet_cmd_offsets = GEN $@
|
|
|
|
define cmd_offsets
|
|
|
|
(set -e; \
|
|
|
|
echo "#ifndef __ASM_KVM_OFFSETS_H__"; \
|
|
|
|
echo "#define __ASM_KVM_OFFSETS_H__"; \
|
|
|
|
echo "/*"; \
|
|
|
|
echo " * DO NOT MODIFY."; \
|
|
|
|
echo " *"; \
|
|
|
|
echo " * This file was generated by Makefile"; \
|
|
|
|
echo " *"; \
|
|
|
|
echo " */"; \
|
|
|
|
echo ""; \
|
|
|
|
sed -ne $(sed-y) $<; \
|
|
|
|
echo ""; \
|
|
|
|
echo "#endif" ) > $@
|
|
|
|
endef
|
2008-10-23 04:37:06 +02:00
|
|
|
|
2008-03-28 07:58:47 +01:00
|
|
|
# We use internal rules to avoid the "is up to date" message from make
|
2008-10-23 04:37:06 +02:00
|
|
|
arch/ia64/kvm/asm-offsets.s: arch/ia64/kvm/asm-offsets.c \
|
|
|
|
$(wildcard $(srctree)/arch/ia64/include/asm/*.h)\
|
|
|
|
$(wildcard $(srctree)/include/linux/*.h)
|
2008-03-28 07:58:47 +01:00
|
|
|
$(call if_changed_dep,cc_s_c)
|
|
|
|
|
|
|
|
$(obj)/$(offsets-file): arch/ia64/kvm/asm-offsets.s
|
|
|
|
$(call cmd,offsets)
|
|
|
|
|
2008-10-23 04:37:06 +02:00
|
|
|
FORCE : $(obj)/$(offsets-file)
|
|
|
|
|
2008-03-28 07:58:47 +01:00
|
|
|
#
|
|
|
|
# Makefile for Kernel-based Virtual Machine module
|
|
|
|
#
|
|
|
|
|
2011-01-14 15:12:28 +01:00
|
|
|
ccflags-y := -Ivirt/kvm -Iarch/ia64/kvm/
|
|
|
|
asflags-y := -Ivirt/kvm -Iarch/ia64/kvm/
|
2008-03-28 07:58:47 +01:00
|
|
|
|
2008-05-30 16:05:57 +02:00
|
|
|
common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \
|
2013-04-25 11:50:03 +02:00
|
|
|
coalesced_mmio.o irq_comm.o assigned-dev.o irqchip.o)
|
2008-03-28 07:58:47 +01:00
|
|
|
|
2008-12-03 14:43:34 +01:00
|
|
|
ifeq ($(CONFIG_IOMMU_API),y)
|
2008-11-26 15:51:19 +01:00
|
|
|
common-objs += $(addprefix ../../../virt/kvm/, iommu.o)
|
2008-10-08 02:29:33 +02:00
|
|
|
endif
|
|
|
|
|
2008-03-28 07:58:47 +01:00
|
|
|
kvm-objs := $(common-objs) kvm-ia64.o kvm_fw.o
|
|
|
|
obj-$(CONFIG_KVM) += kvm.o
|
|
|
|
|
2008-11-20 03:35:35 +01:00
|
|
|
CFLAGS_vcpu.o += -mfixed-range=f2-f5,f12-f127
|
2008-03-28 07:58:47 +01:00
|
|
|
kvm-intel-objs = vmm.o vmm_ivt.o trampoline.o vcpu.o optvfault.o mmio.o \
|
2008-11-21 13:58:11 +01:00
|
|
|
vtlb.o process.o kvm_lib.o
|
2008-03-28 07:58:47 +01:00
|
|
|
#Add link memcpy and memset to avoid possible structure assignment error
|
2008-05-07 11:34:52 +02:00
|
|
|
kvm-intel-objs += memcpy.o memset.o
|
2008-03-28 07:58:47 +01:00
|
|
|
obj-$(CONFIG_KVM_INTEL) += kvm-intel.o
|