From 663bc6f0160adb570c3a7d0b64d1f7f60cb2269e Mon Sep 17 00:00:00 2001 From: Johannes Pointner Date: Fri, 6 Apr 2018 15:31:48 +0200 Subject: mbedtls: upgrade to 2.8.0 This also includes a switch to Apache license, because it's the primary license for the project according to their homepage. * Detail release note: - https://tls.mbed.org/tech-updates/releases/mbedtls-2.8.0-2.7.2-and-2.1.11-released Signed-off-by: Johannes Pointner Signed-off-by: Armin Kuster Signed-off-by: Joe MacDonald --- .../recipes-connectivity/mbedtls/mbedtls_1.3.17.bb | 37 ------------------- .../recipes-connectivity/mbedtls/mbedtls_2.8.0.bb | 42 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 37 deletions(-) delete mode 100644 meta-networking/recipes-connectivity/mbedtls/mbedtls_1.3.17.bb create mode 100644 meta-networking/recipes-connectivity/mbedtls/mbedtls_2.8.0.bb diff --git a/meta-networking/recipes-connectivity/mbedtls/mbedtls_1.3.17.bb b/meta-networking/recipes-connectivity/mbedtls/mbedtls_1.3.17.bb deleted file mode 100644 index fcfec6907d..0000000000 --- a/meta-networking/recipes-connectivity/mbedtls/mbedtls_1.3.17.bb +++ /dev/null @@ -1,37 +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://polarssl.org" -BUGTRACKER = "https://github.com/polarssl/polarssl/issues" - -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe" - -SECTION = "libdevel" - -SRC_URI = "https://tls.mbed.org/download/mbedtls-${PV}-gpl.tgz" - -SRC_URI[md5sum] = "a6ed92fc377ef60f7c24d42b900e0dad" -SRC_URI[sha256sum] = "f5beb43e850283915e3e0f8d37495eade3bfb5beedfb61e7b8da70d4c68edb82" - -DEPENDS = "openssl" -RDEPENDS_${PN} += "libcrypto" -PROVIDES += "polarssl" -RPROVIDES_${PN} = "polarssl" -EXTRA_OECMAKE = "-DUSE_SHARED_POLARSSL_LIBRARY=on -DLIB_INSTALL_DIR=${baselib}" - -inherit cmake diff --git a/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.8.0.bb b/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.8.0.bb new file mode 100644 index 0000000000..736cce1b01 --- /dev/null +++ b/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.8.0.bb @@ -0,0 +1,42 @@ +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" +LIC_FILES_CHKSUM = "file://LICENSE;md5=302d50a6369f5f22efdb674db908167a" + +SECTION = "libdevel" + +SRC_URI = "https://tls.mbed.org/download/mbedtls-${PV}-apache.tgz" + +SRC_URI[md5sum] = "2d4b0e2cb844efde1e73d3bcd9731fef" +SRC_URI[sha256sum] = "ab8b62b995781bcf22e87a265ed06267f87c3041198e996b44441223d19fa9c3" + +inherit cmake + +PACKAGECONFIG ??= "shared-libs programs" +PACKAGECONFIG[shared-libs] = "-DUSE_SHARED_MBEDTLS_LIBRARY=ON,-USE_SHARED_MBEDTLS_LIBRARY=OFF" +PACKAGECONFIG[programs] = "-DENABLE_PROGRAMS=ON,-DENABLE_PROGRAMS=OFF" + +EXTRA_OECMAKE = "-DENABLE_TESTING=OFF -DLIB_INSTALL_DIR:STRING=${libdir}" + +PROVIDES += "polarssl" +RPROVIDES_${PN} = "polarssl" + +PACKAGES =+ "${PN}-programs" +FILES_${PN}-programs = "${bindir}/" -- cgit 1.2.3-korg