]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
openssl: export necessary env vars in SDK
authorChen Qi <Qi.Chen@windriver.com>
Fri, 4 Nov 2022 03:00:36 +0000 (17:00 -1000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 4 Nov 2022 13:13:27 +0000 (13:13 +0000)
commitf51c9af925ab4cf338ec9ba3e4bebdae25113a3a
tree4ce5144cdd78b4cce4336dc22ef03c6a2934b1c9
parentfbdf93f43ff4b876487e1f26752598ec8abcb46e
openssl: export necessary env vars in SDK

In current SDK, when running the following command in python
shell, we get an error.

$ python3
>>> from cryptography.hazmat.backends import openssl

The error message is as below:

  cryptography.exceptions.InternalError: Unknown OpenSSL error.

We could set OPENSSL_MODULES explicitly in nativesdk-openssl package
so that when SDK is set up, it's in environment and we can
get rid of the above error.

Also, there are other env vars that need to be exported. And we export
all of them to keep sync with openssl-native.bbclass.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d6b15d1e70b99185cf245d829ada5b6fb99ec1af)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
(cherry picked from commit 69030b368773baae65d95e39d3587913b8401bc7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/openssl/files/environment.d-openssl.sh