hw/vfio: Add CONFIG switches for calxeda-xgmac and amd-xgbe
authorThomas Huth <thuth@redhat.com>
Fri, 10 Feb 2017 20:12:03 +0000 (13:12 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 10 Feb 2017 20:12:03 +0000 (13:12 -0700)
Both devices seem to be specific to the ARM platform. It's confusing
for the users if they show up on other target architectures, too
(e.g. when the user runs QEMU with "-device ?" to get a list of
supported devices). Thus let's introduce proper configuration switches
so that the devices are only compiled and included when they are
really required.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
default-configs/arm-softmmu.mak
hw/vfio/Makefile.objs

index 824fa71ba957f797a10ec9001745df66bcca645c..fdf40893aacebb6d5ead96e9c8e1953d3dfc852a 100644 (file)
@@ -95,6 +95,8 @@ CONFIG_VERSATILE_PCI=y
 CONFIG_VERSATILE_I2C=y
 
 CONFIG_PCI_GENERIC=y
+CONFIG_VFIO_XGMAC=y
+CONFIG_VFIO_AMD_XGBE=y
 
 CONFIG_SDHCI=y
 CONFIG_INTEGRATOR_DEBUG=y
index c25e32b029993cd7cd6aaef0b27fe60071f63142..05e7fbb93fd45fa1e6d216bb8d50f3f35a63baf9 100644 (file)
@@ -2,7 +2,7 @@ ifeq ($(CONFIG_LINUX), y)
 obj-$(CONFIG_SOFTMMU) += common.o
 obj-$(CONFIG_PCI) += pci.o pci-quirks.o
 obj-$(CONFIG_SOFTMMU) += platform.o
-obj-$(CONFIG_SOFTMMU) += calxeda-xgmac.o
-obj-$(CONFIG_SOFTMMU) += amd-xgbe.o
+obj-$(CONFIG_VFIO_XGMAC) += calxeda-xgmac.o
+obj-$(CONFIG_VFIO_AMD_XGBE) += amd-xgbe.o
 obj-$(CONFIG_SOFTMMU) += spapr.o
 endif