target/alpha: Build 'gdbstub.c' once for system single binary
There is a single qemu-system-alpha 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-44-philmd@linaro.org>
Philippe Mathieu-Daudé committed
Feb 18, 2026 at 09:45 UTC
bbcab06e41231bf988d766e45d58f1c062643db7
1 file changed
+10
-4
target/alpha/meson.build
+10
-4
@@ -2,7 +2,6 @@ alpha_ss = ss.source_set()
2
alpha_ss.add(files(
3
'cpu.c',
4
'fpu_helper.c',
5
- 'gdbstub.c',
5
'helper.c',
6
'clk_helper.c',
7
'int_helper.c',
@@ -11,11 +10,18 @@ alpha_ss.add(files(
10
'vax_helper.c',
11
))
12
14
-alpha_system_ss = ss.source_set()
15
-alpha_system_ss.add(files(
13
+alpha_user_ss = ss.source_set()
14
+alpha_user_ss.add(files(
15
+ 'gdbstub.c',
16
+))
17
+
18
+alpha_common_system_ss = ss.source_set()
19
+alpha_common_system_ss.add(files(
20
+ 'gdbstub.c',
21
'machine.c',
22
'sys_helper.c',
23
))
24
25
target_arch += {'alpha': alpha_ss}
21
-target_common_system_arch += {'alpha': alpha_system_ss}
26
+target_user_arch += {'alpha': alpha_user_ss}
27
+target_common_system_arch += {'alpha': alpha_common_system_ss}