From 5a5317044b0039e9e19aabcecb7b666a3f13e136 Mon Sep 17 00:00:00 2001
From: Yi Zhao <yi.zhao@windriver.com>
Date: Thu, 10 Sep 2020 15:08:19 +0800
Subject: [PATCH] cmake/LibreSSL.cmake: use libressl local source tarball

Do not download libressl source during compile.

Upstream-Status: Inappropriate [embedded specific]

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 cmake/LibreSSL.cmake | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/cmake/LibreSSL.cmake b/cmake/LibreSSL.cmake
index 57319e40..bab30129 100644
--- a/cmake/LibreSSL.cmake
+++ b/cmake/LibreSSL.cmake
@@ -43,9 +43,7 @@ function(use_libre_ssl SOURCE_DIR BINARY_DIR)
 
 	ExternalProject_Add(
 	libressl-portable
-	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
-	URL_HASH "SHA256=9b640b13047182761a99ce3e4f000be9687566e0828b4a72709e9e6a3ef98477"
-	SOURCE_DIR "${BINARY_DIR}/thirdparty/libressl-src"
+	SOURCE_DIR "${SOURCE_DIR}/thirdparty/libressl-2.8.3"
 	PATCH_COMMAND ${PATCH}
 	CMAKE_ARGS ${PASSTHROUGH_CMAKE_ARGS}
 				"-DCMAKE_INSTALL_PREFIX=${BINARY_DIR}/thirdparty/libressl-install"
-- 
2.17.1

