Skip to content

Commit

Permalink
#438 move to ubuntu22
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Nov 13, 2024
1 parent b48880a commit 883d7ad
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Below is a sequence of commands that builds SDK and installs it into /opt/intel


```bash
git clone -b sgx_2.13 --depth 1 https://github.com/intel/linux-sgx
git clone -b sgx_2.25 --depth 1 https://github.com/intel/linux-sgx
cd linux-sgx
make preparation
sudo make sdk_install_pkg_no_mitigation
Expand Down
4 changes: 2 additions & 2 deletions docs/enabling-sgx.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ apt-get install build-essential
Run the following command:

```bash
cd scripts; sudo ./sgx_linux_x64_driver_2.11.0_0373e2e.bin; cd ..
cd scripts; sudo ./sgx_linux_x64_driver_2.11.b6f5b4a.bin; cd ..
```

Alternatively, other driver versions may be downloaded from Intel.
Please note that version `2.11.0_0373e2e` is what is currently supported.
Please note that version `2.11.b6f5b4a` is what is currently supported.

Reboot you machine after driver install. Do `ls /dev/isgx` to check that `isgx` device is properly installed.
If you do not see the `isgx` device, you need to troubleshoot your driver installation.
Expand Down
4 changes: 2 additions & 2 deletions scripts/build_deps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3

# ------------------------------------------------------------------------------
# Copyright (C) 2018-Present SKALE Labs
Expand Down Expand Up @@ -94,7 +94,7 @@
print("Install Linux SDK");

os.chdir(SCRIPTS_DIR)
assert subprocess.call(["bash", "-c", "./sgx_linux_x64_sdk_2.19.100.3.bin --prefix=" + topDir + "/sgx-sdk-build"]) == 0
assert subprocess.call(["bash", "-c", "./sgx_linux_x64_sdk_2.25.100.3.bin --prefix=" + topDir + "/sgx-sdk-build"]) == 0

print("Make GMP");

Expand Down
27 changes: 24 additions & 3 deletions scripts/install_packages.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
#!/bin/bash
sudo apt update
sudo apt install -y build-essential make gcc g++ yasm python flex bison automake
sudo apt install -y ccache cmake ccache autoconf texinfo libgcrypt20-dev libgnutls28-dev libtool pkg-config glibc-tools
sudo apt install -y ocaml ocamlbuild
sudo apt install -y build-essential \
ocaml \
ocamlbuild \
automake \
autoconf \
libtool \
wget \
python-is-python3 \
libssl-dev \
git \
cmake \
perl \
libcurl4-openssl-dev \
protobuf-compiler \
libprotobuf-dev \
debhelper \
reprepro \
unzip \
pkgconf \
libboost-dev \
libboost-system-dev \
libboost-thread-dev \
lsb-release \
libsystemd0
Binary file added scripts/sgx_linux_x64_driver_2.11.b6f5b4a.bin
Binary file not shown.
Binary file added scripts/sgx_linux_x64_sdk_2.25.100.3.bin
Binary file not shown.

0 comments on commit 883d7ad

Please sign in to comment.