Peter Maydell <[email protected]> writes: >> +specific_ss.add(when: 'CONFIG_TCG', if_true: files ('common-semi.c')) > > I think this adds this file to the compilation for all TCG targets; > you only want it for targets which have Arm-semihosting-ABI compatible > semihosting. (Various other targets either don't have semihosting > or have their own ABI.)
Right. These should have been target-specific source sets so that the
file was only added to those targets:
arm_ss.add(when: 'CONFIG_TCG', if_true: files ('common-semi.c'))
riscv_ss.add(files('common-semi.c'))
This appears to work in my testing (building arm, risc-v and x86_64
configs).
--
-keith
signature.asc
Description: PGP signature
