2008-10-16 22:17:52 -04:00
|
|
|
#
|
|
|
|
# Makefile for Xen components
|
|
|
|
#
|
|
|
|
|
2008-10-16 22:18:07 -04:00
|
|
|
obj-y := hypercall.o xenivt.o xensetup.o xen_pv_ops.o irq_xen.o \
|
2009-03-04 07:05:43 -05:00
|
|
|
hypervisor.o xencomm.o xcom_hcall.o grant-table.o time.o suspend.o \
|
|
|
|
gate-data.o
|
2008-10-16 22:18:03 -04:00
|
|
|
|
2008-10-16 22:18:09 -04:00
|
|
|
obj-$(CONFIG_IA64_GENERIC) += machvec.o
|
|
|
|
|
2009-03-04 07:05:43 -05:00
|
|
|
# The gate DSO image is built using a special linker script.
|
|
|
|
include $(srctree)/arch/ia64/kernel/Makefile.gate
|
|
|
|
|
|
|
|
# tell compiled for xen
|
|
|
|
CPPFLAGS_gate.lds += -D__IA64_GATE_PARAVIRTUALIZED_XEN
|
2009-03-04 07:05:46 -05:00
|
|
|
AFLAGS_gate.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN -D__IA64_GATE_PARAVIRTUALIZED_XEN
|
2009-03-04 07:05:43 -05:00
|
|
|
|
|
|
|
# use same file of native.
|
|
|
|
$(obj)/gate.o: $(src)/../kernel/gate.S FORCE
|
|
|
|
$(call if_changed_dep,as_o_S)
|
|
|
|
$(obj)/gate.lds: $(src)/../kernel/gate.lds.S FORCE
|
|
|
|
$(call if_changed_dep,cpp_lds_S)
|
|
|
|
|
|
|
|
|
2008-10-16 22:18:03 -04:00
|
|
|
AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN
|
|
|
|
|
|
|
|
# xen multi compile
|
2009-03-04 07:05:35 -05:00
|
|
|
ASM_PARAVIRT_MULTI_COMPILE_SRCS = ivt.S entry.S fsys.S
|
2008-10-16 22:18:03 -04:00
|
|
|
ASM_PARAVIRT_OBJS = $(addprefix xen-,$(ASM_PARAVIRT_MULTI_COMPILE_SRCS:.S=.o))
|
|
|
|
obj-y += $(ASM_PARAVIRT_OBJS)
|
|
|
|
define paravirtualized_xen
|
|
|
|
AFLAGS_$(1) += -D__IA64_ASM_PARAVIRTUALIZED_XEN
|
|
|
|
endef
|
|
|
|
$(foreach o,$(ASM_PARAVIRT_OBJS),$(eval $(call paravirtualized_xen,$(o))))
|
|
|
|
|
|
|
|
$(obj)/xen-%.o: $(src)/../kernel/%.S FORCE
|
|
|
|
$(call if_changed_dep,as_o_S)
|