fsdev: Build stubs once

Move stubs to the global stub_ss[] source set. These files
are now built once for all binaries, instead of one time
per system binary.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20260225035739.42848-11-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé
2026-02-24 17:25:35 +01:00
parent 6667668e0c
commit 4a425e5f13

View File

@@ -4,7 +4,8 @@ fsdev_ss.add(when: ['CONFIG_FSDEV_9P'], if_true: files(
'9p-iov-marshal.c', '9p-iov-marshal.c',
'9p-marshal.c', '9p-marshal.c',
'qemu-fsdev.c', 'qemu-fsdev.c',
), if_false: files('qemu-fsdev-dummy.c')) ))
if host_os in ['linux', 'darwin', 'freebsd'] if host_os in ['linux', 'darwin', 'freebsd']
system_ss.add_all(fsdev_ss) system_ss.add_all(fsdev_ss)
stub_ss.add(files('qemu-fsdev-dummy.c'))
endif endif