mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
acpi: Eliminate all TPM related code if CONFIG_TPM is not set
Cc: M: Michael S. Tsirkin <mst@redhat.com> Cc: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210614191335.1968807-4-stefanb@linux.ibm.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
f50be48a7b
commit
295f7dcb60
2 changed files with 6 additions and 0 deletions
|
@ -2044,6 +2044,7 @@ build_hdr:
|
|||
"FACP", tbl->len - fadt_start, f->rev, oem_id, oem_table_id);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_TPM
|
||||
/*
|
||||
* build_tpm2 - Build the TPM2 table as specified in
|
||||
* table 7: TCG Hardware Interface Description Table Format for TPM 2.0
|
||||
|
@ -2101,6 +2102,7 @@ void build_tpm2(GArray *table_data, BIOSLinker *linker, GArray *tcpalog,
|
|||
(void *)(table_data->data + tpm2_start),
|
||||
"TPM2", table_data->len - tpm2_start, 4, oem_id, oem_table_id);
|
||||
}
|
||||
#endif
|
||||
|
||||
Aml *build_crs(PCIHostState *host, CrsRangeSet *range_set, uint32_t io_offset,
|
||||
uint32_t mmio32_offset, uint64_t mmio64_offset,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue