blob: e6f4a0a74228adcafd9628fec7215afd4bc8044b [file] [log] [blame]
Isaku Yamahataed50bd62008-10-17 11:17:52 +09001#
2# Makefile for Xen components
3#
4
Isaku Yamahata7477de92008-10-17 11:18:07 +09005obj-y := hypercall.o xenivt.o xensetup.o xen_pv_ops.o irq_xen.o \
Isaku Yamahatab937dd72009-03-04 21:05:43 +09006 hypervisor.o xencomm.o xcom_hcall.o grant-table.o time.o suspend.o \
7 gate-data.o
Isaku Yamahata5142ec42008-10-17 11:18:03 +09008
Isaku Yamahataa0df6552008-10-17 11:18:09 +09009obj-$(CONFIG_IA64_GENERIC) += machvec.o
10
Isaku Yamahatab937dd72009-03-04 21:05:43 +090011# The gate DSO image is built using a special linker script.
12include $(srctree)/arch/ia64/kernel/Makefile.gate
13
14# tell compiled for xen
15CPPFLAGS_gate.lds += -D__IA64_GATE_PARAVIRTUALIZED_XEN
Isaku Yamahataf8de2ec2009-03-04 21:05:46 +090016AFLAGS_gate.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN -D__IA64_GATE_PARAVIRTUALIZED_XEN
Isaku Yamahatab937dd72009-03-04 21:05:43 +090017
18# use same file of native.
19$(obj)/gate.o: $(src)/../kernel/gate.S FORCE
20 $(call if_changed_dep,as_o_S)
21$(obj)/gate.lds: $(src)/../kernel/gate.lds.S FORCE
22 $(call if_changed_dep,cpp_lds_S)
23
24
Isaku Yamahata5142ec42008-10-17 11:18:03 +090025AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN
26
27# xen multi compile
Isaku Yamahata533bd152009-03-04 21:05:35 +090028ASM_PARAVIRT_MULTI_COMPILE_SRCS = ivt.S entry.S fsys.S
Isaku Yamahata5142ec42008-10-17 11:18:03 +090029ASM_PARAVIRT_OBJS = $(addprefix xen-,$(ASM_PARAVIRT_MULTI_COMPILE_SRCS:.S=.o))
30obj-y += $(ASM_PARAVIRT_OBJS)
31define paravirtualized_xen
32AFLAGS_$(1) += -D__IA64_ASM_PARAVIRTUALIZED_XEN
33endef
34$(foreach o,$(ASM_PARAVIRT_OBJS),$(eval $(call paravirtualized_xen,$(o))))
35
36$(obj)/xen-%.o: $(src)/../kernel/%.S FORCE
37 $(call if_changed_dep,as_o_S)