2021-08-25 11:30:37

by Cai,Huoqing

[permalink] [raw]
Subject: [PATCH 0/2] crypto: stm32 - Add support of COMPILE_TEST

it's helpful for complie test in other platform(e.g.X86

Cai Huoqing (2):
crypto: stm32 - Add support of COMPILE_TEST
crypto: stm32 - open the configuration for COMPILE_TEST

drivers/crypto/Makefile | 2 +-
drivers/crypto/stm32/Kconfig | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)

--
2.25.1


2021-08-25 11:31:10

by Cai,Huoqing

[permalink] [raw]
Subject: [PATCH 1/2] crypto: stm32 - Add support of COMPILE_TEST

it's helpful for complie test in other platform(e.g.X86)

Signed-off-by: Cai Huoqing <[email protected]>
---
drivers/crypto/stm32/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

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
--
2.25.1