[PATCH v4 0/5] tpm: Eliminate TPM related code if CONFIG_TPM is not set

Philippe Mathieu-Daudé posted 5 patches 2 years, 10 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210615142121.2127692-1-philmd@redhat.com
qapi/tpm.json                | 28 +++++++++++++++++---------
include/hw/acpi/tpm.h        |  4 ++++
include/sysemu/tpm.h         |  9 +++++++++
include/sysemu/tpm_backend.h |  6 +++++-
hw/acpi/aml-build.c          |  2 ++
hw/arm/sysbus-fdt.c          |  4 ++++
hw/arm/virt-acpi-build.c     |  6 ++++++
hw/arm/virt.c                |  2 ++
hw/i386/acpi-build.c         | 20 ++++++++++++++++++
monitor/hmp-cmds.c           |  4 ++++
stubs/tpm.c                  | 39 ------------------------------------
MAINTAINERS                  |  1 -
stubs/meson.build            |  1 -
13 files changed, 75 insertions(+), 51 deletions(-)
delete mode 100644 stubs/tpm.c
[PATCH v4 0/5] tpm: Eliminate TPM related code if CONFIG_TPM is not set
Posted by Philippe Mathieu-Daudé 2 years, 10 months ago
Series fully reviewed.

v4:
- invert HMP #ifdef (Markus)
- update MAINTAINERS
- add Markus R-b

v3
- make the qapi schema conditional (Marc-André)

Philippe Mathieu-Daudé (1):
  tpm: Return QMP error when TPM is disabled in build

Stefan Berger (4):
  i386: Eliminate all TPM related code if CONFIG_TPM is not set
  arm: Eliminate all TPM related code if CONFIG_TPM is not set
  acpi: Eliminate all TPM related code if CONFIG_TPM is not set
  sysemu: Make TPM structures inaccessible if CONFIG_TPM is not defined

 qapi/tpm.json                | 28 +++++++++++++++++---------
 include/hw/acpi/tpm.h        |  4 ++++
 include/sysemu/tpm.h         |  9 +++++++++
 include/sysemu/tpm_backend.h |  6 +++++-
 hw/acpi/aml-build.c          |  2 ++
 hw/arm/sysbus-fdt.c          |  4 ++++
 hw/arm/virt-acpi-build.c     |  6 ++++++
 hw/arm/virt.c                |  2 ++
 hw/i386/acpi-build.c         | 20 ++++++++++++++++++
 monitor/hmp-cmds.c           |  4 ++++
 stubs/tpm.c                  | 39 ------------------------------------
 MAINTAINERS                  |  1 -
 stubs/meson.build            |  1 -
 13 files changed, 75 insertions(+), 51 deletions(-)
 delete mode 100644 stubs/tpm.c

-- 
2.31.1