target/or1k: Build 'gdbstub.c' once for system single binary
There is a single qemu-system-or1k 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-43-philmd@linaro.org>
Philippe Mathieu-Daudé committed
Feb 19, 2026 at 09:32 UTC
ceffd13311dc6949c052bd752a5bd0f613965bc4
1 file changed
+9
-2
target/or1k/meson.build
+9
-2
@@ -8,18 +8,25 @@ or1k_ss.add(files(
8
'exception.c',
9
'exception_helper.c',
10
'fpu_helper.c',
11
- 'gdbstub.c',
11
'interrupt_helper.c',
12
'sys_helper.c',
13
'translate.c',
14
))
15
16
+or1k_user_ss = ss.source_set()
17
+or1k_user_ss.add(files('gdbstub.c'))
18
+
19
or1k_common_system_ss = ss.source_set()
18
-or1k_common_system_ss.add(files(
20
+or1k_common_system_ss.add(files('gdbstub.c'))
21
+
22
+or1k_system_ss = ss.source_set()
23
+or1k_system_ss.add(files(
24
'interrupt.c',
25
'machine.c',
26
'mmu.c',
27
))
28
29
target_arch += {'or1k': or1k_ss}
30
+target_user_arch += {'or1k': or1k_user_ss}
31
+target_system_arch += {'or1k': or1k_system_ss}
32
target_common_system_arch += {'or1k': or1k_common_system_ss}