Skip to content

Commit

Permalink
semihosting: move stubs out of stubs/
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bonzini committed Apr 18, 2024
1 parent f2604d8 commit 5837db4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions semihosting/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ specific_ss.add(when: ['CONFIG_SEMIHOSTING', 'CONFIG_SYSTEM_ONLY'], if_true: fil
'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'],
if_true: files('arm-compat-semi.c'))
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions stubs/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ if have_block or have_ga
endif
if have_system
stub_ss.add(files('fw_cfg.c'))
stub_ss.add(files('semihost.c'))
stub_ss.add(files('xen-hw-stub.c'))
else
stub_ss.add(files('qdev.c'))
endif
stub_ss.add(files('semihost-all.c'))

0 comments on commit 5837db4

Please sign in to comment.