1 #This Make file is to generate asm-offsets.h and build source.
4 #Generate asm-offsets.h for vmm module build
5 offsets-file
:= asm-offsets.h
7 always
:= $(offsets-file
)
8 targets
:= $(offsets-file
)
9 targets
+= arch
/ia64
/kvm
/asm-offsets.s
11 # Default sed regexp - multiline due to syntax constraints
13 "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"
16 quiet_cmd_offsets
= GEN
$@
19 echo
"#ifndef __ASM_KVM_OFFSETS_H__"; \
20 echo
"#define __ASM_KVM_OFFSETS_H__"; \
22 echo
" * DO NOT MODIFY."; \
24 echo
" * This file was generated by Makefile"; \
28 sed
-ne
$(sed-y
) $<; \
33 # We use internal rules to avoid the "is up to date" message from make
34 arch
/ia64
/kvm
/asm-offsets.s
: arch
/ia64
/kvm
/asm-offsets.c \
35 $(wildcard $(srctree
)/arch
/ia64
/include/asm
/*.h
)\
36 $(wildcard $(srctree
)/include/linux
/*.h
)
37 $(call if_changed_dep
,cc_s_c
)
39 $(obj
)/$(offsets-file
): arch
/ia64
/kvm
/asm-offsets.s
42 FORCE
: $(obj
)/$(offsets-file
)
45 # Makefile for Kernel-based Virtual Machine module
48 ccflags-y
:= -Ivirt
/kvm
-Iarch
/ia64
/kvm
/
49 asflags-y
:= -Ivirt
/kvm
-Iarch
/ia64
/kvm
/
50 KVM
:= ..
/..
/..
/virt
/kvm
52 common-objs
= $(KVM
)/kvm_main.o
$(KVM
)/ioapic.o \
53 $(KVM
)/coalesced_mmio.o
$(KVM
)/irq_comm.o
55 ifeq ($(CONFIG_KVM_DEVICE_ASSIGNMENT
),y
)
56 common-objs
+= $(KVM
)/assigned-dev.o
$(KVM
)/iommu.o
59 kvm-objs
:= $(common-objs
) kvm-ia64.o kvm_fw.o
60 obj-
$(CONFIG_KVM
) += kvm.o
62 CFLAGS_vcpu.o
+= -mfixed-range
=f2-f5
,f12-f127
63 kvm-intel-objs
= vmm.o vmm_ivt.o trampoline.o vcpu.o optvfault.o mmio.o \
64 vtlb.o process.o kvm_lib.o
65 #Add link memcpy and memset to avoid possible structure assignment error
66 kvm-intel-objs
+= memcpy.o memset.o
67 obj-
$(CONFIG_KVM_INTEL
) += kvm-intel.o