]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/net: use stub_ss for vhost_net-stub.c
authorPierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Thu, 28 May 2026 05:16:38 +0000 (05:16 +0000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 28 May 2026 16:44:03 +0000 (18:44 +0200)
Removes conflict with several targets where some support vhost, and some
don't.

Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20260528051642.115721-7-pierrick.bouvier@oss.qualcomm.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/net/meson.build

index 3102587469967656d3a27ca5aa0289839a48dff1..84f142df222afd6ac16c1e86ccdb05a222a4b65c 100644 (file)
@@ -48,10 +48,9 @@ system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('net_rx_pkt.c'))
 system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('virtio-net.c'))
 
 if have_vhost_net
-  system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost_net.c'), if_false: files('vhost_net-stub.c'))
-else
-  system_ss.add(files('vhost_net-stub.c'))
+  system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost_net.c'))
 endif
+stub_ss.add(files('vhost_net-stub.c'))
 
 system_ss.add(when: 'CONFIG_ETSEC', if_true: files(
   'fsl_etsec/etsec.c',