mirror of https://github.com/xemu-project/xemu.git
meson: Replace CONFIG_SOFTMMU -> CONFIG_SYSTEM_ONLY
Since we *might* have user emulation with softmmu, use the clearer 'CONFIG_SYSTEM_ONLY' key to check for system emulation. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230613133347.82210-9-philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
bd0c03b2d3
commit
c7b64948f8
|
@ -1 +1 @@
|
||||||
qtest_module_ss.add(when: ['CONFIG_SOFTMMU'], if_true: files('qtest.c'))
|
qtest_module_ss.add(when: ['CONFIG_SYSTEM_ONLY'], if_true: files('qtest.c'))
|
||||||
|
|
|
@ -4,4 +4,4 @@ sysemu_stubs_ss.add(when: 'CONFIG_XEN', if_false: files('xen-stub.c'))
|
||||||
sysemu_stubs_ss.add(when: 'CONFIG_KVM', if_false: files('kvm-stub.c'))
|
sysemu_stubs_ss.add(when: 'CONFIG_KVM', if_false: files('kvm-stub.c'))
|
||||||
sysemu_stubs_ss.add(when: 'CONFIG_TCG', if_false: files('tcg-stub.c'))
|
sysemu_stubs_ss.add(when: 'CONFIG_TCG', if_false: files('tcg-stub.c'))
|
||||||
|
|
||||||
specific_ss.add_all(when: ['CONFIG_SOFTMMU'], if_true: sysemu_stubs_ss)
|
specific_ss.add_all(when: ['CONFIG_SYSTEM_ONLY'], if_true: sysemu_stubs_ss)
|
||||||
|
|
|
@ -10,18 +10,18 @@ tcg_ss.add(files(
|
||||||
'translator.c',
|
'translator.c',
|
||||||
))
|
))
|
||||||
tcg_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-exec.c'))
|
tcg_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-exec.c'))
|
||||||
tcg_ss.add(when: 'CONFIG_SOFTMMU', if_false: files('user-exec-stub.c'))
|
tcg_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_false: files('user-exec-stub.c'))
|
||||||
tcg_ss.add(when: 'CONFIG_PLUGIN', if_true: [files('plugin-gen.c')])
|
tcg_ss.add(when: 'CONFIG_PLUGIN', if_true: [files('plugin-gen.c')])
|
||||||
tcg_ss.add(when: libdw, if_true: files('debuginfo.c'))
|
tcg_ss.add(when: libdw, if_true: files('debuginfo.c'))
|
||||||
tcg_ss.add(when: 'CONFIG_LINUX', if_true: files('perf.c'))
|
tcg_ss.add(when: 'CONFIG_LINUX', if_true: files('perf.c'))
|
||||||
specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_ss)
|
specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_ss)
|
||||||
|
|
||||||
specific_ss.add(when: ['CONFIG_SOFTMMU', 'CONFIG_TCG'], if_true: files(
|
specific_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
|
||||||
'cputlb.c',
|
'cputlb.c',
|
||||||
'monitor.c',
|
'monitor.c',
|
||||||
))
|
))
|
||||||
|
|
||||||
tcg_module_ss.add(when: ['CONFIG_SOFTMMU', 'CONFIG_TCG'], if_true: files(
|
tcg_module_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
|
||||||
'tcg-accel-ops.c',
|
'tcg-accel-ops.c',
|
||||||
'tcg-accel-ops-mttcg.c',
|
'tcg-accel-ops-mttcg.c',
|
||||||
'tcg-accel-ops-icount.c',
|
'tcg-accel-ops-icount.c',
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
softmmu_ss.add([files('dump.c', 'dump-hmp-cmds.c'), snappy, lzo])
|
softmmu_ss.add([files('dump.c', 'dump-hmp-cmds.c'), snappy, lzo])
|
||||||
specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: files('win_dump.c'))
|
specific_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_true: files('win_dump.c'))
|
||||||
|
|
|
@ -19,4 +19,4 @@ xen_stubs_ss.add(when: 'CONFIG_XEN_EMU', if_false: files(
|
||||||
'xen-stubs.c',
|
'xen-stubs.c',
|
||||||
))
|
))
|
||||||
|
|
||||||
specific_ss.add_all(when: 'CONFIG_SOFTMMU', if_true: xen_stubs_ss)
|
specific_ss.add_all(when: 'CONFIG_SYSTEM_ONLY', if_true: xen_stubs_ss)
|
||||||
|
|
|
@ -2991,7 +2991,7 @@ config_all += config_host
|
||||||
config_all += config_all_disas
|
config_all += config_all_disas
|
||||||
config_all += {
|
config_all += {
|
||||||
'CONFIG_XEN': xen.found(),
|
'CONFIG_XEN': xen.found(),
|
||||||
'CONFIG_SOFTMMU': have_system,
|
'CONFIG_SYSTEM_ONLY': have_system,
|
||||||
'CONFIG_USER_ONLY': have_user,
|
'CONFIG_USER_ONLY': have_user,
|
||||||
'CONFIG_ALL': true,
|
'CONFIG_ALL': true,
|
||||||
}
|
}
|
||||||
|
@ -3665,7 +3665,7 @@ endif
|
||||||
softmmu_ss.add(authz, blockdev, chardev, crypto, io, qmp)
|
softmmu_ss.add(authz, blockdev, chardev, crypto, io, qmp)
|
||||||
common_ss.add(qom, qemuutil)
|
common_ss.add(qom, qemuutil)
|
||||||
|
|
||||||
common_ss.add_all(when: 'CONFIG_SOFTMMU', if_true: [softmmu_ss])
|
common_ss.add_all(when: 'CONFIG_SYSTEM_ONLY', if_true: [softmmu_ss])
|
||||||
common_ss.add_all(when: 'CONFIG_USER_ONLY', if_true: user_ss)
|
common_ss.add_all(when: 'CONFIG_USER_ONLY', if_true: user_ss)
|
||||||
|
|
||||||
common_all = common_ss.apply(config_all, strict: false)
|
common_all = common_ss.apply(config_all, strict: false)
|
||||||
|
|
|
@ -40,6 +40,6 @@ if get_option('live_block_migration').allowed()
|
||||||
endif
|
endif
|
||||||
softmmu_ss.add(when: zstd, if_true: files('multifd-zstd.c'))
|
softmmu_ss.add(when: zstd, if_true: files('multifd-zstd.c'))
|
||||||
|
|
||||||
specific_ss.add(when: 'CONFIG_SOFTMMU',
|
specific_ss.add(when: 'CONFIG_SYSTEM_ONLY',
|
||||||
if_true: files('ram.c',
|
if_true: files('ram.c',
|
||||||
'target.c'))
|
'target.c'))
|
||||||
|
|
|
@ -7,5 +7,5 @@ softmmu_ss.add(files(
|
||||||
))
|
))
|
||||||
softmmu_ss.add([spice_headers, files('qmp-cmds.c')])
|
softmmu_ss.add([spice_headers, files('qmp-cmds.c')])
|
||||||
|
|
||||||
specific_ss.add(when: 'CONFIG_SOFTMMU',
|
specific_ss.add(when: 'CONFIG_SYSTEM_ONLY',
|
||||||
if_true: [files( 'hmp-cmds-target.c', 'hmp-target.c'), spice])
|
if_true: [files( 'hmp-cmds-target.c', 'hmp-target.c'), spice])
|
||||||
|
|
|
@ -141,6 +141,6 @@ foreach output : qapi_specific_outputs + qapi_nonmodule_outputs
|
||||||
if output.endswith('.trace-events')
|
if output.endswith('.trace-events')
|
||||||
qapi_trace_events += qapi_files[i]
|
qapi_trace_events += qapi_files[i]
|
||||||
endif
|
endif
|
||||||
specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: qapi_files[i])
|
specific_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_true: qapi_files[i])
|
||||||
i = i + 1
|
i = i + 1
|
||||||
endforeach
|
endforeach
|
||||||
|
|
|
@ -3,7 +3,7 @@ specific_ss.add(when: 'CONFIG_SEMIHOSTING', if_true: files(
|
||||||
'syscalls.c',
|
'syscalls.c',
|
||||||
))
|
))
|
||||||
|
|
||||||
specific_ss.add(when: ['CONFIG_SEMIHOSTING', 'CONFIG_SOFTMMU'], if_true: files(
|
specific_ss.add(when: ['CONFIG_SEMIHOSTING', 'CONFIG_SYSTEM_ONLY'], if_true: files(
|
||||||
'config.c',
|
'config.c',
|
||||||
'console.c',
|
'console.c',
|
||||||
'uaccess.c',
|
'uaccess.c',
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: [files(
|
specific_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_true: [files(
|
||||||
'arch_init.c',
|
'arch_init.c',
|
||||||
'ioport.c',
|
'ioport.c',
|
||||||
'memory.c',
|
'memory.c',
|
||||||
|
@ -6,7 +6,7 @@ specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: [files(
|
||||||
'watchpoint.c',
|
'watchpoint.c',
|
||||||
)])
|
)])
|
||||||
|
|
||||||
specific_ss.add(when: ['CONFIG_SOFTMMU', 'CONFIG_TCG'], if_true: [files(
|
specific_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: [files(
|
||||||
'icount.c',
|
'icount.c',
|
||||||
)])
|
)])
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
i386_softmmu_ss.add(when: ['CONFIG_TCG', 'CONFIG_SOFTMMU'], if_true: files(
|
i386_softmmu_ss.add(when: ['CONFIG_TCG', 'CONFIG_SYSTEM_ONLY'], if_true: files(
|
||||||
'tcg-cpu.c',
|
'tcg-cpu.c',
|
||||||
'smm_helper.c',
|
'smm_helper.c',
|
||||||
'excp_helper.c',
|
'excp_helper.c',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
softmmu_ss.add(pixman)
|
softmmu_ss.add(pixman)
|
||||||
specific_ss.add(when: ['CONFIG_SOFTMMU'], if_true: pixman) # for the include path
|
specific_ss.add(when: ['CONFIG_SYSTEM_ONLY'], if_true: pixman) # for the include path
|
||||||
specific_ss.add(when: ['CONFIG_SOFTMMU'], if_true: opengl) # for the include path
|
specific_ss.add(when: ['CONFIG_SYSTEM_ONLY'], if_true: opengl) # for the include path
|
||||||
|
|
||||||
softmmu_ss.add(png)
|
softmmu_ss.add(png)
|
||||||
softmmu_ss.add(files(
|
softmmu_ss.add(files(
|
||||||
|
|
Loading…
Reference in New Issue