[linux-yocto] [PATCH 6/9] features/tpm: fix conflict with configs and add dependency
Hongzhi.Song
hongzhi.song at windriver.com
Thu Sep 6 07:00:50 PDT 2018
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.song at 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
More information about the linux-yocto
mailing list