diff mbox series

[1/2] crypto: stm32 - Add support of COMPILE_TEST

Message ID 20210825112147.2669-2-caihuoqing@baidu.com
State New
Headers show
Series [1/2] crypto: stm32 - Add support of COMPILE_TEST | expand

Commit Message

Cai,Huoqing Aug. 25, 2021, 11:21 a.m. UTC
it's helpful for complie test in other platform(e.g.X86)

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
---
 drivers/crypto/stm32/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/crypto/stm32/Kconfig b/drivers/crypto/stm32/Kconfig
index 4a4c3284ae1f..0fa30260300f 100644
--- a/drivers/crypto/stm32/Kconfig
+++ b/drivers/crypto/stm32/Kconfig
@@ -1,7 +1,7 @@ 
 # SPDX-License-Identifier: GPL-2.0-only
 config CRYPTO_DEV_STM32_CRC
 	tristate "Support for STM32 crc accelerators"
-	depends on ARCH_STM32
+	depends on ARCH_STM32 || (COMPILE_TEST && OF)
 	select CRYPTO_HASH
 	select CRC32
 	help
@@ -10,7 +10,7 @@  config CRYPTO_DEV_STM32_CRC
 
 config CRYPTO_DEV_STM32_HASH
 	tristate "Support for STM32 hash accelerators"
-	depends on ARCH_STM32
+	depends on ARCH_STM32 || (COMPILE_TEST && OF)
 	depends on HAS_DMA
 	select CRYPTO_HASH
 	select CRYPTO_MD5
@@ -23,7 +23,7 @@  config CRYPTO_DEV_STM32_HASH
 
 config CRYPTO_DEV_STM32_CRYP
 	tristate "Support for STM32 cryp accelerators"
-	depends on ARCH_STM32
+	depends on ARCH_STM32 || (COMPILE_TEST && OF)
 	select CRYPTO_HASH
 	select CRYPTO_ENGINE
 	select CRYPTO_LIB_DES