Skip to content

Commit eacb25e

Browse files
committed
remove rust-sgx-sdk dir
Signed-off-by: Jun Kimura <[email protected]>
1 parent 0119e31 commit eacb25e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+6
-5719
lines changed

ImportRustSGXSDK.mk

-22
This file was deleted.

Makefile

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
######## Import SGX SDK ########
2-
include ImportRustSGXSDK.mk
3-
41
######## SGX SDK Settings ########
52
SGX_SDK ?= /opt/sgxsdk
63
SGX_MODE ?= HW
@@ -9,7 +6,7 @@ SGX_DEBUG ?= 0
96
SGX_PRERELEASE ?= 0
107
SGX_PRODUCTION ?= 0
118

12-
include rust-sgx-sdk/buildenv.mk
9+
include buildenv.mk
1310

1411
ifeq ($(shell getconf LONG_BIT), 32)
1512
SGX_ARCH := x86
@@ -73,8 +70,6 @@ endif
7370

7471
CUSTOM_LIBRARY_PATH := ./lib
7572
CUSTOM_BIN_PATH := ./bin
76-
CUSTOM_EDL_PATH := ./rust-sgx-sdk/edl
77-
CUSTOM_COMMON_PATH := ./rust-sgx-sdk/common
7873

7974
######## EDL Settings ########
8075

@@ -84,7 +79,7 @@ Enclave_EDL_Files := enclave/Enclave_t.c enclave/Enclave_t.h app/Enclave_u.c app
8479

8580
App_Rust_Flags := $(CARGO_TARGET) $(APP_CARGO_FEATURES)
8681
App_SRC_Files := $(shell find app/ -type f -name '*.rs') $(shell find app/ -type f -name 'Cargo.toml')
87-
App_Include_Paths := -I ./app -I./include -I$(SGX_SDK)/include -I$(CUSTOM_EDL_PATH)
82+
App_Include_Paths := -I ./app -I./include -I$(SGX_SDK)/include
8883
App_C_Flags := $(SGX_COMMON_CFLAGS) -fPIC -Wno-attributes $(App_Include_Paths)
8984

9085
App_Rust_Path := ./target/$(OUTPUT_PATH)
@@ -108,7 +103,7 @@ ProtectedFs_Library_Name := sgx_tprotected_fs
108103

109104
RustEnclave_C_Files := $(wildcard ./enclave/*.c)
110105
RustEnclave_C_Objects := $(RustEnclave_C_Files:.c=.o)
111-
RustEnclave_Include_Paths := -I$(CUSTOM_COMMON_PATH)/inc -I$(CUSTOM_EDL_PATH) -I$(SGX_SDK)/include -I$(SGX_SDK)/include/tlibc -I$(SGX_SDK)/include/stlport -I$(SGX_SDK)/include/epid -I ./enclave -I./include
106+
RustEnclave_Include_Paths := -I$(SGX_SDK)/include -I$(SGX_SDK)/include/tlibc -I$(SGX_SDK)/include/stlport -I$(SGX_SDK)/include/epid -I ./enclave -I./include
112107

113108
RustEnclave_Link_Libs := -L$(CUSTOM_LIBRARY_PATH) -lenclave
114109
RustEnclave_Compile_Flags := $(SGX_COMMON_CFLAGS) $(ENCLAVE_CFLAGS) $(RustEnclave_Include_Paths)
@@ -142,8 +137,8 @@ clean:
142137
######## EDL Objects ########
143138

144139
$(Enclave_EDL_Files): $(SGX_EDGER8R) enclave/Enclave.edl
145-
$(SGX_EDGER8R) --trusted enclave/Enclave.edl --search-path $(SGX_SDK)/include --search-path $(CUSTOM_EDL_PATH) --trusted-dir enclave
146-
$(SGX_EDGER8R) --untrusted enclave/Enclave.edl --search-path $(SGX_SDK)/include --search-path $(CUSTOM_EDL_PATH) --untrusted-dir app
140+
$(SGX_EDGER8R) --trusted enclave/Enclave.edl --search-path $(SGX_SDK)/include --trusted-dir enclave
141+
$(SGX_EDGER8R) --untrusted enclave/Enclave.edl --search-path $(SGX_SDK)/include --untrusted-dir app
147142
@echo "GEN => $(Enclave_EDL_Files)"
148143

149144
######## App Objects ########
File renamed without changes.

enclave/Enclave.edl

-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
enclave
22
{
3-
from "sgx_backtrace.edl" import *;
4-
from "sgx_tstd.edl" import *;
5-
from "sgx_stdio.edl" import *;
6-
from "sgx_backtrace.edl" import *;
7-
from "sgx_tstdc.edl" import *;
8-
from "sgx_tprotected_fs.edl" import *;
9-
from "sgx_fs.edl" import *;
10-
from "sgx_net.edl" import *;
11-
from "sgx_time.edl" import *;
12-
from "sgx_env.edl" import *;
13-
from "sgx_thread.edl" import *;
14-
from "sgx_pipe.edl" import *;
15-
163
include "sgx_quote.h"
174

185
trusted

rust-sgx-sdk/Readme.md

-5
This file was deleted.

rust-sgx-sdk/common/inc/assert.h

-63
This file was deleted.

rust-sgx-sdk/common/inc/complex.h

-134
This file was deleted.

rust-sgx-sdk/common/inc/ctype.h

-65
This file was deleted.

0 commit comments

Comments
 (0)