@@ -1,8 +1,9 @@
obj-y += common.o spapr.o
-obj-$(CONFIG_VFIO_PCI) += pci.o pci-quirks.o display.o
+obj-$(CONFIG_VFIO_PCI) += pci.o pci-quirks.o
obj-$(CONFIG_VFIO_CCW) += ccw.o
obj-$(CONFIG_VFIO_PLATFORM) += platform.o
-obj-$(CONFIG_VFIO_XGMAC) += calxeda-xgmac.o
-obj-$(CONFIG_VFIO_AMD_XGBE) += amd-xgbe.o
obj-$(CONFIG_VFIO_AP) += ap.o
-obj-$(CONFIG_VFIO_IGD) += igd.o
+common-obj-$(CONFIG_VFIO_PCI) += display.o
+common-obj-$(CONFIG_VFIO_XGMAC) += calxeda-xgmac.o
+common-obj-$(CONFIG_VFIO_AMD_XGBE) += amd-xgbe.o
+common-obj-$(CONFIG_VFIO_IGD) += igd.o
These devices do not depend on the target CPU configuration (32 or 64-bit, big / little endian). Move them to common-obj to compile them once for all the targets. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> --- hw/vfio/Makefile.objs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)