Skip to content

Commit 7623221

Browse files
author
icarolima
committed
Refact TRUSTED_DIR -> SGXEnclave/makefiles/c/sgx_u.without_app.mk
Signed-off-by: Ícaro Dantas de Araújo Lima <icaro.lima@ccc.ufcg.edu.br>
1 parent 7433ae8 commit 7623221

File tree

1 file changed

+3
-2
lines changed
  • Linux_SGXEclipsePlugin/build_directory/plugins/com.intel.sgx/templates/sgx/SGXEnclave/makefiles/c

1 file changed

+3
-2
lines changed

Linux_SGXEclipsePlugin/build_directory/plugins/com.intel.sgx/templates/sgx/SGXEnclave/makefiles/c/sgx_u.without_app.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
SGX_SDK ?= $(SdkPathFromPlugin)
33
SGX_MODE ?= SIM
44
SGX_ARCH ?= x64
5+
TRUSTED_DIR=trusted
56
UNTRUSTED_DIR=untrusted
67

78
ifeq ($(shell getconf LONG_BIT), 32)
@@ -55,9 +56,9 @@ all: $(UNTRUSTED_DIR)/$(enclaveName)_u.o
5556

5657
######## App Objects ########
5758

58-
$(UNTRUSTED_DIR)/$(enclaveName)_u.c: $(SGX_EDGER8R) trusted/$(enclaveName).edl
59+
$(UNTRUSTED_DIR)/$(enclaveName)_u.c: $(SGX_EDGER8R) $(TRUSTED_DIR)/$(enclaveName).edl
5960
@mkdir -p $(UNTRUSTED_DIR)
60-
@cd $(UNTRUSTED_DIR) && $(SGX_EDGER8R) --untrusted ../trusted/$(enclaveName).edl --search-path ../trusted --search-path $(SGX_SDK)/include
61+
@cd $(UNTRUSTED_DIR) && $(SGX_EDGER8R) --untrusted ../$(TRUSTED_DIR)/$(enclaveName).edl --search-path ../$(TRUSTED_DIR) --search-path $(SGX_SDK)/include
6162
@echo "GEN => $@"
6263

6364
$(UNTRUSTED_DIR)/$(enclaveName)_u.o: $(UNTRUSTED_DIR)/$(enclaveName)_u.c

0 commit comments

Comments
 (0)