xref: /linux/drivers/xen/xen-pciback/Makefile (revision 03ab8e6297acd1bc0eedaa050e2a1635c576fd11)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2*a67efff2SOleksandr Andrushchenko
3*a67efff2SOleksandr Andrushchenko# N.B. The below cannot be expressed with a single line using
4*a67efff2SOleksandr Andrushchenko# CONFIG_XEN_PCI_STUB as it always remains in "y" state,
5*a67efff2SOleksandr Andrushchenko# thus preventing the driver to be built as a module.
6*a67efff2SOleksandr Andrushchenko# Please note, that CONFIG_XEN_PCIDEV_BACKEND and
7*a67efff2SOleksandr Andrushchenko# CONFIG_XEN_PCIDEV_STUB are mutually exclusive.
8a0b2fa8eSIan Campbellobj-$(CONFIG_XEN_PCIDEV_BACKEND) += xen-pciback.o
9*a67efff2SOleksandr Andrushchenkoobj-$(CONFIG_XEN_PCIDEV_STUB) += xen-pciback.o
1030edc14bSKonrad Rzeszutek Wilk
11a0b2fa8eSIan Campbellxen-pciback-y := pci_stub.o pciback_ops.o xenbus.o
12a0b2fa8eSIan Campbellxen-pciback-y += conf_space.o conf_space_header.o \
1330edc14bSKonrad Rzeszutek Wilk		 conf_space_capability.o \
142ebdc426SKonrad Rzeszutek Wilk		 conf_space_quirks.o vpci.o \
152ebdc426SKonrad Rzeszutek Wilk		 passthrough.o
16