]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/ppc/meson.build
meson: remove OS definitions from config_targetos
[mirror_qemu.git] / hw / ppc / meson.build
index ea44856d43b03771c35ae55fb5f92266e9f62a04..3dedcf3043db05126863f35502aa4df68444852c 100644 (file)
@@ -34,9 +34,11 @@ ppc_ss.add(when: ['CONFIG_PSERIES', 'CONFIG_TCG'], if_true: files(
   'spapr_softmmu.c',
 ))
 ppc_ss.add(when: 'CONFIG_SPAPR_RNG', if_true: files('spapr_rng.c'))
-ppc_ss.add(when: ['CONFIG_PSERIES', 'CONFIG_LINUX'], if_true: files(
-  'spapr_pci_vfio.c',
-))
+if targetos == 'linux'
+  ppc_ss.add(when: 'CONFIG_PSERIES', if_true: files(
+    'spapr_pci_vfio.c',
+  ))
+endif
 
 # IBM PowerNV
 ppc_ss.add(when: 'CONFIG_POWERNV', if_true: files(