Add a CA_BUNDLE variable to set the built-in CA bundle location. By default,
don't set anything for curl-native since that target's sysconfdir is a
location in the recipe's native sysroot directory.

Signed-off-by: Jim Broadus <[email protected]>
---
 meta/recipes-support/curl/curl_7.69.1.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-support/curl/curl_7.69.1.bb 
b/meta/recipes-support/curl/curl_7.69.1.bb
index e854e8d4bd..a291227db1 100644
--- a/meta/recipes-support/curl/curl_7.69.1.bb
+++ b/meta/recipes-support/curl/curl_7.69.1.bb
@@ -49,11 +49,15 @@ PACKAGECONFIG[threaded-resolver] = 
"--enable-threaded-resolver,--disable-threade
 PACKAGECONFIG[verbose] = "--enable-verbose,--disable-verbose"
 PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib"
 
+DEFAULT_CA_BUNDLE = "${sysconfdir}/ssl/certs/ca-certificates.crt"
+DEFAULT_CA_BUNDLE_class-native = ""
+CA_BUNDLE ?= "${DEFAULT_CA_BUNDLE}"
+
 EXTRA_OECONF = " \
     --disable-libcurl-option \
     --disable-ntlm-wb \
     --enable-crypto-auth \
-    --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \
+    --with-ca-bundle=${CA_BUNDLE} \
     --without-libmetalink \
     --without-libpsl \
 "
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#137039): 
https://lists.openembedded.org/g/openembedded-core/message/137039
Mute This Topic: https://lists.openembedded.org/mt/72806047/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to