Isaku Yamahata | ed50bd6 | 2008-10-17 11:17:52 +0900 | [diff] [blame] | 1 | # |
| 2 | # Makefile for Xen components |
| 3 | # |
| 4 | |
Isaku Yamahata | 7477de9 | 2008-10-17 11:18:07 +0900 | [diff] [blame] | 5 | obj-y := hypercall.o xenivt.o xensetup.o xen_pv_ops.o irq_xen.o \ |
Isaku Yamahata | b937dd7 | 2009-03-04 21:05:43 +0900 | [diff] [blame] | 6 | hypervisor.o xencomm.o xcom_hcall.o grant-table.o time.o suspend.o \ |
| 7 | gate-data.o |
Isaku Yamahata | 5142ec4 | 2008-10-17 11:18:03 +0900 | [diff] [blame] | 8 | |
Isaku Yamahata | a0df655 | 2008-10-17 11:18:09 +0900 | [diff] [blame] | 9 | obj-$(CONFIG_IA64_GENERIC) += machvec.o |
| 10 | |
Isaku Yamahata | b937dd7 | 2009-03-04 21:05:43 +0900 | [diff] [blame] | 11 | # The gate DSO image is built using a special linker script. |
| 12 | include $(srctree)/arch/ia64/kernel/Makefile.gate |
| 13 | |
| 14 | # tell compiled for xen |
| 15 | CPPFLAGS_gate.lds += -D__IA64_GATE_PARAVIRTUALIZED_XEN |
Isaku Yamahata | f8de2ec | 2009-03-04 21:05:46 +0900 | [diff] [blame] | 16 | AFLAGS_gate.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN -D__IA64_GATE_PARAVIRTUALIZED_XEN |
Isaku Yamahata | b937dd7 | 2009-03-04 21:05:43 +0900 | [diff] [blame] | 17 | |
| 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 Yamahata | 5142ec4 | 2008-10-17 11:18:03 +0900 | [diff] [blame] | 25 | AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN |
| 26 | |
| 27 | # xen multi compile |
Isaku Yamahata | 533bd15 | 2009-03-04 21:05:35 +0900 | [diff] [blame] | 28 | ASM_PARAVIRT_MULTI_COMPILE_SRCS = ivt.S entry.S fsys.S |
Isaku Yamahata | 5142ec4 | 2008-10-17 11:18:03 +0900 | [diff] [blame] | 29 | ASM_PARAVIRT_OBJS = $(addprefix xen-,$(ASM_PARAVIRT_MULTI_COMPILE_SRCS:.S=.o)) |
| 30 | obj-y += $(ASM_PARAVIRT_OBJS) |
| 31 | define paravirtualized_xen |
| 32 | AFLAGS_$(1) += -D__IA64_ASM_PARAVIRTUALIZED_XEN |
| 33 | endef |
| 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) |