xref: /linux/arch/x86/xen/Makefile (revision 28c11b0f798c6727355bd44603b16bb04e3a044d)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2c207aee4SJosh PoimboeufOBJECT_FILES_NON_STANDARD_xen-asm_$(BITS).o := y
3c207aee4SJosh PoimboeufOBJECT_FILES_NON_STANDARD_xen-pvh.o := y
4c207aee4SJosh Poimboeuf
5606576ceSSteven Rostedtifdef CONFIG_FUNCTION_TRACER
6d5de8841SJeremy Fitzhardinge# Do not profile debug and lowlevel utilities
7d5de8841SJeremy FitzhardingeCFLAGS_REMOVE_spinlock.o = -pg
8d5de8841SJeremy FitzhardingeCFLAGS_REMOVE_time.o = -pg
90d1edf46SJeremy FitzhardingeCFLAGS_REMOVE_irq.o = -pg
10d5de8841SJeremy Fitzhardingeendif
11d5de8841SJeremy Fitzhardinge
12ce2eef33SJeremy Fitzhardinge# Make sure early boot has no stackprotector
13ce2eef33SJeremy Fitzhardingenostackp := $(call cc-option, -fno-stack-protector)
14e1dab14cSVitaly KuznetsovCFLAGS_enlighten_pv.o		:= $(nostackp)
157e0563deSVitaly KuznetsovCFLAGS_mmu_pv.o			:= $(nostackp)
16ce2eef33SJeremy Fitzhardinge
17*28c11b0fSJuergen Grossobj-y				+= enlighten.o
18*28c11b0fSJuergen Grossobj-y				+= multicalls.o
19*28c11b0fSJuergen Grossobj-y				+= mmu.o
20*28c11b0fSJuergen Grossobj-y				+= time.o
21*28c11b0fSJuergen Grossobj-y				+= grant-table.o
22*28c11b0fSJuergen Grossobj-y				+= suspend.o
23*28c11b0fSJuergen Grossobj-y				+= platform-pci-unplug.o
24b3c4b982SJeremy Fitzhardinge
25*28c11b0fSJuergen Grossobj-$(CONFIG_XEN_PVHVM)		+= enlighten_hvm.o
26*28c11b0fSJuergen Grossobj-$(CONFIG_XEN_PVHVM)		+= mmu_hvm.o
27*28c11b0fSJuergen Grossobj-$(CONFIG_XEN_PVHVM)		+= suspend_hvm.o
28*28c11b0fSJuergen Gross
29*28c11b0fSJuergen Grossobj-$(CONFIG_XEN_PV)		+= setup.o
30*28c11b0fSJuergen Grossobj-$(CONFIG_XEN_PV)		+= apic.o
31*28c11b0fSJuergen Grossobj-$(CONFIG_XEN_PV)		+= pmu.o
32*28c11b0fSJuergen Grossobj-$(CONFIG_XEN_PV)		+= suspend_pv.o
33*28c11b0fSJuergen Grossobj-$(CONFIG_XEN_PV)		+= p2m.o
34*28c11b0fSJuergen Grossobj-$(CONFIG_XEN_PV)		+= enlighten_pv.o
35*28c11b0fSJuergen Grossobj-$(CONFIG_XEN_PV)		+= mmu_pv.o
36*28c11b0fSJuergen Grossobj-$(CONFIG_XEN_PV)		+= irq.o
37*28c11b0fSJuergen Grossobj-$(CONFIG_XEN_PV)		+= xen-asm.o
38*28c11b0fSJuergen Grossobj-$(CONFIG_XEN_PV)		+= xen-asm_$(BITS).o
39*28c11b0fSJuergen Gross
40481d6632SVitaly Kuznetsovobj-$(CONFIG_XEN_PVH)		+= enlighten_pvh.o
41*28c11b0fSJuergen Grossobj-$(CONFIG_XEN_PVH)	 	+= xen-pvh.o
42481d6632SVitaly Kuznetsov
4360c5f08eSJeremy Fitzhardingeobj-$(CONFIG_EVENT_TRACING)	+= trace.o
449702785aSThomas Gleixner
4533af7469SVitaly Kuznetsovobj-$(CONFIG_SMP)		+= smp.o
4633af7469SVitaly Kuznetsovobj-$(CONFIG_XEN_PV_SMP)  	+= smp_pv.o
47a52482d9SVitaly Kuznetsovobj-$(CONFIG_XEN_PVHVM_SMP)  	+= smp_hvm.o
48*28c11b0fSJuergen Gross
49b4ecc126SJeremy Fitzhardingeobj-$(CONFIG_PARAVIRT_SPINLOCKS)+= spinlock.o
50*28c11b0fSJuergen Gross
51994025caSJeremy Fitzhardingeobj-$(CONFIG_XEN_DEBUG_FS)	+= debugfs.o
52*28c11b0fSJuergen Gross
53fc5fee86SJason A. Donenfeldobj-$(CONFIG_XEN_DOM0)		+= vga.o
54*28c11b0fSJuergen Gross
55bbbe5738SKonrad Rzeszutek Wilkobj-$(CONFIG_SWIOTLB_XEN)	+= pci-swiotlb-xen.o
56*28c11b0fSJuergen Gross
57c7341d6aSDaniel Kiperobj-$(CONFIG_XEN_EFI)		+= efi.o
58