Message ID | 20240404194757.9343-8-philmd@linaro.org |
---|---|
State | New |
Headers | show |
Series | buildsys: Start shrinking qemu-user build process | expand |
On 4/4/24 09:47, Philippe Mathieu-Daudé wrote: > 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(-) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
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')
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(-)