forked from R3Conclave/conclave-core-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuoteGen_makefile.patch
40 lines (31 loc) · 1.61 KB
/
QuoteGen_makefile.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- a/external/dcap_source/QuoteGeneration/Makefile 2021-01-11 17:11:54.590165381 +0000
+++ b/external/dcap_source/QuoteGeneration/Makefile 2021-01-12 09:41:11.225302161 +0000
@@ -31,23 +31,23 @@
CUR_MKFILE:= $(lastword $(MAKEFILE_LIST))
-.PHONY: all dcap opt_check_failed clean rebuild pce_logic tdx_logic tdx_qgs tdx_attest qe3_logic qcnl_wrapper qpl_wrapper qve_wrapper
+.PHONY: all dcap prebuilt clean rebuild pce_logic tdx_logic tdx_qgs tdx_attest qe3_logic qcnl_wrapper qpl_wrapper qve_wrapper
all: dcap
#--------------------------------------------------------------------------------------
# Function: get_distr_info
# Arguments: 1: the grep keyword to be searched from /etc/os-release
# Returns: Return the value for the Linux distribution info corresponding to the keyword
#---------------------------------------------------------------------------------------
get_distr_info = $(patsubst "%",%,$(shell grep $(1) /etc/os-release 2> /dev/null | awk -F'=' '{print $$2}'))
DISTR_ID := $(call get_distr_info, '^ID=')
DISTR_VER := $(call get_distr_info, '^VERSION_ID=')
# DCAP requires prebuilt enclaves.
-CHECK_OPT :=
+prebuilt:
ifeq ("$(wildcard psw/ae/data/prebuilt/*.signed.so)", "")
-CHECK_OPT := opt_check_failed
+ ./download_prebuilt.sh
endif
-dcap: tdx_logic tdx_qgs tdx_attest $(CHECK_OPT) pce_logic qe3_logic qcnl_wrapper qpl_wrapper qve_wrapper
-
-opt_check_failed:
- @echo "Please run download_prebuilt.sh before compiling"
- @echo "Exiting......"
- @exit -2
+dcap: prebuilt tdx_logic tdx_qgs tdx_attest pce_logic qe3_logic qcnl_wrapper qpl_wrapper qve_wrapper
pce_logic:
$(MAKE) -C pce_wrapper/linux