1From 5a5317044b0039e9e19aabcecb7b666a3f13e136 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Thu, 10 Sep 2020 15:08:19 +0800
4Subject: [PATCH] cmake/LibreSSL.cmake: use libressl local source tarball
5
6Do not download libressl source during compile.
7
8Upstream-Status: Inappropriate [embedded specific]
9
10Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
11---
12 cmake/LibreSSL.cmake | 4 +---
13 1 file changed, 1 insertion(+), 3 deletions(-)
14
15diff --git a/cmake/LibreSSL.cmake b/cmake/LibreSSL.cmake
16index 57319e40..bab30129 100644
17--- a/cmake/LibreSSL.cmake
18+++ b/cmake/LibreSSL.cmake
19@@ -43,9 +43,7 @@ function(use_libre_ssl SOURCE_DIR BINARY_DIR)
20
21 	ExternalProject_Add(
22 	libressl-portable
23-	URL https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.8.3.tar.gz https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.8.3.tar.gz https://gentoo.osuosl.org/distfiles/libressl-2.8.3.tar.gz
24-	URL_HASH "SHA256=9b640b13047182761a99ce3e4f000be9687566e0828b4a72709e9e6a3ef98477"
25-	SOURCE_DIR "${BINARY_DIR}/thirdparty/libressl-src"
26+	SOURCE_DIR "${SOURCE_DIR}/thirdparty/libressl-2.8.3"
27 	PATCH_COMMAND ${PATCH}
28 	CMAKE_ARGS ${PASSTHROUGH_CMAKE_ARGS}
29 				"-DCMAKE_INSTALL_PREFIX=${BINARY_DIR}/thirdparty/libressl-install"
30--
312.17.1
32
33