29
29
#
30
30
#
31
31
32
- DCAP_VER? = 1.6
32
+ DCAP_VER? = 1.7
33
33
DCAP_DOWNLOAD_BASE ?= https://github.com/intel/SGXDataCenterAttestationPrimitives/archive
34
34
35
35
CHECK_OPT :=
@@ -69,16 +69,24 @@ endif
69
69
psw : $(CHECK_OPT )
70
70
$(MAKE ) -C psw/ USE_OPT_LIBS=$(USE_OPT_LIBS )
71
71
72
- sdk_no_mitigation :
72
+ sdk_no_mitigation : $( CHECK_OPT )
73
73
$(MAKE ) -C sdk/ USE_OPT_LIBS=$(USE_OPT_LIBS )
74
+ $(MAKE ) -C external/dcap_source/QuoteVerification/dcap_tvl clean
75
+ $(MAKE ) -C external/dcap_source/QuoteVerification/dcap_tvl
74
76
75
- sdk :
77
+ sdk : $( CHECK_OPT )
76
78
$(MAKE ) -C sdk/ clean
77
79
$(MAKE ) -C sdk/ MODE=$(MODE ) MITIGATION-CVE-2020-0551=LOAD
78
80
$(MAKE ) -C sdk/ clean
79
81
$(MAKE ) -C sdk/ MODE=$(MODE ) MITIGATION-CVE-2020-0551=CF
80
82
$(MAKE ) -C sdk/ clean
81
83
$(MAKE ) -C sdk/ MODE=$(MODE )
84
+ $(MAKE ) -C external/dcap_source/QuoteVerification/dcap_tvl MITIGATION-CVE-2020-0551=LOAD clean
85
+ $(MAKE ) -C external/dcap_source/QuoteVerification/dcap_tvl MITIGATION-CVE-2020-0551=LOAD
86
+ $(MAKE ) -C external/dcap_source/QuoteVerification/dcap_tvl MITIGATION-CVE-2020-0551=CF clean
87
+ $(MAKE ) -C external/dcap_source/QuoteVerification/dcap_tvl MITIGATION-CVE-2020-0551=CF
88
+ $(MAKE ) -C external/dcap_source/QuoteVerification/dcap_tvl clean
89
+ $(MAKE ) -C external/dcap_source/QuoteVerification/dcap_tvl
82
90
83
91
# Generate SE SDK Install package
84
92
sdk_install_pkg_no_mitigation : sdk_no_mitigation
@@ -106,16 +114,6 @@ deb_libsgx_pce_logic: psw
106
114
$(MAKE ) -C external/dcap_source/QuoteGeneration deb_sgx_pce_logic_pkg
107
115
$(CP ) external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-pce-logic/libsgx-pce-logic* deb ./linux/installer/deb/sgx-aesm-service/
108
116
109
- .PHONY : deb_libsgx_dcap_default_qpl
110
- deb_libsgx_dcap_default_qpl :
111
- $(MAKE ) -C external/dcap_source/QuoteGeneration deb_sgx_dcap_default_qpl_pkg
112
- $(CP ) external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-dcap-default-qpl/libsgx-dcap-default-qpl* deb ./linux/installer/deb/sgx-aesm-service/
113
-
114
- .PHONY : deb_libsgx_dcap_pccs
115
- deb_libsgx_dcap_pccs :
116
- $(MAKE ) -C external/dcap_source/QuoteGeneration deb_sgx_dcap_pccs_pkg
117
- $(CP ) external/dcap_source/QuoteGeneration/installer/linux/deb/sgx-dcap-pccs/sgx-dcap-pccs* deb ./linux/installer/deb/sgx-aesm-service/
118
-
119
117
.PHONY : deb_sgx_aesm_service
120
118
deb_sgx_aesm_service : psw
121
119
./linux/installer/deb/sgx-aesm-service/build.sh
@@ -144,8 +142,36 @@ deb_libsgx_enclave_common: psw
144
142
deb_libsgx_urts : psw
145
143
./linux/installer/deb/libsgx-urts/build.sh
146
144
145
+ ifeq ($(CC_BELOW_5_2 ) , 1)
147
146
.PHONY : deb_psw_pkg
148
- deb_psw_pkg : deb_libsgx_qe3_logic deb_libsgx_pce_logic deb_sgx_aesm_service deb_libsgx_epid deb_libsgx_launch deb_libsgx_quote_ex deb_libsgx_uae_service deb_libsgx_enclave_common deb_libsgx_urts deb_libsgx_ae_qe3 deb_libsgx_dcap_default_qpl deb_libsgx_dcap_pccs
147
+ deb_psw_pkg : deb_libsgx_qe3_logic deb_libsgx_pce_logic deb_sgx_aesm_service deb_libsgx_epid deb_libsgx_launch deb_libsgx_quote_ex deb_libsgx_uae_service deb_libsgx_enclave_common deb_libsgx_urts deb_libsgx_ae_qe3
148
+ else
149
+ .PHONY : deb_libsgx_dcap_default_qpl
150
+ deb_libsgx_dcap_default_qpl :
151
+ $(MAKE ) -C external/dcap_source/QuoteGeneration deb_sgx_dcap_default_qpl_pkg
152
+ $(CP ) external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-dcap-default-qpl/libsgx-dcap-default-qpl* deb ./linux/installer/deb/sgx-aesm-service/
153
+
154
+ .PHONY : deb_libsgx_dcap_pccs
155
+ deb_libsgx_dcap_pccs :
156
+ $(MAKE ) -C external/dcap_source/QuoteGeneration deb_sgx_dcap_pccs_pkg
157
+ $(CP ) external/dcap_source/QuoteGeneration/installer/linux/deb/sgx-dcap-pccs/sgx-dcap-pccs* deb ./linux/installer/deb/sgx-aesm-service/
158
+
159
+ .PHONY : deb_libsgx_dcap_ql
160
+ deb_libsgx_dcap_ql :
161
+ $(MAKE ) -C external/dcap_source/QuoteGeneration deb_sgx_dcap_ql_pkg
162
+ $(CP ) external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-dcap-ql/libsgx-dcap-ql* deb ./linux/installer/deb/sgx-aesm-service/
163
+
164
+ .PHONY : deb_libsgx_ae_qve
165
+ deb_libsgx_ae_qve :
166
+ ifeq ("$(wildcard ./external/dcap_source/QuoteGeneration/psw/ae/data/prebuilt/libsgx_qve.signed.so) ", "")
167
+ ./external/dcap_source/QuoteGeneration/download_prebuilt.sh
168
+ endif
169
+ $(MAKE) -C external/dcap_source/QuoteGeneration deb_sgx_ae_qve_pkg
170
+ $(CP) external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-ae-qve/libsgx-ae-qve*deb ./linux/installer/deb/sgx-aesm-service/
171
+
172
+ .PHONY : deb_psw_pkg
173
+ deb_psw_pkg : deb_libsgx_qe3_logic deb_libsgx_pce_logic deb_sgx_aesm_service deb_libsgx_epid deb_libsgx_launch deb_libsgx_quote_ex deb_libsgx_uae_service deb_libsgx_enclave_common deb_libsgx_urts deb_libsgx_ae_qe3 deb_libsgx_dcap_default_qpl deb_libsgx_dcap_pccs deb_libsgx_dcap_ql deb_libsgx_ae_qve
174
+ endif
149
175
150
176
.PHONY : deb_local_repo
151
177
deb_local_repo : deb_psw_pkg
@@ -199,18 +225,49 @@ rpm_libsgx_urts: psw
199
225
rpm_sdk_pkg : sdk
200
226
./linux/installer/rpm/sdk/build.sh
201
227
228
+ ifeq ($(CC_BELOW_5_2 ) , 1)
202
229
.PHONY : rpm_psw_pkg
203
230
rpm_psw_pkg : rpm_libsgx_pce_logic rpm_libsgx_qe3_logic rpm_sgx_aesm_service rpm_libsgx_epid rpm_libsgx_launch rpm_libsgx_quote_ex rpm_libsgx_uae_service rpm_libsgx_enclave_common rpm_libsgx_urts rpm_libsgx_ae_qe3
231
+ else
232
+ .PHONY : rpm_libsgx_dcap_default_qpl
233
+ rpm_libsgx_dcap_default_qpl :
234
+ $(MAKE ) -C external/dcap_source/QuoteGeneration rpm_sgx_dcap_default_qpl_pkg
235
+ $(CP ) external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-dcap-default-qpl/libsgx-dcap-default-qpl* .rpm ./linux/installer/rpm/sgx-aesm-service/
236
+
237
+ .PHONY : rpm_libsgx_dcap_pccs
238
+ rpm_libsgx_dcap_pccs :
239
+ $(MAKE ) -C external/dcap_source/QuoteGeneration rpm_sgx_dcap_pccs_pkg
240
+ $(CP ) external/dcap_source/QuoteGeneration/installer/linux/rpm/sgx-dcap-pccs/sgx-dcap-pccs* .rpm ./linux/installer/rpm/sgx-aesm-service/
241
+
242
+ .PHONY : rpm_libsgx_dcap_ql
243
+ rpm_libsgx_dcap_ql :
244
+ $(MAKE ) -C external/dcap_source/QuoteGeneration rpm_sgx_dcap_ql_pkg
245
+ $(CP ) external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-dcap-ql/libsgx-dcap-ql* rpm ./linux/installer/rpm/sgx-aesm-service/
246
+
247
+ .PHONY : rpm_libsgx_ae_qve
248
+ rpm_libsgx_ae_qve :
249
+ ifeq ("$(wildcard ./external/dcap_source/QuoteGeneration/psw/ae/data/prebuilt/libsgx_qve.signed.so) ", "")
250
+ ./external/dcap_source/QuoteGeneration/download_prebuilt.sh
251
+ endif
252
+ $(MAKE) -C external/dcap_source/QuoteGeneration rpm_sgx_ae_qve_pkg
253
+ $(CP) external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-ae-qve/libsgx-ae-qve*rpm ./linux/installer/rpm/sgx-aesm-service/
254
+
255
+ .PHONY : rpm_psw_pkg
256
+ rpm_psw_pkg : rpm_libsgx_pce_logic rpm_libsgx_qe3_logic rpm_sgx_aesm_service rpm_libsgx_epid rpm_libsgx_launch rpm_libsgx_quote_ex rpm_libsgx_uae_service rpm_libsgx_enclave_common rpm_libsgx_urts rpm_libsgx_ae_qe3 rpm_libsgx_dcap_default_qpl rpm_libsgx_dcap_pccs rpm_libsgx_dcap_ql rpm_libsgx_ae_qve
257
+ endif
204
258
205
259
.PHONY : rpm_local_repo
206
260
rpm_local_repo : rpm_psw_pkg
207
261
./linux/installer/common/local_repo_builder/local_repo_builder.sh rpm build
208
262
209
263
clean :
210
- @$(MAKE ) -C sdk/ clean
211
- @$(MAKE ) -C psw/ clean
264
+ @$(MAKE ) -C sdk/ clean
265
+ @$(MAKE ) -C psw/ clean
212
266
@$(RM ) -r $(ROOT_DIR ) /build
267
+ @$(RM ) -r linux/installer/bin/install-sgx-* .bin* .withLicense
213
268
@$(RM ) -r linux/installer/bin/sgx_linux* .bin
269
+ @$(RM ) -f ./linux/installer/deb/sgx-aesm-service/sgx-dcap-pccs* deb
270
+ @$(RM ) -f ./linux/installer/rpm/sgx-aesm-service/sgx-dcap-pccs* rpm
214
271
./linux/installer/deb/sgx-aesm-service/clean.sh
215
272
./linux/installer/deb/libsgx-epid/clean.sh
216
273
./linux/installer/deb/libsgx-launch/clean.sh
@@ -228,6 +285,29 @@ clean:
228
285
./linux/installer/rpm/libsgx-urts/clean.sh
229
286
./linux/installer/rpm/sdk/clean.sh
230
287
./linux/installer/common/local_repo_builder/local_repo_builder.sh rpm clean
288
+ ifeq ("$(shell test -f external/dcap_source/QuoteVerification/dcap_tvl/Makefile && echo TVL Makefile exists) ", "TVL Makefile exists")
289
+ $(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl MITIGATION-CVE-2020-0551=LOAD clean
290
+ $(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl MITIGATION-CVE-2020-0551=CF clean
291
+ $(MAKE) -C external/dcap_source/QuoteVerification/dcap_tvl clean
292
+ endif
293
+ ifeq ("$(shell test -f external/dcap_source/QuoteVerification/Makefile && echo Makefile exists) ", "Makefile exists")
294
+ @$(MAKE) -C external/dcap_source/QuoteVerification clean
295
+ @$(MAKE) -C external/dcap_source/QuoteGeneration clean
296
+ ./external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-ae-qve/clean.sh
297
+ ./external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-ae-qe3/clean.sh
298
+ ./external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-dcap-default-qpl/clean.sh
299
+ ./external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-dcap-ql/clean.sh
300
+ ./external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-pce-logic/clean.sh
301
+ ./external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-qe3-logic/clean.sh
302
+ ./external/dcap_source/QuoteGeneration/installer/linux/deb/sgx-dcap-pccs/clean.sh
303
+ ./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-ae-qve/clean.sh
304
+ ./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-ae-qe3/clean.sh
305
+ ./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-dcap-default-qpl/clean.sh
306
+ ./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-dcap-ql/clean.sh
307
+ ./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-pce-logic/clean.sh
308
+ ./external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-qe3-logic/clean.sh
309
+ ./external/dcap_source/QuoteGeneration/installer/linux/rpm/sgx-dcap-pccs/clean.sh
310
+ endif
231
311
232
312
rebuild :
233
313
$(MAKE ) clean
0 commit comments