From 0ab9c83d4fed2cff41a938114e6d33ae365cc867 Mon Sep 17 00:00:00 2001 From: Pierrick Bouvier Date: Thu, 28 May 2026 05:16:40 +0000 Subject: [PATCH] net: use stub_ss for vhost-user-stub.c and vhost-vdpa-stub.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Manos Pitsidianakis Message-ID: <20260528051642.115721-9-pierrick.bouvier@oss.qualcomm.com> Signed-off-by: Philippe Mathieu-Daudé --- net/meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/meson.build b/net/meson.build index da6ea635e9..9c8068b06d 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',