diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2017-12-20 13:15:37 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-07 10:59:16 +0100 |
commit | b3f148333515efdb746b78c57d62cfbf3321b21e (patch) | |
tree | 029a2e6c0c687e4e361e16e4b89a926d80b74484 /meta/recipes-connectivity/openssl/openssl10.inc | |
parent | d3e69fa2fef83015658aa5fa1442bab5a8c3edaa (diff) | |
download | openembedded-core-b3f148333515efdb746b78c57d62cfbf3321b21e.tar.gz |
openssl-nativesdk: Fix "can't open config file" warning
When SDK is not installed in the default location, openssl will not be
able to find the the openssl.cnf config file:
"WARNING: can't open config file: XXXX/usr/lib/ssl/openssl.cnf"
To fix this, we need to provide the environment variable $OPENSSL_CONF
pointing to the correct config file location.
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl10.inc')
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl10.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl10.inc b/meta/recipes-connectivity/openssl/openssl10.inc index 995177d320..1f8834f2e8 100644 --- a/meta/recipes-connectivity/openssl/openssl10.inc +++ b/meta/recipes-connectivity/openssl/openssl10.inc @@ -285,5 +285,12 @@ do_install_append_class-native() { OPENSSL_ENGINES=${libdir}/ssl/engines } +do_install_append_class-nativesdk() { + mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d + install -m 644 ${WORKDIR}/environment.d-openssl.sh ${D}${SDKPATHNATIVE}/environment-setup.d/openssl.sh +} + +FILES_${PN}_append_class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/openssl.sh" + BBCLASSEXTEND = "native nativesdk" |