crypto: picoxcell - Allow driver to build COMPILE_TEST is enabled
authorJavier Martinez Canillas <javier@osg.samsung.com>
Mon, 2 Jan 2017 17:06:57 +0000 (14:06 -0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Jan 2017 16:24:40 +0000 (00:24 +0800)
Driver only has runtime but no build time dependency with ARCH_PICOXCELL.
So it can be built for testing purposes if COMPILE_TEST option is enabled.

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

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig

index 8ded3af88b16089ed7620946cd2446657027b9b2..18d2d52c3356b455f3bafe255cf12e2cccb92ffe 100644 (file)
@@ -339,7 +339,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