[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 08/18] hw: Include minimal source set in user emulation build
From: |
Paolo Bonzini |
Subject: |
[PATCH v2 08/18] hw: Include minimal source set in user emulation build |
Date: |
Mon, 8 Apr 2024 17:53:20 +0200 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
Only the files in hwcore_ss[] are required to link a user emulation
binary.
Have meson process the hw/ sub-directories if system emulation is
selected, otherwise directly process hw/core/ to get hwcore_ss[], which
is the only set required by user emulation.
This removes about 10% from the time needed to run
"../configure --disable-system --disable-tools --disable-guest-agent".
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240404194757.9343-8-philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
meson.build | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 09668e3c5f5..e8ac846fc5a 100644
--- a/meson.build
+++ b/meson.build
@@ -3447,8 +3447,12 @@ subdir('qom')
subdir('authz')
subdir('crypto')
subdir('ui')
-subdir('hw')
subdir('gdbstub')
+if have_system
+ subdir('hw')
+else
+ subdir('hw/core')
+endif
if enable_modules
libmodulecommon = static_library('module-common', files('module-common.c') +
genh, pic: true, c_args: '-DBUILD_DSO')
--
2.44.0
- Re: [PATCH v2 01/18] meson: do not link pixman automatically into all targets, (continued)
- [PATCH v2 03/18] ebpf: Restrict to system emulation, Paolo Bonzini, 2024/04/08
- [PATCH v2 04/18] tests/unit: match some unit tests to corresponding feature switches, Paolo Bonzini, 2024/04/08
- [PATCH v2 02/18] tests: only build plugins if TCG is enabled, Paolo Bonzini, 2024/04/08
- [PATCH v2 05/18] yank: only build if needed, Paolo Bonzini, 2024/04/08
- [PATCH v2 08/18] hw: Include minimal source set in user emulation build,
Paolo Bonzini <=
- [PATCH v2 07/18] hw/core: Move system emulation files to system_ss, Paolo Bonzini, 2024/04/08
- [PATCH v2 09/18] stubs: remove obsolete stubs, Paolo Bonzini, 2024/04/08
- [PATCH v2 10/18] hw/usb: move stubs out of stubs/, Paolo Bonzini, 2024/04/08
- [PATCH v2 06/18] util/qemu-config: Extract QMP commands to qemu-config-qmp.c, Paolo Bonzini, 2024/04/08
- [PATCH v2 11/18] hw/virtio: move stubs out of stubs/, Paolo Bonzini, 2024/04/08