pull Intel packages and driver from the source

This commit is contained in:
Dmitry Shmulevich 2018-09-27 15:03:54 -07:00
Родитель 330367260f
Коммит c924b86e8f
1 изменённых файлов: 11 добавлений и 9 удалений

Просмотреть файл

@ -23,14 +23,14 @@ if [ $? -eq 0 ] ; then
fi
# Setup repositories for clang-7
echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial main" >> /etc/apt/sources.list
echo "deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial main" >> /etc/apt/sources.list
echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main" >> /etc/apt/sources.list
echo "deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main" >> /etc/apt/sources.list
echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main" >> /etc/apt/sources.list
echo "deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main" >> /etc/apt/sources.list
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
# Setup repository for Intel 01.org repo
echo "deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/intel-sgx.list
wget -qO - https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | sudo apt-key add -
# Update pkg repository
retrycmd_if_failure 10 10 120 apt update
if [ $? -ne 0 ]; then
@ -47,7 +47,13 @@ fi
# Install clang-7 packages:
PACKAGES="clang-7 lldb-7 lld-7"
retrycmd_if_failure 10 10 120 apt-get -y install $PACKAGES
if [ $? -ne 0 ]; then
exit 1
fi
# Install Intel packages
PACKAGES="libsgx-enclave-common libsgx-enclave-common-dev libsgx-dcap-ql libsgx-dcap-ql-dev"
retrycmd_if_failure 10 10 120 apt-get -y install $PACKAGES
if [ $? -ne 0 ]; then
exit 1
@ -55,10 +61,6 @@ fi
# Install OE packages
OE_PACKAGES=(
libsgx-enclave-common_2.3.100.46354-1_amd64.deb
libsgx-enclave-common-dev_2.3.100.0-1_amd64.deb
libsgx-dcap-ql_1.0.100.46460-1.0_amd64.deb
libsgx-dcap-ql-dev_1.0.100.46460-1.0_amd64.deb
azquotprov_0.3-1_amd64.deb
open-enclave-0.2.0-Linux.deb
)
@ -74,7 +76,7 @@ systemctl disable aesmd
systemctl stop aesmd
# Install SGX driver
retrycmd_if_failure 10 10 120 curl -fsSL -o sgx_linux_x64_driver_dcap_36594a7.bin "$OE_PKG_BASE/sgx_linux_x64_driver_dcap_36594a7.bin"
retrycmd_if_failure 10 10 120 curl -fsSL -O https://download.01.org/intel-sgx/dcap-1.0/sgx_linux_x64_driver_dcap_36594a7.bin
if [ $? -ne 0 ]; then
exit 1
fi