From 0d04c4c9de3f260eb65f832983655d1a1206cc15 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 21 Dec 2021 12:38:27 +0100 Subject: configure, meson: move TPM check to meson The check is simply for a POSIX system. Signed-off-by: Paolo Bonzini --- softmmu/meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'softmmu') diff --git a/softmmu/meson.build b/softmmu/meson.build index d8e0301..39f766c 100644 --- a/softmmu/meson.build +++ b/softmmu/meson.build @@ -27,6 +27,9 @@ softmmu_ss.add(files( 'qdev-monitor.c', ), sdl, libpmem, libdaxctl) -softmmu_ss.add(when: 'CONFIG_TPM', if_true: files('tpm.c')) +if have_tpm + softmmu_ss.add(files('tpm.c')) +endif + softmmu_ss.add(when: seccomp, if_true: files('qemu-seccomp.c')) softmmu_ss.add(when: fdt, if_true: files('device_tree.c')) -- cgit v1.1