From nobody Sun Apr 28 14:24:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1516087370816600.4903649555293; Mon, 15 Jan 2018 23:22:50 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 1CB44221F93CD; Mon, 15 Jan 2018 23:17:28 -0800 (PST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C15DF221F93B4 for ; Mon, 15 Jan 2018 23:17:26 -0800 (PST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2018 23:22:45 -0800 Received: from shwdepsi940.ccr.corp.intel.com ([10.239.9.147]) by fmsmga006.fm.intel.com with ESMTP; 15 Jan 2018 23:22:44 -0800 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.88; helo=mga01.intel.com; envelope-from=qin.long@intel.com; receiver=edk2-devel@lists.01.org X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,367,1511856000"; d="scan'208";a="195983904" From: Long Qin To: edk2-devel@lists.01.org Date: Tue, 16 Jan 2018 15:22:25 +0800 Message-Id: <20180116072225.4380-1-qin.long@intel.com> X-Mailer: git-send-email 2.15.1.windows.2 MIME-Version: 1.0 Subject: [edk2] [PATCH] CryptoPkg: Adding OpenSSL as one submodule of EDKII repo X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ting.ye@intel.com, liming.gao@intel.com, Qin Long Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 A submodule allows to keep another Git repository in a subdirectory of main repository. The submodule repository has its own history, which does not interfere with the history of the current repository. This can be used to have external dependencies such as third party libraries. After the extra patch for EDKII-OpenSSL build was removed, OpenSSL can be one typical submodule use case in EDKII project. This patch adds the openssl git repository into EDKII project as one submodule. One .gitmodules file will be generated with the submodule info: [submodule "CryptoPkg/Library/OpensslLib/openssl"] path =3D CryptoPkg/Library/OpensslLib/openssl url =3D https://github.com/openssl/openssl The user can use the following command to clone both main EDKII repo and openssl submodule: 1) Add the "--recursive" flag to their git clone command: $ git clone --recursive https://github.com/tianocore/edk2 or 2) Manually initialize and the submodules after the clone operation: $ git clone https://github.com/tianocore/edk2 $ git submodule update -=E2=80=93init -=E2=80=93recursive For Pull operations, "git pull" will not update the submodule repository. So the following combined commands can be used to pull the remote submodule updates (e.g. Updating to new supported OpenSSL release) $ git pull =E2=80=93-recurse-submodules && \ git submodule update -=E2=80=93recursive --remote Cc: Ye Ting Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qin Long Reviewed-by: Liming Gao --- .gitmodules | 3 +++ CryptoPkg/.gitignore | 1 - CryptoPkg/Library/OpensslLib/OpenSSL-HOWTO.txt | 29 +++++++++++++---------= ---- CryptoPkg/Library/OpensslLib/openssl | 1 + 4 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 .gitmodules delete mode 100644 CryptoPkg/.gitignore create mode 160000 CryptoPkg/Library/OpensslLib/openssl diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000000..e4ae0c1c16 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "CryptoPkg/Library/OpensslLib/openssl"] + path =3D CryptoPkg/Library/OpensslLib/openssl + url =3D https://github.com/openssl/openssl diff --git a/CryptoPkg/.gitignore b/CryptoPkg/.gitignore deleted file mode 100644 index 731c275ae1..0000000000 --- a/CryptoPkg/.gitignore +++ /dev/null @@ -1 +0,0 @@ -Library/OpensslLib/openssl*/ diff --git a/CryptoPkg/Library/OpensslLib/OpenSSL-HOWTO.txt b/CryptoPkg/Lib= rary/OpensslLib/OpenSSL-HOWTO.txt index d152138129..ac63d4c077 100644 --- a/CryptoPkg/Library/OpensslLib/OpenSSL-HOWTO.txt +++ b/CryptoPkg/Library/OpensslLib/OpenSSL-HOWTO.txt @@ -25,21 +25,22 @@ on the cryptography. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D HOW to Install OpenSSL for UEFI Building =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D -1. Clone the latest official OpenSSL release into the directory - CryptoPkg/Library/OpensslLib/openssl/ + OpenSSL repository was added as one submodule of EDKII project. =20 - Use OpenSSL-1.1.0g release as one example: - (OpenSSL_1_1_0g below is the tag name for the OpenSSL-1.1.0g release) - > cd CryptoPkg/Library/OpensslLib - > git clone -b OpenSSL_1_1_0g https://github.com/openssl/openssl open= ssl - or - > git clone https://github.com/openssl/openssl openssl - > git checkout OpenSSL_1_1_0g -Or -2. Download the latest OpenSSL release package from the official website: - https://www.openssl.org/source/ - and unpack the OpenSSL source into: - CryptoPkg/Library/OpensslLib/openssl/ + The user can use the following commands to clone both main EDKII repo and +openssl submodule: + 1) Add the "--recursive" flag to the git clone command: + $ git clone --recursive https://github.com/tianocore/edk2 +or + 2) Manually initialize and update the submodules after the clone operati= on + on main project: + $ git clone https://github.com/tianocore/edk2 + $ git submodule update --init --recursive + + And use the following combined commands to pull the remote submodule upd= ates +(e.g. Updating the new supported OpenSSL release tag): + $ git pull --recurse-submodules && \ + git submodule update --recursive --remote =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D About process_files.pl diff --git a/CryptoPkg/Library/OpensslLib/openssl b/CryptoPkg/Library/Opens= slLib/openssl new file mode 160000 index 0000000000..b2758a2292 --- /dev/null +++ b/CryptoPkg/Library/OpensslLib/openssl @@ -0,0 +1 @@ +Subproject commit b2758a2292aceda93e9f44c219b94fe21bb9a650 --=20 2.15.1.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel