CONFIG_HW_RANDOM_TPM must be equal to to CONFIG_TCG_TPM
And CONFIG_HW_RANDOM_TPM depends on HW_RANDOM.

drivers/char/tpm/Kconfig:
if TCG_TPM
config HW_RANDOM_TPM
        bool "TPM HW Random Number Generator support"
depends on TCG_TPM && HW_RANDOM && !(TCG_TPM=y && HW_RANDOM=m)
        default y

Signed-off-by: Hongzhi.Song <hongzhi.s...@windriver.com>
---
 features/tpm/tpm.cfg | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/features/tpm/tpm.cfg b/features/tpm/tpm.cfg
index 113f37c7..fc285121 100644
--- a/features/tpm/tpm.cfg
+++ b/features/tpm/tpm.cfg
@@ -1,6 +1,7 @@
 # Enable TPM device drivers.
 CONFIG_TCG_TPM=y
-CONFIG_HW_RANDOM_TPM=m
+CONFIG_HW_RANDOM=y
+CONFIG_HW_RANDOM_TPM=y
 CONFIG_TCG_TIS_CORE=y
 CONFIG_TCG_TIS=y
 CONFIG_SPI=y
-- 
2.11.0

-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to