diff options
author | Stephan Mueller <smueller@chronox.de> | 2015-06-23 10:18:54 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-25 11:18:32 -0400 |
commit | dfc9fa91938bd0cd5597a3da33d613986149a1e6 (patch) | |
tree | 4eeef33d2c2046592acb662f59adb0d3c97e6017 /crypto/Makefile | |
parent | aefbef10e3ae6e2c6e3c54f906f10b34c73a2c66 (diff) |
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 'crypto/Makefile')
-rw-r--r-- | crypto/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/Makefile b/crypto/Makefile index 0077476f5024..a16a7e7f2d60 100644 --- a/crypto/Makefile +++ b/crypto/Makefile | |||
@@ -106,7 +106,9 @@ obj-$(CONFIG_CRYPTO_842) += 842.o | |||
106 | obj-$(CONFIG_CRYPTO_RNG2) += rng.o | 106 | obj-$(CONFIG_CRYPTO_RNG2) += rng.o |
107 | obj-$(CONFIG_CRYPTO_ANSI_CPRNG) += ansi_cprng.o | 107 | obj-$(CONFIG_CRYPTO_ANSI_CPRNG) += ansi_cprng.o |
108 | obj-$(CONFIG_CRYPTO_DRBG) += drbg.o | 108 | obj-$(CONFIG_CRYPTO_DRBG) += drbg.o |
109 | obj-$(CONFIG_CRYPTO_JITTERENTROPY) += jitterentropy.o | 109 | obj-$(CONFIG_CRYPTO_JITTERENTROPY) += jitterentropy_rng.o |
110 | CFLAGS_jitterentropy.o = -O0 | ||
111 | jitterentropy_rng-y := jitterentropy.o jitterentropy-kcapi.o | ||
110 | obj-$(CONFIG_CRYPTO_TEST) += tcrypt.o | 112 | obj-$(CONFIG_CRYPTO_TEST) += tcrypt.o |
111 | obj-$(CONFIG_CRYPTO_GHASH) += ghash-generic.o | 113 | obj-$(CONFIG_CRYPTO_GHASH) += ghash-generic.o |
112 | obj-$(CONFIG_CRYPTO_USER_API) += af_alg.o | 114 | obj-$(CONFIG_CRYPTO_USER_API) += af_alg.o |