[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/5] semihosting/meson: Build config.o and console.o once
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 5/5] semihosting/meson: Build config.o and console.o once |
Date: |
Fri, 3 Jan 2025 18:10:37 +0100 |
config.c and console.c don't use any target specific
headers anymore, move them from specific_ss[] to
system_ss[] so they are built once, but will also be
linked once, removing global symbol clash in a single
QEMU binary.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
semihosting/meson.build | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/semihosting/meson.build b/semihosting/meson.build
index 34933e5a195..86f5004bed7 100644
--- a/semihosting/meson.build
+++ b/semihosting/meson.build
@@ -4,13 +4,16 @@ specific_ss.add(when: 'CONFIG_SEMIHOSTING', if_true: files(
))
specific_ss.add(when: ['CONFIG_SEMIHOSTING', 'CONFIG_SYSTEM_ONLY'], if_true:
files(
- 'config.c',
- 'console.c',
'uaccess.c',
))
common_ss.add(when: ['CONFIG_SEMIHOSTING', 'CONFIG_SYSTEM_ONLY'], if_false:
files('stubs-all.c'))
-system_ss.add(when: ['CONFIG_SEMIHOSTING'], if_false: files('stubs-system.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'))
--
2.47.1
- [PATCH 0/5] semihosting: Reduce target specific code, Philippe Mathieu-Daudé, 2025/01/03
- [PATCH 2/5] semihosting/uaccess: Include missing 'exec/cpu-all.h' header, Philippe Mathieu-Daudé, 2025/01/03
- [PATCH 1/5] semihosting/syscalls: Include missing 'exec/cpu-defs.h' header, Philippe Mathieu-Daudé, 2025/01/03
- [PATCH 3/5] semihosting/arm-compat: Include missing 'cpu.h' header, Philippe Mathieu-Daudé, 2025/01/03
- [PATCH 4/5] semihosting/console: Avoid including 'cpu.h', Philippe Mathieu-Daudé, 2025/01/03
- [PATCH 5/5] semihosting/meson: Build config.o and console.o once,
Philippe Mathieu-Daudé <=
- Re: [PATCH 0/5] semihosting: Reduce target specific code, Richard Henderson, 2025/01/06
- Re: [PATCH 0/5] semihosting: Reduce target specific code, Alex Bennée, 2025/01/08