tpm: tis: Kconfig: Add helper dependency on COMPILE_TEST
authorCai Huoqing <caihuoqing@baidu.com>
Thu, 26 Aug 2021 01:10:12 +0000 (09:10 +0800)
committerJarkko Sakkinen <jarkko@kernel.org>
Tue, 26 Oct 2021 02:03:33 +0000 (05:03 +0300)
COMPILE_TEST is helpful to find compilation errors in other platform(e.g.X86).
In this case, the support of COMPILE_TEST is added, so this module could
be compiled in other platform(e.g.X86), without ARCH_SYNQUACER configuration.

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/Kconfig

index d6ba644..4a55164 100644 (file)
@@ -76,7 +76,7 @@ config TCG_TIS_SPI_CR50
 
 config TCG_TIS_SYNQUACER
        tristate "TPM Interface Specification 1.2 Interface / TPM 2.0 FIFO Interface (MMIO - SynQuacer)"
-       depends on ARCH_SYNQUACER
+       depends on ARCH_SYNQUACER || COMPILE_TEST
        select TCG_TIS_CORE
        help
          If you have a TPM security chip that is compliant with the