]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
semihosting/arm-compat-semi: compile once in system and per target for user mode
authorPierrick Bouvier <pierrick.bouvier@linaro.org>
Mon, 22 Sep 2025 09:37:00 +0000 (10:37 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 26 Sep 2025 09:07:53 +0000 (10:07 +0100)
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>
Message-ID: <20250822150058.18692-13-pierrick.bouvier@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-ID: <20250922093711.2768983-16-alex.bennee@linaro.org>

semihosting/meson.build

index bb0db323937f00350377b685458cd0ad1178a8e0..99f10e2e2bbbd8b2efc7768fbd4c086fdd914e77 100644 (file)
@@ -12,9 +12,10 @@ system_ss.add(when: 'CONFIG_SEMIHOSTING', if_true: files(
   'stubs-system.c',
 ))
 system_ss.add(when: 'CONFIG_ARM_COMPATIBLE_SEMIHOSTING',
+  if_true: files('arm-compat-semi.c'),
   if_false: files('arm-compat-semi-stub.c'))
 
 specific_ss.add(when: ['CONFIG_SEMIHOSTING', 'CONFIG_USER_ONLY'],
                 if_true: files('syscalls.c'))
-specific_ss.add(when: ['CONFIG_ARM_COMPATIBLE_SEMIHOSTING'],
+specific_ss.add(when: ['CONFIG_ARM_COMPATIBLE_SEMIHOSTING', 'CONFIG_USER_ONLY'],
                if_true: files('arm-compat-semi.c'))