public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [OE-core][PATCH] curl: allow configuration of default CA bundle location
@ 2020-04-06  6:00 Jim Broadus
  2020-04-06 12:00 ` Richard Purdie
  0 siblings, 1 reply; 5+ messages in thread
From: Jim Broadus @ 2020-04-06  6:00 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jim Broadus

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 <jbroadus@xevo.com>
---
 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-04-06 21:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-06  6:00 [OE-core][PATCH] curl: allow configuration of default CA bundle location Jim Broadus
2020-04-06 12:00 ` Richard Purdie
2020-04-06 20:35   ` jbroadus
2020-04-06 20:58     ` Yann Dirson
2020-04-06 21:06       ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox