diff options
| author | Changqing Li <changqing.li@windriver.com> | 2025-04-28 15:11:44 +0800 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-05-14 08:33:40 -0700 |
| commit | 478f9aceecf02373c9f30f5cccd2a118a714721d (patch) | |
| tree | d9f686e55aa74c33c0f56a05f4f07c171947d887 /meta/recipes-support | |
| parent | 35a23e15968c9f7b8b8958fd813e2672773fc506 (diff) | |
| download | poky-478f9aceecf02373c9f30f5cccd2a118a714721d.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: 5c915fcada5868bdbb8aa3e28c18a26cfc41914f)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-support')
| -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" |
