xref: /openbmc/linux/arch/x86/xen/Makefile (revision 1804569d)
1# SPDX-License-Identifier: GPL-2.0
2OBJECT_FILES_NON_STANDARD_xen-asm_$(BITS).o := y
3
4ifdef CONFIG_FUNCTION_TRACER
5# Do not profile debug and lowlevel utilities
6CFLAGS_REMOVE_spinlock.o = -pg
7CFLAGS_REMOVE_time.o = -pg
8CFLAGS_REMOVE_irq.o = -pg
9endif
10
11# Make sure early boot has no stackprotector
12nostackp := $(call cc-option, -fno-stack-protector)
13CFLAGS_enlighten_pv.o		:= $(nostackp)
14CFLAGS_mmu_pv.o			:= $(nostackp)
15
16obj-y				+= enlighten.o
17obj-y				+= mmu.o
18obj-y				+= time.o
19obj-y				+= grant-table.o
20obj-y				+= suspend.o
21
22obj-$(CONFIG_XEN_PVHVM)		+= enlighten_hvm.o
23obj-$(CONFIG_XEN_PVHVM)		+= mmu_hvm.o
24obj-$(CONFIG_XEN_PVHVM)		+= suspend_hvm.o
25obj-$(CONFIG_XEN_PVHVM)		+= platform-pci-unplug.o
26
27obj-$(CONFIG_XEN_PV)		+= setup.o
28obj-$(CONFIG_XEN_PV)		+= apic.o
29obj-$(CONFIG_XEN_PV)		+= pmu.o
30obj-$(CONFIG_XEN_PV)		+= suspend_pv.o
31obj-$(CONFIG_XEN_PV)		+= p2m.o
32obj-$(CONFIG_XEN_PV)		+= enlighten_pv.o
33obj-$(CONFIG_XEN_PV)		+= mmu_pv.o
34obj-$(CONFIG_XEN_PV)		+= irq.o
35obj-$(CONFIG_XEN_PV)		+= multicalls.o
36obj-$(CONFIG_XEN_PV)		+= xen-asm.o
37obj-$(CONFIG_XEN_PV)		+= xen-asm_$(BITS).o
38
39obj-$(CONFIG_XEN_PVH)		+= enlighten_pvh.o
40
41obj-$(CONFIG_EVENT_TRACING)	+= trace.o
42
43obj-$(CONFIG_SMP)		+= smp.o
44obj-$(CONFIG_XEN_PV_SMP)  	+= smp_pv.o
45obj-$(CONFIG_XEN_PVHVM_SMP)  	+= smp_hvm.o
46
47obj-$(CONFIG_PARAVIRT_SPINLOCKS)+= spinlock.o
48
49obj-$(CONFIG_XEN_DEBUG_FS)	+= debugfs.o
50
51obj-$(CONFIG_XEN_DOM0)		+= vga.o
52
53obj-$(CONFIG_SWIOTLB_XEN)	+= pci-swiotlb-xen.o
54
55obj-$(CONFIG_XEN_EFI)		+= efi.o
56