target/m68k: Build 'gdbstub.c' once for system single binary
There is a single qemu-system-m68k 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-47-philmd@linaro.org>
Philippe Mathieu-Daudé committed
Feb 18, 2026 at 09:46 UTC
e9b39c7d727896f61c844039fe3b4ce35be0e112
1 file changed
+8
-1
target/m68k/meson.build
+8
-1
@@ -2,13 +2,18 @@ m68k_ss = ss.source_set()
2
m68k_ss.add(files(
3
'cpu.c',
4
'fpu_helper.c',
5
- 'gdbstub.c',
5
'helper.c',
6
'op_helper.c',
7
'softfloat.c',
8
'translate.c',
9
))
10
11
+m68k_user_ss = ss.source_set()
12
+m68k_user_ss.add(files('gdbstub.c'))
13
+
14
+m68k_common_system_ss = ss.source_set()
15
+m68k_common_system_ss.add(files('gdbstub.c'))
16
+
17
m68k_system_ss = ss.source_set()
18
m68k_system_ss.add(files(
19
'monitor.c'
@@ -19,4 +24,6 @@ m68k_system_ss.add(when: ['CONFIG_SEMIHOSTING'],
24
)
25
26
target_arch += {'m68k': m68k_ss}
27
+target_user_arch += {'m68k': m68k_user_ss}
28
target_system_arch += {'m68k': m68k_system_ss}
29
+target_common_system_arch += {'m68k': m68k_common_system_ss}