mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
semihosting/meson: Build config.o and console.o once
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> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250103171037.11265-6-philmd@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20250116160306.1709518-8-alex.bennee@linaro.org>
This commit is contained in:
parent
5779210656
commit
bb0c5be8e9
1 changed files with 6 additions and 3 deletions
|
@ -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'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue