@samitouri / QOSamiQemu / commits / 0ab9c83d4f

net: use stub_ss for vhost-user-stub.c and vhost-vdpa-stub.c

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

Pierrick Bouvier committed May 28, 2026 at 05:16 UTC 0ab9c83d4fed2cff41a938114e6d33ae365cc867
1 file changed +4 -2
net/meson.build
+4 -2
@@ -46,8 +46,9 @@ endif
46 system_ss.add(when: [libxdp, libbpf], if_true: files('af-xdp.c'))
47
48 if have_vhost_net_user
49 - system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c'))
49 + system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'))
50 endif
51 +stub_ss.add(files('vhost-user-stub.c'))
52
53 if host_os == 'windows'
54 system_ss.add(files('tap-win32.c'))
@@ -61,8 +62,9 @@ else
62 system_ss.add(files('tap.c', 'tap-stub.c'))
63 endif
64 if have_vhost_net_vdpa
64 - system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'), if_false: files('vhost-vdpa-stub.c'))
65 + system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'))
66 endif
67 +stub_ss.add(files('vhost-vdpa-stub.c'))
68
69 vmnet_files = files(
70 'vmnet-common.m',