bitbake - How can I replace OpenSSL package in Yocto? -
i replace default package in yocto. specifically, replace openssl.
i used image_install_remove
, , added preferred_provider_virtual/openssl=<my version>
. reason, original openssl keeps getting built , used other recipes.
how can build of openssl default provider system?
well, there's no global selection of ssl-provider in yocto.
you'll have @ recipes drags in openssl, , check if support switching gnutls (or whatever want use) instead.
if take @ curl_7.37.1.bb:
packageconfig ??= "${@bb.utils.contains("distro_features", "ipv6", "ipv6", "", d)} gnutls zlib" packageconfig_class-native = "ipv6 ssl zlib" packageconfig_class-nativesdk = "ipv6 ssl zlib" packageconfig[ipv6] = "--enable-ipv6,--disable-ipv6," packageconfig[ssl] = "--with-ssl,--without-ssl,openssl" packageconfig[gnutls] = "--with-gnutls=${staging_libdir}/../,--without-gnutls,gnutls" packageconfig[zlib] = "--with-zlib=${staging_libdir}/../,--without-zlib,zlib"
you'll see curl supports both gnutls , openssl. in particular case, default use gnutls target builds, , openssl native (host) builds. can determined first 3 lines in code snippet.
thus, had wanted change curl use openssl target builds, should have replaced gnutls
ssl
in first packageconfig ??= "......"
line.
quite few recipes has gotten kind of support, though default varies between them. thus, you'll have check recipes in image drags in openssl, , reconfigure them (if possible).
Comments
Post a Comment