Commit dea007d310 for qemu.org
commit dea007d31051db4bb8df4f873e8423150f1ea51a
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date: Wed Feb 18 09:38:48 2026 +0100
target/rx: Build 'gdbstub.c' once for system single binary
There is a single qemu-system-rx binary, but by moving
'gdbstub.c' in the target_common_system_arch[] source set
the resulting object can be linked into a single qemu-sytem
binary.
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20260219191955.83815-48-philmd@linaro.org>
diff --git a/target/rx/meson.build b/target/rx/meson.build
index 86dc231eb0..d80ced11e2 100644
--- a/target/rx/meson.build
+++ b/target/rx/meson.build
@@ -9,8 +9,10 @@ rx_ss.add(files(
'op_helper.c',
'helper.c',
'cpu.c',
- 'gdbstub.c',
'disas.c'))
+rx_common_system_ss = ss.source_set()
+rx_common_system_ss.add(files('gdbstub.c'))
+
target_arch += {'rx': rx_ss}
-target_common_system_arch += {'rx': ss.source_set()}
+target_common_system_arch += {'rx': rx_common_system_ss}