mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
arm: Eliminate all TPM related code if CONFIG_TPM is not set
Peter Maydell <peter.maydell@linaro.org> 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-3-stefanb@linux.ibm.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
11fb99e6f4
commit
f50be48a7b
3 changed files with 12 additions and 0 deletions
|
@ -437,6 +437,7 @@ static bool vfio_platform_match(SysBusDevice *sbdev,
|
|||
|
||||
#endif /* CONFIG_LINUX */
|
||||
|
||||
#ifdef CONFIG_TPM
|
||||
/*
|
||||
* add_tpm_tis_fdt_node: Create a DT node for TPM TIS
|
||||
*
|
||||
|
@ -467,6 +468,7 @@ static int add_tpm_tis_fdt_node(SysBusDevice *sbdev, void *opaque)
|
|||
g_free(nodename);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int no_fdt_node(SysBusDevice *sbdev, void *opaque)
|
||||
{
|
||||
|
@ -488,7 +490,9 @@ static const BindingEntry bindings[] = {
|
|||
TYPE_BINDING(TYPE_VFIO_AMD_XGBE, add_amd_xgbe_fdt_node),
|
||||
VFIO_PLATFORM_BINDING("amd,xgbe-seattle-v1a", add_amd_xgbe_fdt_node),
|
||||
#endif
|
||||
#ifdef CONFIG_TPM
|
||||
TYPE_BINDING(TYPE_TPM_TIS_SYSBUS, add_tpm_tis_fdt_node),
|
||||
#endif
|
||||
TYPE_BINDING(TYPE_RAMFB_DEVICE, no_fdt_node),
|
||||
TYPE_BINDING("", NULL), /* last element */
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue