diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-09-17 11:49:47 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-18 12:09:02 +0100 |
commit | 53b5654d6eebfbc1e290af3cfda7f0ed7b71f59e (patch) | |
tree | f752f4e3f940ae9c90683d9a3d8f728e34ff66ec /meta/recipes-connectivity | |
parent | c627018fbea1a8f198557bfbcecb62b6d29a0bc9 (diff) | |
download | poky-53b5654d6eebfbc1e290af3cfda7f0ed7b71f59e.tar.gz |
openssl: Enable os option for with-rand-seed as well
with openSSL 1.1.1d we start seeing errors like
Error Generating Key
139979727451584:error:2406C06E:random number generator:RAND_DRBG_instantiate:error retrieving entropy:../openssl-1.1.1d/crypto/rand/drbg_lib.c:342:
when using openssl from openssl-native on build hosts, this is due to
limiting the random seed to devrandom, to support older hosts, since the
option allows to have a comma separated list of methods to try, we can
try the default first and if that fails then fallback to devrandom, this
will ensure that it keeps working with build systems which dont support
getrandom()
(From OE-Core rev: 8b4edb8552b238680d8dcef565e830a8e28a223c)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Adrian Bunk <bunk@stusta.de>
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl_1.1.1d.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1d.bb b/meta/recipes-connectivity/openssl/openssl_1.1.1d.bb index 080d1a8bb7..072f727e0b 100644 --- a/meta/recipes-connectivity/openssl/openssl_1.1.1d.bb +++ b/meta/recipes-connectivity/openssl/openssl_1.1.1d.bb | |||
@@ -43,10 +43,10 @@ do_configure[cleandirs] = "${B}" | |||
43 | EXTRA_OECONF_append_libc-musl = " no-async" | 43 | EXTRA_OECONF_append_libc-musl = " no-async" |
44 | EXTRA_OECONF_append_libc-musl_powerpc64 = " no-asm" | 44 | EXTRA_OECONF_append_libc-musl_powerpc64 = " no-asm" |
45 | 45 | ||
46 | # This prevents openssl from using getrandom() which is not available on older glibc versions | 46 | # adding devrandom prevents openssl from using getrandom() which is not available on older glibc versions |
47 | # (native versions can be built with newer glibc, but then relocated onto a system with older glibc) | 47 | # (native versions can be built with newer glibc, but then relocated onto a system with older glibc) |
48 | EXTRA_OECONF_class-native = "--with-rand-seed=devrandom" | 48 | EXTRA_OECONF_class-native = "--with-rand-seed=os,devrandom" |
49 | EXTRA_OECONF_class-nativesdk = "--with-rand-seed=devrandom" | 49 | EXTRA_OECONF_class-nativesdk = "--with-rand-seed=os,devrandom" |
50 | 50 | ||
51 | # Relying on hardcoded built-in paths causes openssl-native to not be relocateable from sstate. | 51 | # Relying on hardcoded built-in paths causes openssl-native to not be relocateable from sstate. |
52 | CFLAGS_append_class-native = " -DOPENSSLDIR=/not/builtin -DENGINESDIR=/not/builtin" | 52 | CFLAGS_append_class-native = " -DOPENSSLDIR=/not/builtin -DENGINESDIR=/not/builtin" |