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
fd4f3dd3
Unverified
Commit
fd4f3dd3
authored
Dec 17, 2019
by
Sergiy Lavrynenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-1850 build improvements
parent
22fb70bc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
17 deletions
+9
-17
Makefile.am
Makefile.am
+2
-2
README.md
README.md
+1
-11
Makefile.am
secure_enclave/Makefile.am
+2
-2
Makefile.in
secure_enclave/Makefile.in
+4
-2
No files found.
Makefile.am
View file @
fd4f3dd3
...
...
@@ -46,7 +46,7 @@ secure_enclave.edl: secure_enclave/secure_enclave.edl
#AM_CFLAGS = -g -Og
#AM_CXXFLAGS = ${AM_CPPFLAGS}
AM_CPPFLAGS
+=
-Wall
-DSKALE_SGX
=
1
-DBINARY_OUTPUT
=
1
-Ileveldb
/include
-IlibBLS
/bls
-IlibBLS
/libff
-IlibBLS
-fno-builtin-memset
$(GMP_CPPFLAGS)
-I
.
AM_CPPFLAGS
+=
-Wall
-DSKALE_SGX
=
1
-DBINARY_OUTPUT
=
1
-Ileveldb
/include
-IlibBLS
/bls
-IlibBLS
/libff
-IlibBLS
-fno-builtin-memset
$(GMP_CPPFLAGS)
-I
.
-I
./libBLS/deps/deps_inst/x86_or_x64/include
## Additional targets to remove with 'make clean'. You must list
## any edger8r generated files here.
...
...
@@ -74,7 +74,7 @@ nodist_sgxwallet_SOURCES = $(COMMON_ENCLAVE_SRC)
EXTRA_sgxwallet_DEPENDENCIES
=
secure_enclave.signed.so
BUILT_SOURCES
=
$(COMMON_ENCLAVE_SRC)
AM_LDFLAGS
+=
$(GMP_LDFLAGS)
AM_LDFLAGS
+=
$(GMP_LDFLAGS)
-L
./libBLS/deps/deps_inst/x86_or_x64/lib
secure_enclave.signed.so
:
secure_enclave/secure_enclave.signed.so
ln
-s
$?
...
...
README.md
View file @
fd4f3dd3
...
...
@@ -62,7 +62,7 @@ Dependencies only need to be built once.
cd scripts; ./build.py; cd ..
```
## Configure
## Configure
and build
Co to the project's top directory, then run
...
...
@@ -73,16 +73,6 @@ autoheader
automake --force-missing --add-missing
autoconf
./configure
```
## Build
Go to project's top directory and run
```
#export CFLAGS=-I`readlink -f ./libBLS/deps/deps_inst/x86_or_x64/include`
#export CXXFLAGS=-I`readlink -f ./libBLS/deps/deps_inst/x86_or_x64/include`
#export LDFLAGS=-L`readlink -f ./libBLS/deps/deps_inst/x86_or_x64/lib`
make
```
...
...
secure_enclave/Makefile.am
View file @
fd4f3dd3
...
...
@@ -63,7 +63,7 @@ ENCLAVE_KEY=$(ENCLAVE)_private.pem
## Additional Automake flags needed to build the enclave.
##
AM_CPPFLAGS
+=
-Wall
-Wno-implicit-function-declaration
$(TGMP_CPPFLAGS)
-I
./trusted_libff
-I
../sgx-sdk-build/sgxsdk/include/libcxx
\
AM_CPPFLAGS
+=
-Wall
-Wno-implicit-function-declaration
$(TGMP_CPPFLAGS)
-I
./trusted_libff
-I
../trusted_libff
-I
../sgx-sdk-build/sgxsdk/include/libcxx
\
-I
../intel-sgx-ssl/Linux/package/include
AM_CXXFLAGS
+=
-fno-builtin
...
...
@@ -97,7 +97,7 @@ secure_enclave_SOURCES = secure_enclave_t.c secure_enclave_t.h \
## Be sure to use += to add to, and not replace, the default
## AM_LDFLAGS.
AM_LDFLAGS
+=
$(TGMP_LDFLAGS)
AM_LDFLAGS
+=
$(TGMP_LDFLAGS)
-L
./tgmp-build/lib
-L
../tgmp-build/lib
## This line is REQUIRED. It can't be generically defined for
...
...
secure_enclave/Makefile.in
View file @
fd4f3dd3
...
...
@@ -322,10 +322,12 @@ SGXSSL_BINDIR = @SGXSSL_BINDIR@
AM_CFLAGS
=
@SGX_ENCLAVE_CFLAGS@
AM_CPPFLAGS
=
@SGX_ENCLAVE_CPPFLAGS@
-Wall
\
-Wno-implicit-function-declaration
$(TGMP_CPPFLAGS)
\
-I
./trusted_libff
-I
../sgx-sdk-build/sgxsdk/include/libcxx
\
-I
./trusted_libff
-I
../trusted_libff
\
-I
../sgx-sdk-build/sgxsdk/include/libcxx
\
-I
../intel-sgx-ssl/Linux/package/include
AM_CXXFLAGS
=
@SGX_ENCLAVE_CXXFLAGS@ @SGX_ENCLAVE_CFLAGS@
-fno-builtin
AM_LDFLAGS
=
@SGX_ENCLAVE_LDFLAGS@
$(TGMP_LDFLAGS)
AM_LDFLAGS
=
@SGX_ENCLAVE_LDFLAGS@
$(TGMP_LDFLAGS)
-L
./tgmp-build/lib
\
-L
../tgmp-build/lib
CLEANFILES
=
$(ENCLAVE)
.signed.so secure_enclave_t.c
\
secure_enclave_t.h
@ENCLAVE_RELEASE_SIGN_TRUE@
nodist_signed_enclave_rel_SOURCES
=
signed_enclave_rel.c
...
...
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