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
8cbc1076
Unverified
Commit
8cbc1076
authored
Aug 16, 2019
by
a72d9e2bad9edfd58d6c0248c12c953b71d409d2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed build.py
parent
e834bddb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
38 deletions
+17
-38
config.log
config.log
+0
-18
build.py
scripts/build.py
+17
-20
No files found.
config.log
View file @
8cbc1076
...
...
@@ -444,21 +444,3 @@ target_alias=''
#define DEBUG 1
configure: exit 0
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by SGX GMP Test config.status 1.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status Makefile depfiles
on kladko
config.status:815: creating Makefile
config.status:987: executing depfiles commands
scripts/build.py
View file @
8cbc1076
...
...
@@ -74,19 +74,17 @@ if not os.path.isdir(AUTOMAKE_DIR):
subprocess
.
call
([
"git"
,
"submodule"
,
"update"
,
"--init"
])
subprocess
.
call
([
"rm"
,
"-f"
,
"install-sh"
])
subprocess
.
call
([
"rm"
,
"-f"
,
"compile"
])
subprocess
.
call
([
"rm"
,
"-f"
,
"missing"
])
subprocess
.
call
([
"rm"
,
"-f"
,
"depcomp"
])
subprocess
.
call
([
"rm"
,
"-rf"
,
GMP_BUILD_DIR
])
subprocess
.
call
([
"rm"
,
"-rf"
,
TGMP_BUILD_DIR
])
subprocess
.
call
([
"rm"
,
"-rf"
,
SDK_DIR
])
subprocess
.
call
([
"rm"
,
"-f"
,
"install-sh"
]);
subprocess
.
call
([
"rm"
,
"-f"
,
"compile"
]);
subprocess
.
call
([
"rm"
,
"-f"
,
"missing"
]);
subprocess
.
call
([
"rm"
,
"-f"
,
"depcomp"
]);
subprocess
.
call
([
"rm"
,
"-rf"
,
GMP_BUILD_DIR
]);
subprocess
.
call
([
"rm"
,
"-rf"
,
TGMP_BUILD_DIR
]);
subprocess
.
call
([
"rm"
,
"-rf"
,
SDK_DIR
]);
subprocess
.
call
([
"mkdir"
,
"-p"
,
SDK_DIR
]);
subprocess
.
call
([
"ln"
,
"-s"
,
AUTOMAKE_DIR
+
"/install-sh"
,
"install-sh"
])
...
...
@@ -96,7 +94,7 @@ subprocess.call(["ln", "-s", AUTOMAKE_DIR + "/compile", "compile"])
subprocess
.
call
([
"cp"
,
"configure.gmp"
,
GMP_DIR
+
"/configure"
])
subprocess
.
call
([
"scripts/sgx_linux_x64_sdk_2.5.100.49891.bin"
,
"--prefix="
+
SDK_DIR
])
;
subprocess
.
call
([
"scripts/sgx_linux_x64_sdk_2.5.100.49891.bin"
,
"--prefix="
+
SDK_DIR
])
...
...
@@ -104,24 +102,23 @@ os.chdir(GMP_DIR);
assert
subprocess
.
call
([
"bash"
,
"-c"
,
"./configure --prefix="
+
TGMP_BUILD_DIR
+
" --disable-shared "
+
" --enable-static --with-pic --enable-sgx --with-sgxsdk="
+
SDK_DIR
+
"/sgxsdk"
])
==
0
;
" --enable-static --with-pic --enable-sgx --with-sgxsdk="
+
SDK_DIR
+
"/sgxsdk"
])
==
0
assert
subprocess
.
call
([
"make"
,
"install"
])
==
0
;
assert
subprocess
.
call
([
"make"
,
"clean"
])
==
0
;
assert
subprocess
.
call
([
"make"
,
"install"
])
==
0
assert
subprocess
.
call
([
"make"
,
"clean"
])
==
0
assert
subprocess
.
call
([
"bash"
,
"-c"
,
"./configure --prefix="
+
GMP_BUILD_DIR
+
" --disable-shared "
+
" --enable-static --with-pic --with-sgxsdk="
+
SDK_DIR
+
"/sgxsdk"
])
==
0
;
assert
subprocess
.
call
([
"make"
,
"install"
])
==
0
;
assert
subprocess
.
call
([
"make"
,
"clean"
])
==
0
;
" --enable-static --with-pic --with-sgxsdk="
+
SDK_DIR
+
"/sgxsdk"
])
==
0
assert
subprocess
.
call
([
"make"
,
"install"
])
==
0
assert
subprocess
.
call
([
"make"
,
"clean"
])
==
0
os
.
chdir
(
".."
)
assert
subprocess
.
call
([
"cp"
,
"sgx_tgmp.h"
,
TGMP_BUILD_DIR
+
"/include/sgx_tgmp.h"
])
==
0
os
.
chdir
(
".."
)
print
(
"Build successfull."
)
...
...
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