xref: /openbmc/linux/drivers/xen/Makefile (revision f6723b56)
1ifeq ($(filter y, $(CONFIG_ARM) $(CONFIG_ARM64)),)
2obj-$(CONFIG_HOTPLUG_CPU)		+= cpu_hotplug.o
3endif
4obj-$(CONFIG_X86)			+= fallback.o
5obj-y	+= grant-table.o features.o balloon.o manage.o
6obj-y	+= events/
7obj-y	+= xenbus/
8
9nostackp := $(call cc-option, -fno-stack-protector)
10CFLAGS_features.o			:= $(nostackp)
11
12dom0-$(CONFIG_PCI) += pci.o
13dom0-$(CONFIG_USB_SUPPORT) += dbgp.o
14dom0-$(CONFIG_ACPI) += acpi.o $(xen-pad-y)
15xen-pad-$(CONFIG_X86) += xen-acpi-pad.o
16dom0-$(CONFIG_X86) += pcpu.o
17obj-$(CONFIG_XEN_DOM0)			+= $(dom0-y)
18obj-$(CONFIG_BLOCK)			+= biomerge.o
19obj-$(CONFIG_XEN_BALLOON)		+= xen-balloon.o
20obj-$(CONFIG_XEN_SELFBALLOONING)	+= xen-selfballoon.o
21obj-$(CONFIG_XEN_DEV_EVTCHN)		+= xen-evtchn.o
22obj-$(CONFIG_XEN_GNTDEV)		+= xen-gntdev.o
23obj-$(CONFIG_XEN_GRANT_DEV_ALLOC)	+= xen-gntalloc.o
24obj-$(CONFIG_XENFS)			+= xenfs/
25obj-$(CONFIG_XEN_SYS_HYPERVISOR)	+= sys-hypervisor.o
26obj-$(CONFIG_XEN_PVHVM)			+= platform-pci.o
27obj-$(CONFIG_XEN_TMEM)			+= tmem.o
28obj-$(CONFIG_SWIOTLB_XEN)		+= swiotlb-xen.o
29obj-$(CONFIG_XEN_MCE_LOG)		+= mcelog.o
30obj-$(CONFIG_XEN_PCIDEV_BACKEND)	+= xen-pciback/
31obj-$(CONFIG_XEN_PRIVCMD)		+= xen-privcmd.o
32obj-$(CONFIG_XEN_STUB)			+= xen-stub.o
33obj-$(CONFIG_XEN_ACPI_HOTPLUG_MEMORY)	+= xen-acpi-memhotplug.o
34obj-$(CONFIG_XEN_ACPI_HOTPLUG_CPU)	+= xen-acpi-cpuhotplug.o
35obj-$(CONFIG_XEN_ACPI_PROCESSOR)	+= xen-acpi-processor.o
36xen-evtchn-y				:= evtchn.o
37xen-gntdev-y				:= gntdev.o
38xen-gntalloc-y				:= gntalloc.o
39xen-privcmd-y				:= privcmd.o
40