[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH-for-9.1 7/7] hw: Include minimal source set in user emulation bui
|
From: |
Philippe Mathieu-Daudé |
|
Subject: |
[PATCH-for-9.1 7/7] hw: Include minimal source set in user emulation build |
|
Date: |
Thu, 4 Apr 2024 21:47:57 +0200 |
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.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
meson.build | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index c9c3217ba4..68eecd1937 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.41.0
- [PATCH-for-9.1 3/7] monitor: Rework stubs to simplify user emulation linking, (continued)