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
388c88e5
Unverified
Commit
388c88e5
authored
Aug 12, 2019
by
a72d9e2bad9edfd58d6c0248c12c953b71d409d2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added gmp
parent
39dea5d4
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
47 additions
and
38 deletions
+47
-38
Makefile
EnclaveGmpTest/Makefile
+9
-9
Makefile
Makefile
+9
-9
compile
compile
+1
-1
configure
configure
+10
-10
depcomp
depcomp
+1
-1
install-sh
install-sh
+1
-1
missing
missing
+1
-1
build.py
scripts/build.py
+15
-6
No files found.
EnclaveGmpTest/Makefile
View file @
388c88e5
...
...
@@ -183,7 +183,7 @@ AM_DEFAULT_VERBOSITY = 1
AUTOCONF
=
${
SHELL
}
/d/sgxd/missing autoconf
AUTOHEADER
=
${
SHELL
}
/d/sgxd/missing autoheader
AUTOMAKE
=
${
SHELL
}
/d/sgxd/missing automake-1.15
AWK
=
m
awk
AWK
=
g
awk
CC
=
gcc
CCDEPMODE
=
depmode
=
gcc3
CFLAGS
=
-g
-O2
...
...
@@ -200,8 +200,8 @@ ECHO_N = -n
ECHO_T
=
ENCLAVE_SIGN_TARGET
=
signed_enclave_dev
EXEEXT
=
.so
GMP_CPPFLAGS
=
-I
/d/gmp-build/
/include
GMP_LDFLAGS
=
-L
/d/gmp-build/
/lib
GMP_CPPFLAGS
=
-I
gmp-build
/include
GMP_LDFLAGS
=
-L
gmp-build
/lib
INSTALL
=
/usr/bin/install
-c
INSTALL_DATA
=
${
INSTALL
}
-m
644
INSTALL_PROGRAM
=
${
INSTALL
}
...
...
@@ -224,10 +224,10 @@ PACKAGE_URL =
PACKAGE_VERSION
=
1.0
PATH_SEPARATOR
=
:
SET_MAKE
=
SGXSDK
=
/opt/intel
/sgxsdk
SGXSDK_BINDIR
=
/opt/intel
/sgxsdk/bin/x64
SGXSDK_INCDIR
=
/opt/intel
/sgxsdk/include
SGXSDK_LIBDIR
=
/opt/intel
/sgxsdk/lib64
SGXSDK
=
sgx-sdk-build
/sgxsdk
SGXSDK_BINDIR
=
sgx-sdk-build
/sgxsdk/bin/x64
SGXSDK_INCDIR
=
sgx-sdk-build
/sgxsdk/include
SGXSDK_LIBDIR
=
sgx-sdk-build
/sgxsdk/lib64
SGXSSL
=
/opt/intel/sgxssl
SGXSSL_INCDIR
=
/opt/intel/sgxssl/include
SGXSSL_LIBDIR
=
/opt/intel/sgxssl/lib64
...
...
@@ -246,8 +246,8 @@ SGX_UAE_SERVICE_LIB = sgx_uae_service
SGX_URTS_LIB
=
sgx_urts
SHELL
=
/bin/bash
STRIP
=
TGMP_CPPFLAGS
=
-I
/opt/gmp/6.1.2
/include
TGMP_LDFLAGS
=
-L
/opt/gmp/6.1.2
/lib
TGMP_CPPFLAGS
=
-I
tgmp-build
/include
TGMP_LDFLAGS
=
-L
tgmp-build
/lib
VERSION
=
1.0
abs_builddir
=
/d/sgxd/EnclaveGmpTest
abs_srcdir
=
/d/sgxd/EnclaveGmpTest
...
...
Makefile
View file @
388c88e5
...
...
@@ -259,7 +259,7 @@ AM_DEFAULT_VERBOSITY = 1
AUTOCONF
=
${
SHELL
}
/d/sgxd/missing autoconf
AUTOHEADER
=
${
SHELL
}
/d/sgxd/missing autoheader
AUTOMAKE
=
${
SHELL
}
/d/sgxd/missing automake-1.15
AWK
=
m
awk
AWK
=
g
awk
CC
=
gcc
CCDEPMODE
=
depmode
=
gcc3
CFLAGS
=
-g
-O2
...
...
@@ -276,8 +276,8 @@ ECHO_N = -n
ECHO_T
=
ENCLAVE_SIGN_TARGET
=
signed_enclave_dev
EXEEXT
=
GMP_CPPFLAGS
=
-I
/d/gmp-build/
/include
GMP_LDFLAGS
=
-L
/d/gmp-build/
/lib
GMP_CPPFLAGS
=
-I
gmp-build
/include
GMP_LDFLAGS
=
-L
gmp-build
/lib
INSTALL
=
/usr/bin/install
-c
INSTALL_DATA
=
${
INSTALL
}
-m
644
INSTALL_PROGRAM
=
${
INSTALL
}
...
...
@@ -300,10 +300,10 @@ PACKAGE_URL =
PACKAGE_VERSION
=
1.0
PATH_SEPARATOR
=
:
SET_MAKE
=
SGXSDK
=
/opt/intel
/sgxsdk
SGXSDK_BINDIR
=
/opt/intel
/sgxsdk/bin/x64
SGXSDK_INCDIR
=
/opt/intel
/sgxsdk/include
SGXSDK_LIBDIR
=
/opt/intel
/sgxsdk/lib64
SGXSDK
=
sgx-sdk-build
/sgxsdk
SGXSDK_BINDIR
=
sgx-sdk-build
/sgxsdk/bin/x64
SGXSDK_INCDIR
=
sgx-sdk-build
/sgxsdk/include
SGXSDK_LIBDIR
=
sgx-sdk-build
/sgxsdk/lib64
SGXSSL
=
/opt/intel/sgxssl
SGXSSL_INCDIR
=
/opt/intel/sgxssl/include
SGXSSL_LIBDIR
=
/opt/intel/sgxssl/lib64
...
...
@@ -322,8 +322,8 @@ SGX_UAE_SERVICE_LIB = sgx_uae_service
SGX_URTS_LIB
=
sgx_urts
SHELL
=
/bin/bash
STRIP
=
TGMP_CPPFLAGS
=
-I
/opt/gmp/6.1.2
/include
TGMP_LDFLAGS
=
-L
/opt/gmp/6.1.2
/lib
TGMP_CPPFLAGS
=
-I
tgmp-build
/include
TGMP_LDFLAGS
=
-L
tgmp-build
/lib
VERSION
=
1.0
abs_builddir
=
/d/sgxd
abs_srcdir
=
/d/sgxd
...
...
compile
View file @
388c88e5
/usr/share/automake-1.15/compile
\ No newline at end of file
/usr/share/automake-1.16/compile
\ No newline at end of file
configure
View file @
388c88e5
...
...
@@ -4252,6 +4252,11 @@ else
as_fn_error
$?
"Unknown build mode
$_sgxbuild
"
"
$LINENO
"
5
fi
SGXSDK
=
sgx-sdk-build/sgxsdk
SGX_DEBUG_FLAGS
=
$_sgxdebug
SGXSDK_INCDIR
=
$SGXSDK
/include
...
...
@@ -4260,13 +4265,10 @@ fi
ac_cv_sgx_sdk
=
$SGXSDK
ac_cv_sgx_sdk_incdir
=
$SGXSDK
/include
if
test
-d
$SGXSDK
/lib
;
then
:
SGXSDK_LIBDIR
=
$SGXSDK
/lib
ac_cv_sgx_sdk_libdir
=
$SGXSDK
/lib
el
if
test
-d
$SGXSDK
/lib64
;
then
:
if
test
-d
$SGXSDK
/lib64
;
then
:
SGXSDK_LIBDIR
=
$SGXSDK
/lib64
...
...
@@ -4274,17 +4276,15 @@ elif test -d $SGXSDK/lib64; then :
else
as_fn_error
$?
"Can't find Intel SGX SDK lib directory"
"
$LINENO
"
5
as_fn_error
$?
"Can't find Intel SGX SDK lib directory
$SGXSDK
"
"
$LINENO
"
5
fi
if
test
-d
$SGXSDK
/bin/ia32
;
then
:
ac_cv_sgx_sdk_bindir
=
$SGXSDK
/bin
SGXSDK_BINDIR
=
$SGXSDK
/bin/ia32
elif
test
-d
$SGXSDK
/bin/x64
;
then
:
if
test
-d
$SGXSDK
/bin/x64
;
then
:
ac_cv_sgx_sdk_bindir
=
$SGXSDK
/bin/x64
SGXSDK_BINDIR
=
$SGXSDK
/bin/x64
...
...
@@ -4292,7 +4292,7 @@ elif test -d $SGXSDK/bin/x64; then :
else
as_fn_error
$?
"Can't find Intel SGX SDK bin directory"
"
$LINENO
"
5
as_fn_error
$?
"Can't find Intel SGX SDK bin directory
in
$SGXSDK
"
"
$LINENO
"
5
fi
...
...
depcomp
View file @
388c88e5
/usr/share/automake-1.15/depcomp
\ No newline at end of file
/usr/share/automake-1.16/depcomp
\ No newline at end of file
install-sh
View file @
388c88e5
/usr/share/automake-1.15/install-sh
\ No newline at end of file
/usr/share/automake-1.16/install-sh
\ No newline at end of file
missing
View file @
388c88e5
/usr/share/automake-1.15/missing
\ No newline at end of file
/usr/share/automake-1.16/missing
\ No newline at end of file
scripts/build.py
View file @
388c88e5
...
...
@@ -66,14 +66,14 @@ GMP_BUILD_DIR = "gmp-build"
TGMP_BUILD_DIR
=
"tgmp-build"
SDK_DIR
=
topDir
+
"/sgx-sdk-build"
INSTALL_SH
=
"/usr/share/automake-1.16/install-sh
"
AUTOMAKE_DIR
=
"/usr/share/automake-1.16
"
if
not
os
.
path
.
is
file
(
INSTALL_SH
):
INSTALL_SH
=
"/usr/share/automake-1.15
/install-sh
"
if
not
os
.
path
.
is
file
(
INSTALL_SH
):
raise
Exception
(
"Could not find "
+
INSTALL_SH
)
if
not
os
.
path
.
is
dir
(
AUTOMAKE_DIR
):
INSTALL_SH
=
"/usr/share/automake-1.15"
if
not
os
.
path
.
is
dir
(
AUTOMAKE_DIR
):
raise
Exception
(
"Could not find "
+
AUTOMAKE_DIR
)
...
...
@@ -82,6 +82,10 @@ if not os.path.isfile(INSTALL_SH):
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
]);
...
...
@@ -92,7 +96,12 @@ subprocess.call(["mkdir", "-p", TGMP_BUILD_DIR]);
subprocess
.
call
([
"mkdir"
,
"-p"
,
SDK_DIR
]);
subprocess
.
call
([
"ln"
,
"-s"
,
INSTALL_SH
,
"install-sh"
])
subprocess
.
call
([
"ln"
,
"-s"
,
AUTOMAKE_DIR
+
"/install-sh"
,
"install-sh"
])
subprocess
.
call
([
"ln"
,
"-s"
,
AUTOMAKE_DIR
+
"/depcomp"
,
"depcomp"
])
subprocess
.
call
([
"ln"
,
"-s"
,
AUTOMAKE_DIR
+
"/missing"
,
"missing"
])
subprocess
.
call
([
"ln"
,
"-s"
,
AUTOMAKE_DIR
+
"/compile"
,
"compile"
])
subprocess
.
call
([
"scripts/sgx_linux_x64_sdk_2.5.100.49891.bin"
,
"--prefix="
+
topDir
+
"/sgx-sdk-build"
]);
...
...
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