From: Pierrick Bouvier <[email protected]>
Signed-off-by: Pierrick Bouvier <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Manos Pitsidianakis <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
net/meson.build | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/net/meson.build b/net/meson.build
index da6ea635e95..9c8068b06d1 100644
--- a/net/meson.build
+++ b/net/meson.build
@@ -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',
--
2.53.0