]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
semihosting: move stubs out of stubs/
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Apr 2024 15:53:24 +0000 (17:53 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Apr 2024 09:17:27 +0000 (11:17 +0200)
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>
semihosting/meson.build
semihosting/stubs-all.c [moved from stubs/semihost-all.c with 100% similarity]
semihosting/stubs-system.c [moved from stubs/semihost.c with 100% similarity]
stubs/meson.build

index b07cbd980f2d87dafa92c311c9f4897aac801a90..34933e5a195bacb0c84e0294c95264b8cc66cd1e 100644 (file)
@@ -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'))
similarity index 100%
rename from stubs/semihost-all.c
rename to semihosting/stubs-all.c
similarity index 100%
rename from stubs/semihost.c
rename to semihosting/stubs-system.c
index 60e32d363fa49b7608aa610a8c0acf8ebd09c00b..84ecaa4daa1bdb653d50b87e9ef941568155b24b 100644 (file)
@@ -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'))