GNU Linux-libre 4.14.266-gnu1
[releases.git] / arch / x86 / xen / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 OBJECT_FILES_NON_STANDARD_xen-asm_$(BITS).o := y
3 OBJECT_FILES_NON_STANDARD_xen-pvh.o := y
4
5 ifdef CONFIG_FUNCTION_TRACER
6 # Do not profile debug and lowlevel utilities
7 CFLAGS_REMOVE_spinlock.o = -pg
8 CFLAGS_REMOVE_time.o = -pg
9 CFLAGS_REMOVE_irq.o = -pg
10 endif
11
12 # Make sure early boot has no stackprotector
13 nostackp := $(call cc-option, -fno-stack-protector)
14 CFLAGS_enlighten_pv.o           := $(nostackp)
15 CFLAGS_mmu_pv.o         := $(nostackp)
16
17 obj-y           := enlighten.o multicalls.o mmu.o irq.o \
18                         time.o xen-asm.o xen-asm_$(BITS).o \
19                         grant-table.o suspend.o platform-pci-unplug.o
20
21 obj-$(CONFIG_XEN_PVHVM)         += enlighten_hvm.o mmu_hvm.o suspend_hvm.o
22 obj-$(CONFIG_XEN_PV)                    += setup.o apic.o pmu.o suspend_pv.o \
23                                                 p2m.o enlighten_pv.o mmu_pv.o
24 obj-$(CONFIG_XEN_PVH)                   += enlighten_pvh.o
25
26 obj-$(CONFIG_EVENT_TRACING) += trace.o
27
28 obj-$(CONFIG_SMP)               += smp.o
29 obj-$(CONFIG_XEN_PV_SMP)        += smp_pv.o
30 obj-$(CONFIG_XEN_PVHVM_SMP)     += smp_hvm.o
31 obj-$(CONFIG_PARAVIRT_SPINLOCKS)+= spinlock.o
32 obj-$(CONFIG_XEN_DEBUG_FS)      += debugfs.o
33 obj-$(CONFIG_XEN_DOM0)          += vga.o
34 obj-$(CONFIG_SWIOTLB_XEN)       += pci-swiotlb-xen.o
35 obj-$(CONFIG_XEN_EFI)           += efi.o
36 obj-$(CONFIG_XEN_PVH)           += xen-pvh.o