Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
2ea17824
Unverified
Commit
2ea17824
authored
Aug 31, 2020
by
kladko
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'SKALE-3189-fix-build' into bug/SKALE-3170-backup-key
parents
325bb54a
9f571b04
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2398 additions
and
18 deletions
+2398
-18
Makefile.am
Makefile.am
+0
-2
build_deps.py
scripts/build_deps.py
+1
-13
Makefile.am
secure_enclave/Makefile.am
+2
-3
sgx_tgmp.h.fixed
sgx_tgmp.h.fixed
+2395
-0
No files found.
Makefile.am
View file @
2ea17824
...
...
@@ -102,8 +102,6 @@ sgxwallet_LDADD=-l$(SGX_URTS_LIB) -l$(SGX_UAE_SERVICE_LIB) -LlibBLS/deps/deps_in
-l
:libbls.a
-l
:libleveldb.a
\
-l
:libff.a
-lgmp
-ldl
-l
:libsgx_capable.a
-l
:libsgx_tprotected_fs.a
\
-ljsonrpccpp-stub
-ljsonrpccpp-server
-ljsonrpccpp-client
-ljsonrpccpp-common
-ljsoncpp
-lmicrohttpd
\
intel-sgx-ssl/Linux/package/lib64/libsgx_usgxssl.a
\
intel-sgx-ssl/Linux/package/lib64/libsgx_tsgxssl_crypto.a
\
-lboost_system
-lboost_thread
-lgnutls
-lgcrypt
-lcurl
-lssl
-lcrypto
-lz
-lpthread
-lstdc
++fs
...
...
scripts/build_deps.py
View file @
2ea17824
...
...
@@ -33,9 +33,6 @@ print("Top directory is:" + topDir)
makeExecutable
=
subprocess
.
check_output
([
"which"
,
"make"
])
SCRIPTS_DIR
=
topDir
+
"/scripts"
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"
LEVELDB_DIR
=
topDir
+
"/leveldb"
LEVELDB_BUILD_DIR
=
LEVELDB_DIR
+
"/build"
...
...
@@ -105,16 +102,7 @@ assert subprocess.call(["make", "install"]) == 0
assert
subprocess
.
call
([
"make"
,
"clean"
])
==
0
os
.
chdir
(
topDir
)
assert
subprocess
.
call
([
"cp"
,
"sgx_tgmp.h"
,
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
assert
subprocess
.
call
([
"cp"
,
"sgx_tgmp.h.fixed"
,
TGMP_BUILD_DIR
+
"/include/sgx_tgmp.h"
])
==
0
os
.
chdir
(
topDir
)
print
(
"Build successfull."
)
secure_enclave/Makefile.am
View file @
2ea17824
...
...
@@ -62,8 +62,7 @@ ENCLAVE_KEY=test_insecure_private_key.pem #$(ENCLAVE)_private.pem
## Additional Automake flags needed to build the enclave.
AM_CPPFLAGS
+=
-Wall
-Wno-implicit-function-declaration
$(TGMP_CPPFLAGS)
-I
./third_party/SCIPR
-I
../third_party/SCIPR
-I
../sgx-sdk-build/sgxsdk/include/libcxx
\
-I
../intel-sgx-ssl/Linux/package/include
AM_CPPFLAGS
+=
-Wall
-Wno-implicit-function-declaration
$(TGMP_CPPFLAGS)
-I
./third_party/SCIPR
-I
../third_party/SCIPR
-I
../sgx-sdk-build/sgxsdk/include/libcxx
AM_CXXFLAGS
+=
-fno-builtin
-fstack-protector-strong
...
...
@@ -114,7 +113,7 @@ secure_enclave_LDADD = @SGX_ENCLAVE_LDADD@
## --startgroup and --endgroup flags. (This would be where you'd add
## SGXSSL libraries, and your trusted c++ library
SGX_EXTRA_TLIBS
=
-lsgx_tgmp
-lsgx_tservice
-lsgx_urts
-lsgx_tcxx
../intel-sgx-ssl/Linux/package/lib64/libsgx_tsgxssl_crypto.a
SGX_EXTRA_TLIBS
=
-lsgx_tgmp
-lsgx_tservice
-lsgx_urts
-lsgx_tcxx
...
...
sgx_tgmp.h.fixed
0 → 100644
View file @
2ea17824
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment