Unverified Commit 99644dc3 authored by kladko's avatar kladko

SKALE-3189-build-fix

parent d6d31ed5
...@@ -33,9 +33,6 @@ print("Top directory is:" + topDir) ...@@ -33,9 +33,6 @@ print("Top directory is:" + topDir)
makeExecutable = subprocess.check_output(["which", "make"]) makeExecutable = subprocess.check_output(["which", "make"])
SCRIPTS_DIR = topDir + "/scripts" SCRIPTS_DIR = topDir + "/scripts"
GMP_DIR = topDir + "/sgx-gmp" GMP_DIR = topDir + "/sgx-gmp"
SSL_DIR = topDir + "/intel-sgx-ssl"
SSL_SOURCE_DIR = SSL_DIR + "/openssl_source"
SSL_MAKE_DIR = SSL_DIR + "/Linux"
SGX_SDK_DIR_SSL = topDir + "/sgx-sdk-build/sgxsdk" SGX_SDK_DIR_SSL = topDir + "/sgx-sdk-build/sgxsdk"
LEVELDB_DIR = topDir + "/leveldb" LEVELDB_DIR = topDir + "/leveldb"
LEVELDB_BUILD_DIR = LEVELDB_DIR + "/build" LEVELDB_BUILD_DIR = LEVELDB_DIR + "/build"
...@@ -107,14 +104,5 @@ assert subprocess.call(["make", "clean"]) == 0 ...@@ -107,14 +104,5 @@ assert subprocess.call(["make", "clean"]) == 0
os.chdir(topDir) os.chdir(topDir)
assert subprocess.call(["cp", "sgx_tgmp.h.fixed", TGMP_BUILD_DIR + "/include/sgx_tgmp.h"]) == 0 assert subprocess.call(["cp", "sgx_tgmp.h.fixed", TGMP_BUILD_DIR + "/include/sgx_tgmp.h"]) == 0
os.chdir(SSL_DIR)
print("===>>> Downloading vanilla openssl source package")
os.chdir(SSL_SOURCE_DIR)
assert subprocess.call(["wget", "https://www.openssl.org/source/openssl-1.1.1b.tar.gz"]) == 0
print("===>>> Making SSL project")
os.chdir(SSL_MAKE_DIR)
#assert subprocess.call(["make", "SGX_SDK=" + SGX_SDK_DIR_SSL, "all", "test"]) == 0
assert subprocess.call(["make", "SGX_SDK=" + SGX_SDK_DIR_SSL, "all" ]) == 0
os.chdir(topDir) os.chdir(topDir)
print("Build successfull.") print("Build successfull.")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment