semihosting: move stubs out of stubs/
Since the semihosting stubs are needed exactly when the Kconfig symbols are not needed, move them to semihosting/ and conditionalize them on CONFIG_SEMIHOSTING and/or CONFIG_SYSTEM_ONLY. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-ID: <20240408155330.522792-13-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
f2604d8508
commit
5837db4650
@ -9,5 +9,8 @@ specific_ss.add(when: ['CONFIG_SEMIHOSTING', 'CONFIG_SYSTEM_ONLY'], if_true: fil
|
|||||||
'uaccess.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'))
|
||||||
|
|
||||||
specific_ss.add(when: ['CONFIG_ARM_COMPATIBLE_SEMIHOSTING'],
|
specific_ss.add(when: ['CONFIG_ARM_COMPATIBLE_SEMIHOSTING'],
|
||||||
if_true: files('arm-compat-semi.c'))
|
if_true: files('arm-compat-semi.c'))
|
||||||
|
@ -55,9 +55,7 @@ if have_block or have_ga
|
|||||||
endif
|
endif
|
||||||
if have_system
|
if have_system
|
||||||
stub_ss.add(files('fw_cfg.c'))
|
stub_ss.add(files('fw_cfg.c'))
|
||||||
stub_ss.add(files('semihost.c'))
|
|
||||||
stub_ss.add(files('xen-hw-stub.c'))
|
stub_ss.add(files('xen-hw-stub.c'))
|
||||||
else
|
else
|
||||||
stub_ss.add(files('qdev.c'))
|
stub_ss.add(files('qdev.c'))
|
||||||
endif
|
endif
|
||||||
stub_ss.add(files('semihost-all.c'))
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user