[U-Boot] [PATCH v3 02/25] tpm: prepare introduction of TPMv2.x support in Kconfig

Simon Glass sjg at chromium.org
Wed May 2 19:33:00 UTC 2018


On 2 May 2018 at 02:59, Miquel Raynal <miquel.raynal at bootlin.com> wrote:
>
> Because both major revisions are not compatible at all, let's make them
> mutually exclusive in Kconfig. This way we will be sure, when using a
> command or a library function that it is supported by the right
> revision.
>
> Current drivers are currently prefixed by "tpm_", we will prefix TPMv2.x
> files by "tpm2_" to make the distinction without moving everything.
>
> The Kconfig menu about TPM drivers is now divided into two sections, one
> for each specification. Compliant drivers with one specification will
> only show up if this specification _only_ has been selected, otherwise a
> comment is displayed.
>
> Once a driver is selected by the user, it selects automatically a
> boolean value, that is needed in order to activate the TPM commands.
> Selecting the TPM commands will automatically select the right
> command/library files.
>
> Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>
> ---
>  cmd/Kconfig         | 24 +++++++++++++++------
>  cmd/Makefile        |  2 +-
>  drivers/tpm/Kconfig | 62 +++++++++++++++++++++++++++++++++++++++++++----------
>  lib/Makefile        |  2 +-
>  4 files changed, 71 insertions(+), 19 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list