hw/net: use stub_ss for vhost_net-stub.c
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>
Pierrick Bouvier committed
May 28, 2026 at 05:16 UTC
8ae59a2874445f1621034039dab6763f3e46e289
1 file changed
+2
-3
hw/net/meson.build
+2
-3
@@ -48,10 +48,9 @@ system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('net_rx_pkt.c'))
48
system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('virtio-net.c'))
49
50
if have_vhost_net
51
- system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost_net.c'), if_false: files('vhost_net-stub.c'))
52
-else
53
- system_ss.add(files('vhost_net-stub.c'))
51
+ system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost_net.c'))
52
endif
53
+stub_ss.add(files('vhost_net-stub.c'))
54
55
system_ss.add(when: 'CONFIG_ETSEC', if_true: files(
56
'fsl_etsec/etsec.c',