[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] hw/vfio: Build various target-independent objects once
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 2/2] hw/vfio: Build various target-independent objects once |
Date: |
Mon, 27 Feb 2023 11:32:58 +0100 |
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/vfio/meson.build | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/hw/vfio/meson.build b/hw/vfio/meson.build
index da9af297a0..a1ed62245a 100644
--- a/hw/vfio/meson.build
+++ b/hw/vfio/meson.build
@@ -1,19 +1,22 @@
+softmmu_ss.add(files(
+ 'migration.c',
+))
+softmmu_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files('display.c'))
+softmmu_ss.add(when: 'CONFIG_VFIO_XGMAC', if_true: files('calxeda-xgmac.c'))
+softmmu_ss.add(when: 'CONFIG_VFIO_AMD_XGBE', if_true: files('amd-xgbe.c'))
+softmmu_ss.add(when: 'CONFIG_VFIO_IGD', if_true: files('igd.c'))
+
vfio_ss = ss.source_set()
vfio_ss.add(files(
'common.c',
'spapr.c',
- 'migration.c',
))
vfio_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files(
- 'display.c',
'pci-quirks.c',
'pci.c',
))
vfio_ss.add(when: 'CONFIG_VFIO_CCW', if_true: files('ccw.c'))
vfio_ss.add(when: 'CONFIG_VFIO_PLATFORM', if_true: files('platform.c'))
-vfio_ss.add(when: 'CONFIG_VFIO_XGMAC', if_true: files('calxeda-xgmac.c'))
-vfio_ss.add(when: 'CONFIG_VFIO_AMD_XGBE', if_true: files('amd-xgbe.c'))
vfio_ss.add(when: 'CONFIG_VFIO_AP', if_true: files('ap.c'))
-vfio_ss.add(when: 'CONFIG_VFIO_IGD', if_true: files('igd.c'))
specific_ss.add_all(when: 'CONFIG_VFIO', if_true: vfio_ss)
--
2.38.1
[PATCH 2/2] hw/vfio: Build various target-independent objects once,
Philippe Mathieu-Daudé <=