]> code.ossystems Code Review - openembedded-core.git/commit
openssl_1.0: fix cryptodev-linux PACKAGECONFIG support
authorAndre McCurdy <armccurdy@gmail.com>
Tue, 24 Jul 2018 02:38:50 +0000 (19:38 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jul 2018 12:16:31 +0000 (13:16 +0100)
commit6fee11b04b979a5b3237902d947db7118cafca2b
tree499bdf0db1b257179ccc2eda0c0266f2ea998eae
parentd1e441db511faf9c170733c01ded8c56faac9ab6
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).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-connectivity/openssl/openssl_1.0.2o.bb
meta/recipes-connectivity/openssl/openssl_1.1.0h.bb