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
39dea5d4
Unverified
Commit
39dea5d4
authored
Aug 12, 2019
by
a72d9e2bad9edfd58d6c0248c12c953b71d409d2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added gmp
parent
b72db24a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
52 deletions
+32
-52
.gitignore
.gitignore
+3
-0
configure
configure
+4
-45
build.py
scripts/build.py
+25
-7
No files found.
.gitignore
View file @
39dea5d4
# Created by .ignore support plugin (hsz.mobi)
# Created by .ignore support plugin (hsz.mobi)
.gitignore
.gitignore
.idea/
.idea/
gmp-build
tgmp-build
install-sh
configure
View file @
39dea5d4
...
@@ -4162,12 +4162,7 @@ fi
...
@@ -4162,12 +4162,7 @@ fi
# Check whether --with-sgxsdk was given.
if
test
"
${
with_sgxsdk
+set
}
"
=
set
;
then
:
withval
=
$with_sgxsdk
;
SGXSDK
=
$withval
else
SGXSDK
=
"detect"
fi
if
test
"x
$sgxsim
"
=
"yes"
;
then
:
if
test
"x
$sgxsim
"
=
"yes"
;
then
:
...
@@ -4259,27 +4254,6 @@ else
...
@@ -4259,27 +4254,6 @@ else
fi
fi
SGX_DEBUG_FLAGS
=
$_sgxdebug
SGX_DEBUG_FLAGS
=
$_sgxdebug
if
test
"x
$SGX_SDK
"
=
"x"
;
then
:
SGXSDK
=
detect
else
SGXSDK
=
env
fi
if
test
"x
$SGXSDK
"
=
"xenv"
;
then
:
SGXSDK
=
$SGX_SDK
elif
test
"x
$SGXSDK
"
!=
"xdetect"
;
then
:
elif
test
-d
/opt/intel/sgxsdk
;
then
:
SGXSDK
=
/opt/intel/sgxsdk
elif
test
-d
~/sgxsdk
;
then
:
SGXSDK
=
~/sgxsdk
elif
test
-d
./sgxsdk
;
then
:
SGXSDK
=
./sgxsdk
else
as_fn_error
$?
"Can't detect your Intel SGX SDK installation directory"
"
$LINENO
"
5
fi
SGXSDK_INCDIR
=
$SGXSDK
/include
SGXSDK_INCDIR
=
$SGXSDK
/include
...
@@ -4384,25 +4358,10 @@ $as_echo "$as_me: enabling SGX... ${ac_cv_enable_sgx}" >&6;}
...
@@ -4384,25 +4358,10 @@ $as_echo "$as_me: enabling SGX... ${ac_cv_enable_sgx}" >&6;}
ac_cv_sgx_init
=
yes
ac_cv_sgx_init
=
yes
gmpdir
=
tgmpdir
=
# Check whether --with-gmpdir was given.
if
test
"
${
with_gmpdir
+set
}
"
=
set
;
then
:
withval
=
$with_gmpdir
;
gmpdir
=
$withval
fi
# Check whether --with-trusted-gmpdir was given.
gmpdir
=
gmp-build
if
test
"
${
with_trusted_gmpdir
+set
}
"
=
set
;
then
:
tgmpdir
=
tgmp-build
withval
=
$with_trusted_gmpdir
;
tgmpdir
=
$withval
SGXSDK
=
sgx-sdk-build/sgxsdk
else
tgmpdir
=
$gmpdir
fi
if
test
"
$gmpdir
"
!=
""
;
then
:
if
test
"
$gmpdir
"
!=
""
;
then
:
...
...
scripts/build.py
View file @
39dea5d4
...
@@ -62,23 +62,39 @@ makeExecutable = subprocess.check_output(["which", "make"])
...
@@ -62,23 +62,39 @@ makeExecutable = subprocess.check_output(["which", "make"])
GMP_DIR
=
"sgx-gmp"
GMP_DIR
=
"sgx-gmp"
GMP_BUILD_DIR
=
"gmp-build"
;
GMP_BUILD_DIR
=
"gmp-build"
TGMP_BUILD_DIR
=
"tgmp-build"
;
TGMP_BUILD_DIR
=
"tgmp-build"
SDK_DIR
=
topDir
+
"/sgx-sdk-build"
;
SDK_DIR
=
topDir
+
"/sgx-sdk-build"
INSTALL_SH
=
"/usr/share/automake-1.16/install-sh"
if
not
os
.
path
.
isfile
(
INSTALL_SH
):
INSTALL_SH
=
"/usr/share/automake-1.15/install-sh"
if
not
os
.
path
.
isfile
(
INSTALL_SH
):
raise
Exception
(
"Could not find "
+
INSTALL_SH
)
subprocess
.
call
([
"rm"
,
"-f"
,
"install-sh"
]);
subprocess
.
call
([
"rm"
,
"-rf"
,
GMP_BUILD_DIR
]);
subprocess
.
call
([
"rm"
,
"-rf"
,
GMP_BUILD_DIR
]);
subprocess
.
call
([
"rm"
,
"-rf"
,
TGMP_BUILD_DIR
]);
subprocess
.
call
([
"rm"
,
"-rf"
,
TGMP_BUILD_DIR
]);
subprocess
.
call
([
"rm"
,
"-rf"
,
SDK_DIR
]);
subprocess
.
call
([
"rm"
,
"-rf"
,
SDK_DIR
]);
subprocess
.
call
([
"scripts/sgx_linux_x64_sdk_2.5.100.49891.bin"
,
"--prefix="
+
topDir
+
"/sgx-sdk-build"
]);
subprocess
.
call
([
"mkdir"
,
"-p"
,
GMP_BUILD_DIR
]);
subprocess
.
call
([
"mkdir"
,
"-p"
,
TGMP_BUILD_DIR
]);
subprocess
.
call
([
"mkdir"
,
"-p"
,
SDK_DIR
]);
subprocess
.
call
([
"ln"
,
"-s"
,
INSTALL_SH
,
"install-sh"
])
subprocess
.
call
([
"scripts/sgx_linux_x64_sdk_2.5.100.49891.bin"
,
"--prefix="
+
topDir
+
"/sgx-sdk-build"
]);
subprocess
.
call
([
"mkdir"
,
"-p"
,
GMP_BUILD_DIR
]);
subprocess
.
call
([
"mkdir"
,
"-p"
,
TGMP_BUILD_DIR
]);
subprocess
.
call
([
"rm"
,
"-rf"
,
SDK_DIR
]);
os
.
chdir
(
GMP_DIR
);
os
.
chdir
(
GMP_DIR
);
subprocess
.
call
([
"./configure"
,
"--prefix="
+
topDir
+
"/"
+
TGMP_BUILD_DIR
,
"--disable-shared"
,
subprocess
.
call
([
"./configure"
,
"--prefix="
+
topDir
+
"/"
+
TGMP_BUILD_DIR
,
"--disable-shared"
,
...
@@ -91,6 +107,8 @@ subprocess.call(["./configure", "--prefix=" + topDir + "/" + GMP_BUILD_DIR, "--d
...
@@ -91,6 +107,8 @@ subprocess.call(["./configure", "--prefix=" + topDir + "/" + GMP_BUILD_DIR, "--d
subprocess
.
call
([
"make"
,
"install"
]);
subprocess
.
call
([
"make"
,
"install"
]);
subprocess
.
call
([
"make"
,
"clean"
]);
subprocess
.
call
([
"make"
,
"clean"
]);
os
.
chdir
(
".."
)
print
(
"Build successfull."
)
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