diff mbox series

[U-Boot,v2,2/7] tpm: compile Sandbox driver by default

Message ID 20180719203512.346-3-miquel.raynal@bootlin.com
State Accepted
Delegated to: Tom Rini
Headers show
Series Allow both TPM stacks to be compiled at the same time | expand

Commit Message

Miquel Raynal July 19, 2018, 8:35 p.m. UTC
When Sandbox and the TPM stack are both selected, compile Sandbox TPM
driver by default.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
 drivers/tpm/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Tom Rini July 30, 2018, 8:01 p.m. UTC | #1
On Thu, Jul 19, 2018 at 10:35:07PM +0200, Miquel Raynal wrote:

> When Sandbox and the TPM stack are both selected, compile Sandbox TPM
> driver by default.
> 
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/drivers/tpm/Kconfig b/drivers/tpm/Kconfig
index 93264ddd34..5e3fb3267f 100644
--- a/drivers/tpm/Kconfig
+++ b/drivers/tpm/Kconfig
@@ -20,6 +20,7 @@  if TPM_V1 && !TPM_V2
 config TPM_TIS_SANDBOX
 	bool "Enable sandbox TPM driver"
 	depends on TPM_V1 && SANDBOX
+	default y
 	help
 	  This driver emulates a TPMv1.x, providing access to base functions
 	  such as reading and writing TPM private data. This is enough to
@@ -132,6 +133,7 @@  if TPM_V2 && !TPM_V1
 config TPM2_TIS_SANDBOX
 	bool "Enable sandbox TPMv2.x driver"
 	depends on TPM_V2 && SANDBOX
+	default y
 	select TPM_DRIVER_SELECTED
 	help
 	  This driver emulates a TPMv2.x, providing access to base functions