[PATCH] crypto: Allow drivers to build if COMPILE_TEST is enabled

From: Javier Martinez Canillas
Date: Tue Oct 13 2015 - 09:43:11 EST


These drivers only have runtime but no build time dependencies so can be
built for testing purposes if the Kconfig COMPILE_TEST option is enabled.

This is useful to have more build coverage and make sure that drivers are
not affected by changes that could cause build regressions.

Signed-off-by: Javier Martinez Canillas <javier@xxxxxxxxxxxxxxx>

---

drivers/crypto/Kconfig | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index ab7e3b668890..dba87ab8878f 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -51,7 +51,7 @@ config CRYPTO_DEV_PADLOCK_SHA

config CRYPTO_DEV_GEODE
tristate "Support for the Geode LX AES engine"
- depends on X86_32 && PCI
+ depends on (X86_32 || COMPILE_TEST) && PCI
select CRYPTO_ALGAPI
select CRYPTO_BLKCIPHER
help
@@ -175,7 +175,7 @@ config CRYPTO_DEV_MV_CESA

config CRYPTO_DEV_MARVELL_CESA
tristate "New Marvell's Cryptographic Engine driver"
- depends on PLAT_ORION || ARCH_MVEBU
+ depends on PLAT_ORION || ARCH_MVEBU || COMPILE_TEST
select CRYPTO_AES
select CRYPTO_DES
select CRYPTO_BLKCIPHER
@@ -310,7 +310,7 @@ config CRYPTO_DEV_OMAP_DES

config CRYPTO_DEV_PICOXCELL
tristate "Support for picoXcell IPSEC and Layer2 crypto engines"
- depends on ARCH_PICOXCELL && HAVE_CLK
+ depends on (ARCH_PICOXCELL || COMPILE_TEST) && HAVE_CLK
select CRYPTO_AEAD
select CRYPTO_AES
select CRYPTO_AUTHENC
@@ -338,7 +338,7 @@ config CRYPTO_DEV_SAHARA

config CRYPTO_DEV_S5P
tristate "Support for Samsung S5PV210/Exynos crypto accelerator"
- depends on ARCH_S5PV210 || ARCH_EXYNOS
+ depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
select CRYPTO_AES
select CRYPTO_BLKCIPHER
help
@@ -429,7 +429,7 @@ endif

config CRYPTO_DEV_MXS_DCP
tristate "Support for Freescale MXS DCP"
- depends on (ARCH_MXS || ARCH_MXC)
+ depends on (ARCH_MXS || ARCH_MXC || COMPILE_TEST)
select CRYPTO_CBC
select CRYPTO_ECB
select CRYPTO_AES
--
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/