Skip to content

Commit 8f3a75a

Browse files
committed
semihosting/arm-compat-semi: compile once in system and per target for user mode
We don't have any target dependency left in system mode, so we can compile once. User mode depends on qemu.h, which is duplicated between linux and bsd, so we can't easily compile it once. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
1 parent 50b7d94 commit 8f3a75a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

semihosting/meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ system_ss.add(when: 'CONFIG_SEMIHOSTING', if_true: files(
1212
'stubs-system.c',
1313
))
1414
system_ss.add(when: 'CONFIG_ARM_COMPATIBLE_SEMIHOSTING',
15+
if_true: files('arm-compat-semi.c'),
1516
if_false: files('arm-compat-semi-stub.c'))
1617

1718
specific_ss.add(when: ['CONFIG_SEMIHOSTING', 'CONFIG_USER_ONLY'],
1819
if_true: files('syscalls.c'))
19-
specific_ss.add(when: ['CONFIG_ARM_COMPATIBLE_SEMIHOSTING'],
20+
specific_ss.add(when: ['CONFIG_ARM_COMPATIBLE_SEMIHOSTING', 'CONFIG_USER_ONLY'],
2021
if_true: files('arm-compat-semi.c'))

0 commit comments

Comments
 (0)