diff options
author | Stephan Mueller <smueller@chronox.de> | 2015-06-23 16:18:54 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-25 23:18:32 +0800 |
commit | 8755fbecfc51bf0635c4533dad1196e42d631f09 (patch) | |
tree | 147dabde8747e1b39870b66d591e5a77c75ae498 /crypto/Makefile | |
parent | cb1f2d11245e6aace98cf7a2ecff5408b963e2d7 (diff) | |
download | linux-crypto-8755fbecfc51bf0635c4533dad1196e42d631f09.tar.gz linux-crypto-8755fbecfc51bf0635c4533dad1196e42d631f09.zip |
crypto: jitterentropy - avoid compiler warnings
The core of the Jitter RNG is intended to be compiled with -O0. To
ensure that the Jitter RNG can be compiled on all architectures,
separate out the RNG core into a stand-alone C file that can be compiled
with -O0 which does not depend on any kernel include file.
As no kernel includes can be used in the C file implementing the core
RNG, any dependencies on kernel code must be extracted.
A second file provides the link to the kernel and the kernel crypto API
that can be compiled with the regular compile options of the kernel.
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | crypto/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/Makefile b/crypto/Makefile index 0077476f..a16a7e7f 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -106,7 +106,9 @@ obj-$(CONFIG_CRYPTO_842) += 842.o obj-$(CONFIG_CRYPTO_RNG2) += rng.o obj-$(CONFIG_CRYPTO_ANSI_CPRNG) += ansi_cprng.o obj-$(CONFIG_CRYPTO_DRBG) += drbg.o -obj-$(CONFIG_CRYPTO_JITTERENTROPY) += jitterentropy.o +obj-$(CONFIG_CRYPTO_JITTERENTROPY) += jitterentropy_rng.o +CFLAGS_jitterentropy.o = -O0 +jitterentropy_rng-y := jitterentropy.o jitterentropy-kcapi.o obj-$(CONFIG_CRYPTO_TEST) += tcrypt.o obj-$(CONFIG_CRYPTO_GHASH) += ghash-generic.o obj-$(CONFIG_CRYPTO_USER_API) += af_alg.o |