diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2018-07-23 19:38:50 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-29 15:23:50 +0100 |
commit | 6e18b05305e3a610fde10fddff70b35b8a5a8a05 (patch) | |
tree | b583cb80ed3c4d0370fe0a40ed04e1d1a4c1a6e8 /meta/recipes-connectivity/openssl/openssl_1.0.2o.bb | |
parent | 7002cfee82d7407901e8b0bd6c5a958fd6b4385d (diff) | |
download | poky-6e18b05305e3a610fde10fddff70b35b8a5a8a05.tar.gz |
openssl_1.0: fix cryptodev-linux PACKAGECONFIG support
Since openssl isn't an autotools recipe, defining cryptodev-linux
related config options via PACKAGECONFIG hasn't worked correctly
since PACKAGECONFIG_CONFARGS stopped being automatically appended to
EXTRA_OECONF in 2016:
http://git.openembedded.org/openembedded-core/commit/?id=c98fb5f5129e71829ffab4449b3d28082bc95ab4
The issue appears to have been hidden as the flags are also hardcoded
in CFLAG - and therefore always enabled, regardless of the state of
the PACKAGECONFIG option. Fix by passing both EXTRA_OECONF and
PACKAGECONFIG_CONFARGS when running the openssl Configure script.
Although the openssl 1.1 recipe doesn't contain any PACKAGECONFIG
options yet, pre-emptively make the same fix there too.
Also only enable cryptodev-linux by default for target builds (based
on the historical comments in the recipe, that seems to have been the
original intention).
(From OE-Core rev: 6fee11b04b979a5b3237902d947db7118cafca2b)
(From OE-Core rev: 201f4a889c0e4b3d13369e38662bf97ed8a9a8e1)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl_1.0.2o.bb')
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl_1.0.2o.bb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb b/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb index 9bc9e64c12..d9e9c8408e 100644 --- a/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb +++ b/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb | |||
@@ -63,6 +63,9 @@ UPSTREAM_CHECK_REGEX = "openssl-(?P<pver>1\.0.+)\.tar" | |||
63 | inherit pkgconfig siteinfo multilib_header ptest relative_symlinks | 63 | inherit pkgconfig siteinfo multilib_header ptest relative_symlinks |
64 | 64 | ||
65 | PACKAGECONFIG ?= "cryptodev-linux" | 65 | PACKAGECONFIG ?= "cryptodev-linux" |
66 | PACKAGECONFIG_class-native = "" | ||
67 | PACKAGECONFIG_class-nativesdk = "" | ||
68 | |||
66 | PACKAGECONFIG[perl] = ",,," | 69 | PACKAGECONFIG[perl] = ",,," |
67 | PACKAGECONFIG[cryptodev-linux] = "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS,,cryptodev-linux" | 70 | PACKAGECONFIG[cryptodev-linux] = "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS,,cryptodev-linux" |
68 | 71 | ||
@@ -88,10 +91,6 @@ CFLAG = "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', '-DL_ENDIAN', '-DB | |||
88 | # (and it causes issues with SELinux) | 91 | # (and it causes issues with SELinux) |
89 | CFLAG += "-Wa,--noexecstack" | 92 | CFLAG += "-Wa,--noexecstack" |
90 | 93 | ||
91 | # For target side versions of openssl enable support for OCF Linux driver | ||
92 | # if they are available. | ||
93 | CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS" | ||
94 | |||
95 | CFLAG_append_class-native = " -fPIC" | 94 | CFLAG_append_class-native = " -fPIC" |
96 | 95 | ||
97 | do_configure_prepend_darwin () { | 96 | do_configure_prepend_darwin () { |
@@ -208,7 +207,7 @@ do_configure () { | |||
208 | useprefix=/ | 207 | useprefix=/ |
209 | fi | 208 | fi |
210 | libdirleaf="$(echo ${libdir} | sed s:$useprefix::)" | 209 | libdirleaf="$(echo ${libdir} | sed s:$useprefix::)" |
211 | perl ./Configure ${EXTRA_OECONF} shared --prefix=$useprefix --openssldir=${libdir}/ssl --libdir=$libdirleaf $target | 210 | perl ./Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} shared --prefix=$useprefix --openssldir=${libdir}/ssl --libdir=$libdirleaf $target |
212 | } | 211 | } |
213 | 212 | ||
214 | do_compile_prepend_class-target () { | 213 | do_compile_prepend_class-target () { |