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