mbedtls: drop recipe for v2
PATCH 1/2 mbedtls: drop recipe for v2
It has been unmaintained/EOL for over a year - there is a recipe for a newer, still supported version.
--- .../mbedtls/mbedtls_2.28.10.bb | 79 ------------------- 1 file changed, 79 deletions(-) delete mode 100644 meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.10.bb
meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.10.bb deleted +0 -79
@@ -1,79 +0,0 @@ -SUMMARY = "Lightweight crypto and SSL/TLS library" -DESCRIPTION = "mbedtls is a lean open source crypto library \ -for providing SSL and TLS support in your programs. It offers \ -an intuitive API and documented header files, so you can actually \ -understand what the code does. It features: \ - \ - - Symmetric algorithms, like AES, Blowfish, Triple-DES, DES, ARC4, \ - Camellia and XTEA \ - - Hash algorithms, like SHA-1, SHA-2, RIPEMD-160 and MD5 \ - - Entropy pool and random generators, like CTR-DRBG and HMAC-DRBG \ - - Public key algorithms, like RSA, Elliptic Curves, Diffie-Hellman, \ - ECDSA and ECDH \ - - SSL v3 and TLS 1.0, 1.1 and 1.2 \ - - Abstraction layers for ciphers, hashes, public key operations, \ - platform abstraction and threading \ -" - -HOMEPAGE = "https://tls.mbed.org/" - -LICENSE = "Apache-2.0 | GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d" - -SECTION = "libs" - -SRCREV = "2fc8413bfcb51354c8e679141b17b3f1a5942561" -SRC_URI = "git://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=archive/mbedtls-2.28;tag=${BPN} \ - file://run-ptest \ - " - -inherit cmake update-alternatives ptest - -PACKAGECONFIG ??= "shared-libs programs ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" -PACKAGECONFIG[shared-libs] = "-DUSE_SHARED_MBEDTLS_LIBRARY=ON,-DUSE_SHARED_MBEDTLS_LIBRARY=OFF" -PACKAGECONFIG[programs] = "-DENABLE_PROGRAMS=ON,-DENABLE_PROGRAMS=OFF" -PACKAGECONFIG[werror] = "-DMBEDTLS_FATAL_WARNINGS=ON,-DMBEDTLS_FATAL_WARNINGS=OFF" -# Make X.509 and TLS calls use PSA -# https://github.com/Mbed-TLS/mbedtls/blob/development/docs/use-psa-crypto.md -PACKAGECONFIG[psa] = "" -PACKAGECONFIG[tests] = "-DENABLE_TESTING=ON,-DENABLE_TESTING=OFF" - -EXTRA_OECMAKE = "-DLIB_INSTALL_DIR:STRING=${libdir}" - -# For now the only way to enable PSA is to explicitly pass a -D via CFLAGS -CFLAGS:append = "${@bb.utils.contains('PACKAGECONFIG', 'psa', ' -DMBEDTLS_USE_PSA_CRYPTO', '', d)}" - -PROVIDES += "polarssl" -RPROVIDES:${PN} = "polarssl" - -PACKAGES =+ "${PN}-programs" -FILES:${PN}-programs = "${bindir}/" - -ALTERNATIVE:${PN}-programs = "${@bb.utils.contains('PACKAGECONFIG', 'programs', 'hello', '', d)}" -ALTERNATIVE_LINK_NAME[hello] = "${bindir}/hello" - -BBCLASSEXTEND = "native nativesdk" - -CVE_PRODUCT = "mbed_tls" - -CVE_STATUS[CVE-2021-43666] = "backported-patch: Fix merged upstream https://github.com/Mbed-TLS/mbedtls/pull/5310" -CVE_STATUS[CVE-2021-45451] = "backported-patch: Fix merged upstream https://github.com/Mbed-TLS/mbedtls/commit/9a4a9c66a48edfe9ece03c7e4a53310adf73a86c" - -# Strip host paths from autogenerated test files -do_compile:append() { - sed -i 's+${S}/++g' ${B}/tests/*.c 2>/dev/null || : - sed -i 's+${B}/++g' ${B}/tests/*.c 2>/dev/null || : -} - -# Export source files/headers needed by Arm Trusted Firmware -sysroot_stage_all:append() { - sysroot_stage_dir "${S}/library" "${SYSROOT_DESTDIR}/usr/share/mbedtls-source/library" - sysroot_stage_dir "${S}/include" "${SYSROOT_DESTDIR}/usr/share/mbedtls-source/include" -} - -do_install_ptest () { - install -d ${D}${PTEST_PATH}/tests - cp -f ${B}/tests/test_suite_* ${D}${PTEST_PATH}/tests/ - find ${D}${PTEST_PATH}/tests/ -type f -name "*.c" -delete - cp -fR ${S}/tests/data_files ${D}${PTEST_PATH}/tests/ -}
PATCH 2/2 mbedtls: upgrade 3.6.5 -> 3.6.6
Contains fixes for CVE-2026-25833, CVE-2026-25834, CVE-2026-25835, CVE-2026-34872, CVE-2026-34873, CVE-2026-34874 and CVE-2026-34875.
Changelog: https://github.com/Mbed-TLS/mbedtls/releases/tag/mbedtls-3.6.6
Ptests passed successfully:
root@qemux86-64:~# ptest-runner START: ptest-runner 2026-04-06T14:04 BEGIN: /usr/lib/mbedtls/ptest PASS: test_suite_aes.cbc PASS: test_suite_aes.cfb PASS: test_suite_aes.ctr ... PASS: test_suite_version PASS: test_suite_x509parse PASS: test_suite_x509write DURATION: 24 END: /usr/lib/mbedtls/ptest 2026-04-06T14:04 STOP: ptest-runner
---
.../mbedtls/{mbedtls_3.6.5.bb => mbedtls_3.6.6.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-networking/recipes-connectivity/mbedtls/{mbedtls_3.6.5.bb => mbedtls_3.6.6.bb} (98%)meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.6.bb renamed from meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.5.bb +1 -1
@@ -27,7 +27,7 @@ SRC_URI = "gitsm://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=mbedtls file://run-ptest \ " -SRCREV = "e185d7fd85499c8ce5ca2a54f5cf8fe7dbe3f8df" +SRCREV = "0bebf8b8c7f07abe3571ded48a11aa907a1ffb20" UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
I think we should drop it since upcoming release it LTS and carrying an EOL package is not good. I also wonder if we should be adding recipe for 4.x release, is it backward compatible to 3.x ? if not maybe a second recipe.
Quoted 125 lines · Gyorgy Sarvari via lists.openembedded.org
It has been unmaintained/EOL for over a year - there is a recipe for a newer, still supported version.
Signed-off-by Gyorgy Sarvari <[email protected]>--- .../mbedtls/mbedtls_2.28.10.bb | 79 ------------------- 1 file changed, 79 deletions(-) delete mode 100644 meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.10.bb
(quoted diff) +0
-0mbedtls_2.28.10.bb b/meta-networking/recipes-connectivity/mbedtls/ mbedtls_2.28.10.bb
deleted file mode 100644
index b126aee7db..0000000000meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.10.bb deleted +0
-26@@ -1,79 +0,0 @@ -SUMMARY = "Lightweight crypto and SSL/TLS library" -DESCRIPTION = "mbedtls is a lean open source crypto library \ -for providing SSL and TLS support in your programs. It offers \ -an intuitive API and documented header files, so you can actually \ -understand what the code does. It features: \ - \ - - Symmetric algorithms, like AES, Blowfish, Triple-DES, DES, ARC4, \ - Camellia and XTEA \ - - Hash algorithms, like SHA-1, SHA-2, RIPEMD-160 and MD5 \ - - Entropy pool and random generators, like CTR-DRBG and HMAC-DRBG \ - - Public key algorithms, like RSA, Elliptic Curves, Diffie-Hellman, \ - ECDSA and ECDH \ - - SSL v3 and TLS 1.0, 1.1 and 1.2 \ - - Abstraction layers for ciphers, hashes, public key operations, \ - platform abstraction and threading \ -" - -HOMEPAGE = "https://tls.mbed.org/" - -LICENSE = "Apache-2.0 | GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://LICENSE;md5=379d5819937a6c2f1ef1630d341e026d" - -SECTION = "libs" - -SRCREV = "2fc8413bfcb51354c8e679141b17b3f1a5942561" -SRC_URI = "git://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=archive/mbedtls-2.28;tag=${BPN}
<http://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=archive/mbedtls-2.28;tag=$%7BBPN%7D>
\meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.10.bb deleted +0
-6- file://run-ptest \ - " - -inherit cmake update-alternatives ptest - -PACKAGECONFIG ??= "shared-libs programs${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" -PACKAGECONFIG[shared-libs] = "-DUSE_SHARED_MBEDTLS_LIBRARY=ON,-DUSE_SHARED_MBEDTLS_LIBRARY=OFF"
meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.10.bb deleted +0
-2-PACKAGECONFIG[programs] = "-DENABLE_PROGRAMS=ON,-DENABLE_PROGRAMS=OFF" -PACKAGECONFIG[werror] ="-DMBEDTLS_FATAL_WARNINGS=ON,-DMBEDTLS_FATAL_WARNINGS=OFF"
meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.10.bb deleted +0
-2-# Make X.509 and TLS calls use PSA -#https://github.com/Mbed-TLS/mbedtls/blob/development/docs/use-psa-crypto.md
-PACKAGECONFIG[psa]
<https://github.com/Mbed-TLS/mbedtls/blob/development/docs/use-psa-crypto.md-PACKAGECONFIG%5Bpsa%5D>
= ""meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.10.bb deleted +0
-15-PACKAGECONFIG[tests] = "-DENABLE_TESTING=ON,-DENABLE_TESTING=OFF" - -EXTRA_OECMAKE = "-DLIB_INSTALL_DIR:STRING=${libdir}" - -# For now the only way to enable PSA is to explicitly pass a -D via CFLAGS -CFLAGS:append = "${@bb.utils.contains('PACKAGECONFIG', 'psa', ' -DMBEDTLS_USE_PSA_CRYPTO', '', d)}" - -PROVIDES += "polarssl" -RPROVIDES:${PN} = "polarssl" - -PACKAGES =+ "${PN}-programs" -FILES:${PN}-programs = "${bindir}/" - -ALTERNATIVE:${PN}-programs = "${@bb.utils.contains('PACKAGECONFIG','programs', 'hello', '', d)}"
meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.10.bb deleted +0
-7-ALTERNATIVE_LINK_NAME[hello] = "${bindir}/hello" - -BBCLASSEXTEND = "native nativesdk" - -CVE_PRODUCT = "mbed_tls" - -CVE_STATUS[CVE-2021-43666] = "backported-patch: Fix merged upstreamhttps://github.com/Mbed-TLS/mbedtls/pull/5310"
-CVE_STATUS[CVE-2021-45451] = "backported-patch: Fix merged upstream
https://github.com/Mbed-TLS/mbedtls/commit/9a4a9c66a48edfe9ece03c7e4a53310adf73a86c
"meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.10.bb deleted +0
-10- -# Strip host paths from autogenerated test files -do_compile:append() { - sed -i 's+${S}/++g' ${B}/tests/*.c 2>/dev/null || : - sed -i 's+${B}/++g' ${B}/tests/*.c 2>/dev/null || : -} - -# Export source files/headers needed by Arm Trusted Firmware -sysroot_stage_all:append() { - sysroot_stage_dir "${S}/library""${SYSROOT_DESTDIR}/usr/share/mbedtls-source/library"
-sysroot_stage_dir"${S}/include"
"${SYSROOT_DESTDIR}/usr/share/mbedtls-source/include"meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.10.bb deleted +0
-9-} - -do_install_ptest () { - install -d ${D}${PTEST_PATH}/tests - cp -f ${B}/tests/test_suite_* ${D}${PTEST_PATH}/tests/ - find ${D}${PTEST_PATH}/tests/ -type f -name "*.c" -delete - cp -fR ${S}/tests/data_files ${D}${PTEST_PATH}/tests/ -} -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group. View/Reply Online (#126045):
https://lists.openembedded.org/g/openembedded-devel/message/126045
Mute This Topic: https://lists.openembedded.org/mt/118690748/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 5 lines · Khem Raj
I think we should drop it since upcoming release it LTS and carrying an EOL package is not good. I also wonder if we should be adding recipe for 4.x release, is it backward compatible to 3.x ? if not maybe a second recipe.
Yes, I started to look at 4.x, I also think it would be nice to get in, because 3.x has only a year of support left. I was thinking leaving 3.x, but making the new one the default. It was giving me some errors that I managed to solve, and then it gave me some new very weird errors... plan to try again soon, unless someone else is faster.
Quoted 140 lines
On Mon, Apr 6, 2026 at 7:15 AM Gyorgy Sarvari via lists.openembedded.org
<http://lists.openembedded.org>
<[email protected] <mailto:[email protected]>> wrote:It has been unmaintained/EOL for over a year - there is a recipe for a newer, still supported version. Signed-off-by: Gyorgy Sarvari <[email protected] <mailto:[email protected]>> --- .../mbedtls/mbedtls_2.28.10.bb <http://mbedtls_2.28.10.bb> | 79 ------------------- 1 file changed, 79 deletions(-) delete mode 100644 meta-networking/recipes-connectivity/mbedtls/ mbedtls_2.28.10.bb <http://mbedtls_2.28.10.bb> diff --git a/meta-networking/recipes-connectivity/mbedtls/ mbedtls_2.28.10.bb <http://mbedtls_2.28.10.bb> b/meta-networking/ recipes-connectivity/mbedtls/mbedtls_2.28.10.bb <http:// mbedtls_2.28.10.bb> deleted file mode 100644 index b126aee7db..0000000000 --- a/meta-networking/recipes-connectivity/mbedtls/ mbedtls_2.28.10.bb <http://mbedtls_2.28.10.bb> +++ /dev/null @@ -1,79 +0,0 @@ -SUMMARY = "Lightweight crypto and SSL/TLS library" -DESCRIPTION = "mbedtls is a lean open source crypto library \ -for providing SSL and TLS support in your programs. It offers \ -an intuitive API and documented header files, so you can actually \ -understand what the code does. It features: \ - \ - - Symmetric algorithms, like AES, Blowfish, Triple-DES, DES, ARC4, \ - Camellia and XTEA \ - - Hash algorithms, like SHA-1, SHA-2, RIPEMD-160 and MD5 \ - - Entropy pool and random generators, like CTR-DRBG and HMAC-DRBG \ - - Public key algorithms, like RSA, Elliptic Curves, Diffie-Hellman, \ - ECDSA and ECDH \ - - SSL v3 and TLS 1.0, 1.1 and 1.2 \ - - Abstraction layers for ciphers, hashes, public key operations, \ - platform abstraction and threading \ -" - -HOMEPAGE = "https://tls.mbed.org/ <https://tls.mbed.org/>" - -LICENSE = "Apache-2.0 | GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file:// LICENSE;md5=379d5819937a6c2f1ef1630d341e026d" - -SECTION = "libs" - -SRCREV = "2fc8413bfcb51354c8e679141b17b3f1a5942561" -SRC_URI = "git://github.com/Mbed-TLS/ mbedtls.git;protocol=https;branch=archive/mbedtls-2.28;tag=${BPN} <http://github.com/Mbed-TLS/ mbedtls.git;protocol=https;branch=archive/mbedtls-2.28;tag=$%7BBPN%7D> \ - file://run-ptest \ - " - -inherit cmake update-alternatives ptest - -PACKAGECONFIG ??= "shared-libs programs ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" -PACKAGECONFIG[shared-libs] = "-DUSE_SHARED_MBEDTLS_LIBRARY=ON,- DUSE_SHARED_MBEDTLS_LIBRARY=OFF" -PACKAGECONFIG[programs] = "-DENABLE_PROGRAMS=ON,-DENABLE_PROGRAMS=OFF" -PACKAGECONFIG[werror] = "-DMBEDTLS_FATAL_WARNINGS=ON,- DMBEDTLS_FATAL_WARNINGS=OFF" -# Make X.509 and TLS calls use PSA -# https://github.com/Mbed-TLS/mbedtls/blob/development/docs/use- psa-crypto.md -PACKAGECONFIG[psa] <https://github.com/Mbed-TLS/mbedtls/blob/ development/docs/use-psa-crypto.md-PACKAGECONFIG%5Bpsa%5D> = "" -PACKAGECONFIG[tests] = "-DENABLE_TESTING=ON,-DENABLE_TESTING=OFF" - -EXTRA_OECMAKE = "-DLIB_INSTALL_DIR:STRING=${libdir}" - -# For now the only way to enable PSA is to explicitly pass a -D via CFLAGS -CFLAGS:append = "${@bb.utils.contains('PACKAGECONFIG', 'psa', ' - DMBEDTLS_USE_PSA_CRYPTO', '', d)}" - -PROVIDES += "polarssl" -RPROVIDES:${PN} = "polarssl" - -PACKAGES =+ "${PN}-programs" -FILES:${PN}-programs = "${bindir}/" - -ALTERNATIVE:${PN}-programs = "${@bb.utils.contains('PACKAGECONFIG', 'programs', 'hello', '', d)}" -ALTERNATIVE_LINK_NAME[hello] = "${bindir}/hello" - -BBCLASSEXTEND = "native nativesdk" - -CVE_PRODUCT = "mbed_tls" - -CVE_STATUS[CVE-2021-43666] = "backported-patch: Fix merged upstream https://github.com/Mbed-TLS/mbedtls/pull/5310 <https://github.com/ Mbed-TLS/mbedtls/pull/5310>" -CVE_STATUS[CVE-2021-45451] = "backported-patch: Fix merged upstream https://github.com/Mbed-TLS/mbedtls/ commit/9a4a9c66a48edfe9ece03c7e4a53310adf73a86c <https://github.com/ Mbed-TLS/mbedtls/commit/9a4a9c66a48edfe9ece03c7e4a53310adf73a86c>" - -# Strip host paths from autogenerated test files -do_compile:append() { - sed -i 's+${S}/++g' ${B}/tests/*.c 2>/dev/null || : - sed -i 's+${B}/++g' ${B}/tests/*.c 2>/dev/null || : -} - -# Export source files/headers needed by Arm Trusted Firmware -sysroot_stage_all:append() { - sysroot_stage_dir "${S}/library" "${SYSROOT_DESTDIR}/usr/ share/mbedtls-source/library" - sysroot_stage_dir "${S}/include" "${SYSROOT_DESTDIR}/usr/ share/mbedtls-source/include" -} - -do_install_ptest () { - install -d ${D}${PTEST_PATH}/tests - cp -f ${B}/tests/test_suite_* ${D}${PTEST_PATH}/tests/ - find ${D}${PTEST_PATH}/tests/ -type f -name "*.c" -delete - cp -fR ${S}/tests/data_files ${D}${PTEST_PATH}/tests/ -} -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#126045): https://lists.openembedded.org/g/ openembedded-devel/message/126045 <https://lists.openembedded.org/g/ openembedded-devel/message/126045> Mute This Topic: https://lists.openembedded.org/mt/118690748/1997914 <https://lists.openembedded.org/mt/118690748/1997914> Group Owner: [email protected] <mailto:openembedded-devel%[email protected]> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/ unsub <https://lists.openembedded.org/g/openembedded-devel/unsub> [[email protected] <mailto:[email protected]>] -=-=-=-=-=-=-=-=-=-=-=-
Quoted 9 lines · Gyorgy Sarvari
Quoted 5 lines · Khem Raj
I think we should drop it since upcoming release it LTS and carrying an EOL package is not good. I also wonder if we should be adding recipe for 4.x release, is it backward compatible to 3.x ? if not maybe a second recipe.
Quoted 6 lines
Yes, I started to look at 4.x, I also think it would be nice to get in, because 3.x has only a year of support left. I was thinking leaving 3.x, but making the new one the default. It was giving me some errors that I managed to solve, and then it gave me some new very weird errors... plan to try again soon, unless someone else is faster.
yeah 4.x could spin up some errors which is ok since they will be solved over time
please post your WIP patches somewhere if you like some more eyes on them
Quoted 160 lines
Quoted 23 lines
On Mon, Apr 6, 2026 at 7:15 AM Gyorgy Sarvari via lists.openembedded.org
<http://lists.openembedded.org>
<[email protected] <mailto:[email protected]>> wrote:It has been unmaintained/EOL for over a year - there is a recipe for a newer, still supported version. Signed-off-by: Gyorgy Sarvari <[email protected] <mailto:[email protected]>> --- .../mbedtls/mbedtls_2.28.10.bb <http://mbedtls_2.28.10.bb> | 79 ------------------- 1 file changed, 79 deletions(-) delete mode 100644 meta-networking/recipes-connectivity/mbedtls/ mbedtls_2.28.10.bb <http://mbedtls_2.28.10.bb> diff --git a/meta-networking/recipes-connectivity/mbedtls/ mbedtls_2.28.10.bb <http://mbedtls_2.28.10.bb> b/meta-networking/ recipes-connectivity/mbedtls/mbedtls_2.28.10.bb <http:// mbedtls_2.28.10.bb>Quoted 8 lines
deleted file mode 100644 index b126aee7db..0000000000 --- a/meta-networking/recipes-connectivity/mbedtls/ mbedtls_2.28.10.bb <http://mbedtls_2.28.10.bb> +++ /dev/null @@ -1,79 +0,0 @@ -SUMMARY = "Lightweight crypto and SSL/TLS library" -DESCRIPTION = "mbedtls is a lean open source crypto library\
Quoted 1 line
-for providing SSL and TLS support in your programs. It offers
\
Quoted 1 line
-an intuitive API and documented header files, so you can actually
\
Quoted 1 line
-understand what the code does. It features:
\
Quoted 1 line
-\
Quoted 1 line
- - Symmetric algorithms, like AES, Blowfish, Triple-DES, DES,
ARC4, \
Quoted 1 line
- Camellia and XTEA
\
Quoted 1 line
- - Hash algorithms, like SHA-1, SHA-2, RIPEMD-160 and MD5
\
Quoted 1 line
- - Entropy pool and random generators, like CTR-DRBG and HMAC-DRBG
\
Quoted 1 line
- - Public key algorithms, like RSA, Elliptic Curves,
Diffie-Hellman, \
Quoted 1 line
- ECDSA and ECDH
\
Quoted 1 line
- - SSL v3 and TLS 1.0, 1.1 and 1.2
\
Quoted 1 line
- - Abstraction layers for ciphers, hashes, public key operations,
\
Quoted 1 line
- platform abstraction and threading
\
Quoted 6 lines
-" - -HOMEPAGE = "https://tls.mbed.org/ <https://tls.mbed.org/>" - -LICENSE = "Apache-2.0 | GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://Quoted 9 lines
LICENSE;md5=379d5819937a6c2f1ef1630d341e026d" - -SECTION = "libs" - -SRCREV = "2fc8413bfcb51354c8e679141b17b3f1a5942561" -SRC_URI = "git://github.com/Mbed-TLS/ mbedtls.git;protocol=https;branch=archive/mbedtls-2.28;tag=${BPN} <http://github.com/Mbed-TLS/mbedtls.git;protocol=https;branch=archive/mbedtls-2.28;tag=$%7BBPN%7D> \
Quoted 10 lines
- file://run-ptest \
- "
-
-inherit cmake update-alternatives ptest
-
-PACKAGECONFIG ??= "shared-libs programs ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" -PACKAGECONFIG[shared-libs] = "-DUSE_SHARED_MBEDTLS_LIBRARY=ON,- DUSE_SHARED_MBEDTLS_LIBRARY=OFF" -PACKAGECONFIG[programs] ="-DENABLE_PROGRAMS=ON,-DENABLE_PROGRAMS=OFF"
Quoted 73 lines
-PACKAGECONFIG[werror] = "-DMBEDTLS_FATAL_WARNINGS=ON,- DMBEDTLS_FATAL_WARNINGS=OFF" -# Make X.509 and TLS calls use PSA -# https://github.com/Mbed-TLS/mbedtls/blob/development/docs/use- psa-crypto.md -PACKAGECONFIG[psa] <https://github.com/Mbed-TLS/mbedtls/blob/ development/docs/use-psa-crypto.md-PACKAGECONFIG%5Bpsa%5D> = "" -PACKAGECONFIG[tests] = "-DENABLE_TESTING=ON,-DENABLE_TESTING=OFF" - -EXTRA_OECMAKE = "-DLIB_INSTALL_DIR:STRING=${libdir}" - -# For now the only way to enable PSA is to explicitly pass a -D via CFLAGS -CFLAGS:append = "${@bb.utils.contains('PACKAGECONFIG', 'psa', ' - DMBEDTLS_USE_PSA_CRYPTO', '', d)}" - -PROVIDES += "polarssl" -RPROVIDES:${PN} = "polarssl" - -PACKAGES =+ "${PN}-programs" -FILES:${PN}-programs = "${bindir}/" - -ALTERNATIVE:${PN}-programs = "${@bb.utils.contains('PACKAGECONFIG', 'programs', 'hello', '', d)}" -ALTERNATIVE_LINK_NAME[hello] = "${bindir}/hello" - -BBCLASSEXTEND = "native nativesdk" - -CVE_PRODUCT = "mbed_tls" - -CVE_STATUS[CVE-2021-43666] = "backported-patch: Fix merged upstream https://github.com/Mbed-TLS/mbedtls/pull/5310 <https://github.com/ Mbed-TLS/mbedtls/pull/5310>" -CVE_STATUS[CVE-2021-45451] = "backported-patch: Fix merged upstream https://github.com/Mbed-TLS/mbedtls/ commit/9a4a9c66a48edfe9ece03c7e4a53310adf73a86c <https://github.com/ Mbed-TLS/mbedtls/commit/9a4a9c66a48edfe9ece03c7e4a53310adf73a86c>" - -# Strip host paths from autogenerated test files -do_compile:append() { - sed -i 's+${S}/++g' ${B}/tests/*.c 2>/dev/null || : - sed -i 's+${B}/++g' ${B}/tests/*.c 2>/dev/null || : -} - -# Export source files/headers needed by Arm Trusted Firmware -sysroot_stage_all:append() { - sysroot_stage_dir "${S}/library" "${SYSROOT_DESTDIR}/usr/ share/mbedtls-source/library" - sysroot_stage_dir "${S}/include" "${SYSROOT_DESTDIR}/usr/ share/mbedtls-source/include" -} - -do_install_ptest () { - install -d ${D}${PTEST_PATH}/tests - cp -f ${B}/tests/test_suite_* ${D}${PTEST_PATH}/tests/ - find ${D}${PTEST_PATH}/tests/ -type f -name "*.c" -delete - cp -fR ${S}/tests/data_files ${D}${PTEST_PATH}/tests/ -} -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#126045): https://lists.openembedded.org/g/ openembedded-devel/message/126045 <https://lists.openembedded.org/g/ openembedded-devel/message/126045> Mute This Topic: https://lists.openembedded.org/mt/118690748/1997914 <https://lists.openembedded.org/mt/118690748/1997914> Group Owner: [email protected] <mailto:openembedded-devel%[email protected]> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/ unsub <https://lists.openembedded.org/g/openembedded-devel/unsub> [[email protected] <mailto:[email protected]>] -=-=-=-=-=-=-=-=-=-=-=-