On 22/03/21 14:51, Claudio Fontana wrote:
It is possible to include calls from one sourceset to another (including
from common to specific) as long as the conditions ensure that the
symbol is defined.
I guess this last sentence is the more tricky for me to get: "as long as the
conditions ensure that the symbol is defined".
It means that for example you need to cannot call block_ss code from
common_ss without any condition, because for example usermode emulation
targets will fail to link. But you can freely call block_ss from files
that are system-emulation only (such as hw/block or hw/scsi).
And on the contrary, as long as all specific_ss file implement the
function, it is fine to call it from non-target-specific files without
any condition. This is what happens already with (for example) monitor
commands that have a target-specific implementation but are present in
all targets.
Paolo