diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2020-09-28 08:41:42 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-27 17:41:42 -0700 |
| commit | dcc7ddcd5c79efc3b2386ac9abdafa83219eb773 (patch) | |
| tree | 849ca2cd124528e8784497fbcee418a4f4daacc2 /ports/mbedtls | |
| parent | 7a05bde0a6872709333cfdff71ff6eedb0f89963 (diff) | |
| download | vcpkg-dcc7ddcd5c79efc3b2386ac9abdafa83219eb773.tar.gz vcpkg-dcc7ddcd5c79efc3b2386ac9abdafa83219eb773.zip | |
[mbedtls/nana] Update to the latest version (#13672)
* [mbedtls/nana] Update to the latest version
* [nana] Remove unused patch and update patch EOF
Diffstat (limited to 'ports/mbedtls')
| -rw-r--r-- | ports/mbedtls/CONTROL | 2 | ||||
| -rwxr-xr-x | ports/mbedtls/enable-pthread.patch | 40 | ||||
| -rw-r--r-- | ports/mbedtls/portfile.cmake | 12 |
3 files changed, 29 insertions, 25 deletions
diff --git a/ports/mbedtls/CONTROL b/ports/mbedtls/CONTROL index 5ae5bf26b..ebc740ec9 100644 --- a/ports/mbedtls/CONTROL +++ b/ports/mbedtls/CONTROL @@ -1,5 +1,5 @@ Source: mbedtls -Version: 2.16.3-1 +Version: 2.24.0 Homepage: https://github.com/ARMmbed/mbedtls Description: An open source, portable, easy to use, readable and flexible SSL library diff --git a/ports/mbedtls/enable-pthread.patch b/ports/mbedtls/enable-pthread.patch index 9a45e50bd..635310376 100755 --- a/ports/mbedtls/enable-pthread.patch +++ b/ports/mbedtls/enable-pthread.patch @@ -1,8 +1,8 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt -index 5f7d0d886..d65cfeb2b 100644 +index 8833246..f68ab02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -7,6 +7,7 @@ endif() +@@ -28,6 +28,7 @@ set(MBEDTLS_DIR ${CMAKE_CURRENT_SOURCE_DIR}) option(USE_PKCS11_HELPER_LIBRARY "Build mbed TLS with the pkcs11-helper library." OFF) option(ENABLE_ZLIB_SUPPORT "Build mbed TLS with zlib library." OFF) @@ -10,15 +10,16 @@ index 5f7d0d886..d65cfeb2b 100644 option(ENABLE_PROGRAMS "Build mbed TLS programs." ON) -@@ -174,6 +175,7 @@ else() +@@ -231,6 +232,8 @@ else() + set(LIB_INSTALL_DIR lib) endif() - include_directories(include/) +include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/) - ++ if(ENABLE_ZLIB_SUPPORT) find_package(ZLIB) -@@ -183,6 +185,17 @@ if(ENABLE_ZLIB_SUPPORT) + +@@ -239,6 +242,17 @@ if(ENABLE_ZLIB_SUPPORT) endif(ZLIB_FOUND) endif(ENABLE_ZLIB_SUPPORT) @@ -33,14 +34,14 @@ index 5f7d0d886..d65cfeb2b 100644 + set(LINK_WITH_PTHREAD ON) +endif() + - add_subdirectory(library) add_subdirectory(include) + add_subdirectory(3rdparty) diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt -index c2f2bd4e6..e110cd50c 100644 +index 62c0f62..7923202 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt -@@ -1,9 +1,13 @@ +@@ -1,10 +1,14 @@ option(INSTALL_MBEDTLS_HEADERS "Install mbed TLS headers." ON) +configure_file(mbedtls/config_threading.h.in mbedtls/config_threading.h) @@ -48,18 +49,20 @@ index c2f2bd4e6..e110cd50c 100644 if(INSTALL_MBEDTLS_HEADERS) file(GLOB headers "mbedtls/*.h") - + file(GLOB psa_headers "psa/*.h") +- ++ + set(headers ${headers} ${CMAKE_CURRENT_BINARY_DIR}/mbedtls/config_threading.h) -+ ++ install(FILES ${headers} DESTINATION include/mbedtls PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) diff --git a/include/mbedtls/config.h b/include/mbedtls/config.h -index 5df962ef6..f205bf599 100644 +index 1e6e052..51c20da 100644 --- a/include/mbedtls/config.h +++ b/include/mbedtls/config.h -@@ -26,6 +26,8 @@ - * This file is part of mbed TLS (https://tls.mbed.org) +@@ -24,6 +24,8 @@ + * limitations under the License. */ +#include "mbedtls/config_threading.h" @@ -69,7 +72,7 @@ index 5df962ef6..f205bf599 100644 diff --git a/include/mbedtls/config_threading.h.in b/include/mbedtls/config_threading.h.in new file mode 100644 -index 000000000..f6286ed9c +index 0000000..9d5d42e --- /dev/null +++ b/include/mbedtls/config_threading.h.in @@ -0,0 +1,6 @@ @@ -79,11 +82,12 @@ index 000000000..f6286ed9c +#define MBEDTLS_THREADING_C +#define MBEDTLS_THREADING_PTHREAD +#endif +\ No newline at end of file diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt -index 9330cff9b..54a815ee7 100644 +index 33e2cfc..4b99331 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt -@@ -128,7 +128,11 @@ if(ENABLE_ZLIB_SUPPORT) +@@ -137,7 +137,11 @@ if(ENABLE_ZLIB_SUPPORT) endif(ENABLE_ZLIB_SUPPORT) if(LINK_WITH_PTHREAD) @@ -95,4 +99,4 @@ index 9330cff9b..54a815ee7 100644 + endif() endif() - if (NOT USE_STATIC_MBEDTLS_LIBRARY AND NOT USE_SHARED_MBEDTLS_LIBRARY) + if(LINK_WITH_TRUSTED_STORAGE) diff --git a/ports/mbedtls/portfile.cmake b/ports/mbedtls/portfile.cmake index 4735a6adb..431e047cd 100644 --- a/ports/mbedtls/portfile.cmake +++ b/ports/mbedtls/portfile.cmake @@ -3,8 +3,8 @@ set(VCPKG_LIBRARY_LINKAGE static) vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO ARMmbed/mbedtls - REF mbedtls-2.16.3 - SHA512 3d798f7de9c33325585d5d7c8608cc16acdcf42c246d283b2fb8a29f5e419f2899342965ff297432ef2ab20c91eaee28d6ca53349f5a68b0a4fd29d6905fc64c + REF 523f0554b6cdc7ace5d360885c3f5bbcc73ec0e8 # mbedtls-2.24.0 + SHA512 1ce78f34e8d87c2ce0454e0a08f4c6e5b3129d4b24cfa44162af21c2e8b5dc7feabf849e4fa547ce3781b5ce11aaf675cfed47412bae40091fbdd87bbcdbee07 HEAD_REF master PATCHES enable-pthread.patch @@ -13,7 +13,7 @@ vcpkg_from_github( vcpkg_check_features( OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES - pthreads ENABLE_PTHREAD + pthreads ENABLE_PTHREAD ) vcpkg_configure_cmake( @@ -29,10 +29,10 @@ vcpkg_install_cmake() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) -file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/mbedtls RENAME copyright) +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) if(WIN32 AND pthreads IN_LIST FEATURES) - file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/mbedtls) + file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) endif() -vcpkg_copy_pdbs() +vcpkg_copy_pdbs()
\ No newline at end of file |
