diff options
| author | Changqing Li <changqing.li@windriver.com> | 2025-04-08 17:38:21 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-11 11:49:59 +0100 |
| commit | 2a1eb07755871aaf1e3f35547b7315237592ea27 (patch) | |
| tree | 5ba14c3bad3b3daac5f70511f1cb9d1c92952c96 /meta/recipes-support/curl | |
| parent | 07b2d077c79c44e9e224ef56f541d46591d4cde7 (diff) | |
| download | poky-2a1eb07755871aaf1e3f35547b7315237592ea27.tar.gz | |
buildtools-tarball: move setting of envvars to respective envfile
* make git,curl,python3-requests align with openssl, move the setting of
envvars into respective envfile
* for environment.d-openssl.sh, also check if ca-certificates.crt exist
before export envvars
(From OE-Core rev: 9d8ebfcd55ad274e79cb81f162397c8f39f4287b)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/curl')
| -rw-r--r-- | meta/recipes-support/curl/curl/environment.d-curl.sh | 3 | ||||
| -rw-r--r-- | meta/recipes-support/curl/curl_8.12.1.bb | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/meta/recipes-support/curl/curl/environment.d-curl.sh b/meta/recipes-support/curl/curl/environment.d-curl.sh new file mode 100644 index 0000000000..0d53aabb8e --- /dev/null +++ b/meta/recipes-support/curl/curl/environment.d-curl.sh | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | if [ -e "${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt" ];then | ||
| 2 | export CURL_CA_BUNDLE="${OECORE_NATIVE_SYSROOT}/etc/ssl/certs/ca-certificates.crt" | ||
| 3 | fi | ||
diff --git a/meta/recipes-support/curl/curl_8.12.1.bb b/meta/recipes-support/curl/curl_8.12.1.bb index dd1c89979a..4192693da8 100644 --- a/meta/recipes-support/curl/curl_8.12.1.bb +++ b/meta/recipes-support/curl/curl_8.12.1.bb | |||
| @@ -15,6 +15,11 @@ SRC_URI = " \ | |||
| 15 | file://disable-tests \ | 15 | file://disable-tests \ |
| 16 | file://no-test-timeout.patch \ | 16 | file://no-test-timeout.patch \ |
| 17 | " | 17 | " |
| 18 | |||
| 19 | SRC_URI:append:class-nativesdk = " \ | ||
| 20 | file://environment.d-curl.sh \ | ||
| 21 | " | ||
| 22 | |||
| 18 | SRC_URI[sha256sum] = "0341f1ed97a26c811abaebd37d62b833956792b7607ea3f15d001613c76de202" | 23 | SRC_URI[sha256sum] = "0341f1ed97a26c811abaebd37d62b833956792b7607ea3f15d001613c76de202" |
| 19 | 24 | ||
| 20 | # Curl has used many names over the years... | 25 | # Curl has used many names over the years... |
| @@ -97,6 +102,9 @@ do_install:append:class-target() { | |||
| 97 | 102 | ||
| 98 | do_install:append:class-nativesdk() { | 103 | do_install:append:class-nativesdk() { |
| 99 | fix_absolute_paths | 104 | fix_absolute_paths |
| 105 | |||
| 106 | mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d | ||
| 107 | install -m 644 ${UNPACKDIR}/environment.d-curl.sh ${D}${SDKPATHNATIVE}/environment-setup.d/curl.sh | ||
| 100 | } | 108 | } |
| 101 | 109 | ||
| 102 | do_compile_ptest() { | 110 | do_compile_ptest() { |
| @@ -150,6 +158,7 @@ FILES:lib${BPN} = "${libdir}/lib*.so.*" | |||
| 150 | RRECOMMENDS:lib${BPN} += "ca-certificates" | 158 | RRECOMMENDS:lib${BPN} += "ca-certificates" |
| 151 | 159 | ||
| 152 | FILES:${PN} += "${datadir}/zsh" | 160 | FILES:${PN} += "${datadir}/zsh" |
| 161 | FILES:${PN}:append:class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/curl.sh" | ||
| 153 | 162 | ||
| 154 | inherit multilib_script | 163 | inherit multilib_script |
| 155 | MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/curl-config" | 164 | MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/curl-config" |
