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>
This commit is contained in:
Pierrick Bouvier
2026-05-28 05:16:40 +00:00
committed by Philippe Mathieu-Daudé
parent de34c1074e
commit 0ab9c83d4f

View File

@@ -46,8 +46,9 @@ endif
system_ss.add(when: [libxdp, libbpf], if_true: files('af-xdp.c'))
if have_vhost_net_user
system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c'))
system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'))
endif
stub_ss.add(files('vhost-user-stub.c'))
if host_os == 'windows'
system_ss.add(files('tap-win32.c'))
@@ -61,8 +62,9 @@ else
system_ss.add(files('tap.c', 'tap-stub.c'))
endif
if have_vhost_net_vdpa
system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'), if_false: files('vhost-vdpa-stub.c'))
system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'))
endif
stub_ss.add(files('vhost-vdpa-stub.c'))
vmnet_files = files(
'vmnet-common.m',