ia64/pv_ops/xen: define xen specific gate page.
[linux-2.6-block.git] / arch / ia64 / xen / Makefile
CommitLineData
ed50bd60
IY
1#
2# Makefile for Xen components
3#
4
7477de98 5obj-y := hypercall.o xenivt.o xensetup.o xen_pv_ops.o irq_xen.o \
b937dd76
IY
6 hypervisor.o xencomm.o xcom_hcall.o grant-table.o time.o suspend.o \
7 gate-data.o
5142ec46 8
a0df655c
IY
9obj-$(CONFIG_IA64_GENERIC) += machvec.o
10
b937dd76
IY
11# 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
16
17# use same file of native.
18$(obj)/gate.o: $(src)/../kernel/gate.S FORCE
19 $(call if_changed_dep,as_o_S)
20$(obj)/gate.lds: $(src)/../kernel/gate.lds.S FORCE
21 $(call if_changed_dep,cpp_lds_S)
22
23
5142ec46
IY
24AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN
25
26# xen multi compile
533bd156 27ASM_PARAVIRT_MULTI_COMPILE_SRCS = ivt.S entry.S fsys.S
5142ec46
IY
28ASM_PARAVIRT_OBJS = $(addprefix xen-,$(ASM_PARAVIRT_MULTI_COMPILE_SRCS:.S=.o))
29obj-y += $(ASM_PARAVIRT_OBJS)
30define paravirtualized_xen
31AFLAGS_$(1) += -D__IA64_ASM_PARAVIRTUALIZED_XEN
32endef
33$(foreach o,$(ASM_PARAVIRT_OBJS),$(eval $(call paravirtualized_xen,$(o))))
34
35$(obj)/xen-%.o: $(src)/../kernel/%.S FORCE
36 $(call if_changed_dep,as_o_S)