From 9f1b8bfb69b7c8ab92347ee0a3b9af85dfd5b947 Mon Sep 17 00:00:00 2001 From: Stan Kladko <13399135+kladkogex@users.noreply.github.com> Date: Fri, 5 Aug 2022 17:17:40 +0100 Subject: [PATCH 1/4] Update prerequisites.md --- docs/prerequisites.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/prerequisites.md b/docs/prerequisites.md index dd2a304b..ac7fd88b 100644 --- a/docs/prerequisites.md +++ b/docs/prerequisites.md @@ -60,7 +60,7 @@ curl -I http://whitelist.trustedservices.intel.com/SGX/LCWL/Linux/sgx_white_lis Install cpuid and libelf-dev packages: ```bash -sudo apt-get install -y libelf-dev cpuid +sudo apt-get install -y libelf-dev cpuid ocamlbuild ``` Verify processor support of Intel SGX: From 15db6d7ac150321438bb414ca83da1daeb7699d7 Mon Sep 17 00:00:00 2001 From: Stan Kladko <13399135+kladkogex@users.noreply.github.com> Date: Fri, 5 Aug 2022 17:20:46 +0100 Subject: [PATCH 2/4] Update prerequisites.md --- docs/prerequisites.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/prerequisites.md b/docs/prerequisites.md index ac7fd88b..dd2a304b 100644 --- a/docs/prerequisites.md +++ b/docs/prerequisites.md @@ -60,7 +60,7 @@ curl -I http://whitelist.trustedservices.intel.com/SGX/LCWL/Linux/sgx_white_lis Install cpuid and libelf-dev packages: ```bash -sudo apt-get install -y libelf-dev cpuid ocamlbuild +sudo apt-get install -y libelf-dev cpuid ``` Verify processor support of Intel SGX: From a2bb7923c814097411b6dc927c83c798dd83f508 Mon Sep 17 00:00:00 2001 From: Stan Kladko <13399135+kladkogex@users.noreply.github.com> Date: Fri, 5 Aug 2022 17:22:06 +0100 Subject: [PATCH 3/4] Update building.md --- docs/building.md | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/docs/building.md b/docs/building.md index e2549ed0..59ce3249 100644 --- a/docs/building.md +++ b/docs/building.md @@ -2,7 +2,20 @@ # Building SGX wallet from source -## Build and install Intel SGX SDK +# + +## Clone this repository and its submodules + +`git clone --recurse-submodules https://github.com/skalenetwork/sgxwallet.git` + +## Install required debian packages + +```bash +cd scripts; sudo ./install_packages.sh; cd .. +``` + + +# Build and install Intel SGX SDK We are currently using SGX SDK version 2.13. @@ -21,16 +34,6 @@ sudo cp /linux-sgx/linux/installer/bin/sgx_linux_x64_psw*.bin . sudo ./sgx_linux_x64_psw*.bin --no-start-aesm ``` -## Clone this repository and its submodules - -`git clone --recurse-submodules https://github.com/skalenetwork/sgxwallet.git` - -## Install required debian packages - -```bash -cd scripts; sudo ./install_packages.sh; cd .. -``` - ## Build dependencies Dependencies only need to be built once. From 89b700ef79ba77e8574be9ed47e38683a880334d Mon Sep 17 00:00:00 2001 From: Stan Kladko <13399135+kladkogex@users.noreply.github.com> Date: Fri, 5 Aug 2022 17:28:59 +0100 Subject: [PATCH 4/4] Update building.md --- docs/building.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/building.md b/docs/building.md index 59ce3249..d5bd3cf3 100644 --- a/docs/building.md +++ b/docs/building.md @@ -28,7 +28,7 @@ cd linux-sgx make preparation sudo make sdk_install_pkg_no_mitigation cd /opt/intel -sudo sh -c 'echo yes | /linux-sgx/linux/installer/bin/sgx_linux_x64_sdk_*.bin +sudo sh -c 'echo yes | /linux-sgx/linux/installer/bin/sgx_linux_x64_sdk_*.bin' sudo make psw_install_pkg sudo cp /linux-sgx/linux/installer/bin/sgx_linux_x64_psw*.bin . sudo ./sgx_linux_x64_psw*.bin --no-start-aesm