From: Cédric Le Goater Date: Tue, 19 Dec 2023 06:58:24 +0000 (+0100) Subject: vfio/spapr: Only compile sPAPR IOMMU support when needed X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=10164df6ed3d41cbf67105dcd954a663ef4cc3e9;p=qemu.git vfio/spapr: Only compile sPAPR IOMMU support when needed sPAPR IOMMU support is only needed for pseries machines. Compile out support when CONFIG_PSERIES is not set. This saves ~7K of text. Reviewed-by: Zhenzhong Duan Tested-by: Eric Farman Signed-off-by: Cédric Le Goater --- diff --git a/hw/vfio/meson.build b/hw/vfio/meson.build index e5d98b6adc..bb98493b53 100644 --- a/hw/vfio/meson.build +++ b/hw/vfio/meson.build @@ -4,9 +4,9 @@ vfio_ss.add(files( 'common.c', 'container-base.c', 'container.c', - 'spapr.c', 'migration.c', )) +vfio_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr.c')) vfio_ss.add(when: 'CONFIG_IOMMUFD', if_true: files( 'iommufd.c', ))