mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00

Avoid testing CONFIG_USER_ONLY in semihost.h. The only function that's required is semihosting_enabled. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
20 lines
569 B
Meson
20 lines
569 B
Meson
specific_ss.add(when: 'CONFIG_SEMIHOSTING', if_true: files(
|
|
'guestfd.c',
|
|
'syscalls.c',
|
|
))
|
|
|
|
specific_ss.add(when: ['CONFIG_SEMIHOSTING', 'CONFIG_SYSTEM_ONLY'], if_true: files(
|
|
'uaccess.c',
|
|
))
|
|
|
|
common_ss.add(when: 'CONFIG_SEMIHOSTING', if_false: files('stubs-all.c'))
|
|
user_ss.add(when: 'CONFIG_SEMIHOSTING', if_true: files('user.c'))
|
|
system_ss.add(when: 'CONFIG_SEMIHOSTING', if_true: files(
|
|
'config.c',
|
|
'console.c',
|
|
), if_false: files(
|
|
'stubs-system.c',
|
|
))
|
|
|
|
specific_ss.add(when: ['CONFIG_ARM_COMPATIBLE_SEMIHOSTING'],
|
|
if_true: files('arm-compat-semi.c'))
|