|
29 | 29 | #
|
30 | 30 | #
|
31 | 31 |
|
32 |
| -DCAP_VER?= 1.3.1 |
| 32 | +DCAP_VER?= 1.4 |
33 | 33 | DCAP_DOWNLOAD_BASE ?= https://github.com/intel/SGXDataCenterAttestationPrimitives/archive
|
34 | 34 |
|
35 | 35 | CHECK_OPT :=
|
@@ -79,66 +79,128 @@ sdk_install_pkg: sdk
|
79 | 79 | psw_install_pkg: psw
|
80 | 80 | ./linux/installer/bin/build-installpkg.sh psw
|
81 | 81 |
|
82 |
| -deb_sgx_urts_pkg: psw |
83 |
| - ./linux/installer/deb/libsgx-urts/build.sh |
| 82 | +.PHONY: deb_libsgx_ae_qe3 |
| 83 | +deb_libsgx_ae_qe3: |
| 84 | +ifeq ("$(wildcard ./external/dcap_source/QuoteGeneration/psw/ae/data/prebuilt/libsgx_qe3.signed.so)", "") |
| 85 | + ./external/dcap_source/QuoteGeneration/download_prebuilt.sh |
| 86 | +endif |
| 87 | + $(MAKE) -C external/dcap_source/QuoteGeneration deb_sgx_ae_qe3_pkg |
| 88 | + $(CP) external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-ae-qe3/libsgx-ae-qe3*.deb ./linux/installer/deb/sgx-aesm-service/ |
| 89 | + |
| 90 | +.PHONY: deb_libsgx_dcap_default_qpl |
| 91 | +deb_libsgx_dcap_default_qpl: |
| 92 | + $(MAKE) -C external/dcap_source/QuoteGeneration deb_sgx_dcap_default_qpl_pkg |
| 93 | + $(CP) external/dcap_source/QuoteGeneration/installer/linux/deb/libsgx-dcap-default-qpl/libsgx-dcap-default-qpl*deb ./linux/installer/deb/sgx-aesm-service/ |
| 94 | + |
| 95 | +.PHONY: deb_libsgx_dcap_pccs |
| 96 | +deb_libsgx_dcap_pccs: |
| 97 | + $(MAKE) -C external/dcap_source/QuoteGeneration deb_sgx_dcap_pccs_pkg |
| 98 | + $(CP) external/dcap_source/QuoteGeneration/installer/linux/deb/sgx-dcap-pccs/sgx-dcap-pccs*deb ./linux/installer/deb/sgx-aesm-service/ |
| 99 | + |
| 100 | +.PHONY: deb_sgx_aesm_service |
| 101 | +deb_sgx_aesm_service: psw |
| 102 | + ./linux/installer/deb/sgx-aesm-service/build.sh |
| 103 | + |
| 104 | +.PHONY: deb_libsgx_epid |
| 105 | +deb_libsgx_epid: psw |
| 106 | + ./linux/installer/deb/libsgx-epid/build.sh |
84 | 107 |
|
85 |
| -deb_sgx_enclave_common_pkg: psw |
| 108 | +.PHONY: deb_libsgx_launch |
| 109 | +deb_libsgx_launch: psw |
| 110 | + ./linux/installer/deb/libsgx-launch/build.sh |
| 111 | + |
| 112 | +.PHONY: deb_libsgx_quote_ex |
| 113 | +deb_libsgx_quote_ex: psw |
| 114 | + ./linux/installer/deb/libsgx-quote-ex/build.sh |
| 115 | + |
| 116 | +.PHONY: deb_libsgx_uae_service |
| 117 | +deb_libsgx_uae_service: psw |
| 118 | + ./linux/installer/deb/libsgx-uae-service/build.sh |
| 119 | + |
| 120 | +.PHONY: deb_libsgx_enclave_common |
| 121 | +deb_libsgx_enclave_common: psw |
86 | 122 | ./linux/installer/deb/libsgx-enclave-common/build.sh
|
87 | 123 |
|
88 |
| -deb_sgx_enclave_common_dev_pkg: |
89 |
| - ./linux/installer/deb/libsgx-enclave-common-dev/build.sh |
| 124 | +.PHONY: deb_libsgx_urts |
| 125 | +deb_libsgx_urts: psw |
| 126 | + ./linux/installer/deb/libsgx-urts/build.sh |
| 127 | + |
| 128 | +.PHONY: deb_psw_pkg |
| 129 | +deb_psw_pkg: 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 |
90 | 130 |
|
91 |
| -deb_pkg: deb_sgx_urts_pkg deb_sgx_enclave_common_pkg deb_sgx_enclave_common_dev_pkg |
92 |
| - @$(RM) -f ./linux/installer/deb/*.deb ./linux/installer/deb/*.ddeb |
93 |
| - cp `find ./linux/installer/deb/ -name "*.deb" -o -name "*.ddeb"` ./linux/installer/deb/ |
| 131 | +.PHONY: deb_local_repo |
| 132 | +deb_local_repo: deb_psw_pkg |
| 133 | + ./linux/installer/common/local_repo_builder/local_repo_builder.sh debian build |
94 | 134 |
|
| 135 | +.PHONY: rpm_libsgx_ae_qe3 |
| 136 | +rpm_libsgx_ae_qe3: |
| 137 | +ifeq ("$(wildcard ./external/dcap_source/QuoteGeneration/psw/ae/data/prebuilt/libsgx_qe3.signed.so)", "") |
| 138 | + ./external/dcap_source/QuoteGeneration/download_prebuilt.sh |
| 139 | +endif |
| 140 | + $(MAKE) -C external/dcap_source/QuoteGeneration rpm_sgx_ae_qe3_pkg |
| 141 | + $(CP) external/dcap_source/QuoteGeneration/installer/linux/rpm/libsgx-ae-qe3/libsgx-ae-qe3*.rpm ./linux/installer/rpm/sgx-aesm-service/ |
| 142 | + |
| 143 | +.PHONY: rpm_sgx_aesm_service |
| 144 | +rpm_sgx_aesm_service: psw |
| 145 | + ./linux/installer/rpm/sgx-aesm-service/build.sh |
| 146 | + |
| 147 | +.PHONY: rpm_libsgx_epid |
| 148 | +rpm_libsgx_epid: psw |
| 149 | + ./linux/installer/rpm/libsgx-epid/build.sh |
| 150 | + |
| 151 | +.PHONY: rpm_libsgx_launch |
| 152 | +rpm_libsgx_launch: psw |
| 153 | + ./linux/installer/rpm/libsgx-launch/build.sh |
| 154 | + |
| 155 | +.PHONY: rpm_libsgx_quote_ex |
| 156 | +rpm_libsgx_quote_ex: psw |
| 157 | + ./linux/installer/rpm/libsgx-quote-ex/build.sh |
| 158 | + |
| 159 | +.PHONY: rpm_libsgx_uae_service |
| 160 | +rpm_libsgx_uae_service: psw |
| 161 | + ./linux/installer/rpm/libsgx-uae-service/build.sh |
| 162 | + |
| 163 | +.PHONY: rpm_libsgx_enclave_common |
| 164 | +rpm_libsgx_enclave_common: psw |
| 165 | + ./linux/installer/rpm/libsgx-enclave-common/build.sh |
| 166 | + |
| 167 | +.PHONY: rpm_libsgx_urts |
| 168 | +rpm_libsgx_urts: psw |
| 169 | + ./linux/installer/rpm/libsgx-urts/build.sh |
| 170 | + |
| 171 | +.PHONY: rpm_sdk_pkg |
95 | 172 | rpm_sdk_pkg: sdk
|
96 | 173 | ./linux/installer/rpm/sdk/build.sh
|
97 | 174 |
|
98 |
| -rpm_psw_pkg: psw |
99 |
| - ./linux/installer/rpm/psw/build.sh |
100 |
| - |
101 |
| -rpm_psw_dev_pkg: |
102 |
| - ./linux/installer/rpm/psw-dev/build.sh |
| 175 | +.PHONY: rpm_psw_pkg |
| 176 | +rpm_psw_pkg: 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 |
103 | 177 |
|
104 |
| -rpm_pkg: rpm_sdk_pkg rpm_psw_pkg rpm_psw_dev_pkg |
105 |
| - @$(RM) -f ./linux/installer/rpm/*.rpm |
106 |
| - cp `find ./linux/installer/rpm/ -name "*.rpm"` ./linux/installer/rpm/ |
| 178 | +.PHONY: rpm_local_repo |
| 179 | +rpm_local_repo: rpm_psw_pkg |
| 180 | + ./linux/installer/common/local_repo_builder/local_repo_builder.sh rpm build |
107 | 181 |
|
108 | 182 | clean:
|
109 | 183 | @$(MAKE) -C sdk/ clean
|
110 | 184 | @$(MAKE) -C psw/ clean
|
111 | 185 | @$(RM) -r $(ROOT_DIR)/build
|
112 | 186 | @$(RM) -r linux/installer/bin/sgx_linux*.bin
|
113 |
| - @$(RM) -r linux/installer/deb/libsgx-enclave-common/libsgx-enclave-common-dbgsym_* |
114 |
| - @$(RM) -r linux/installer/deb/libsgx-enclave-common/libsgx-enclave-common_*.tar.* |
115 |
| - @$(RM) -r linux/installer/deb/libsgx-enclave-common/libsgx-enclave-common_*_amd64.* |
116 |
| - @$(RM) -r linux/installer/deb/libsgx-enclave-common/libsgx-enclave-common_*.dsc |
117 |
| - @$(RM) -r linux/installer/deb/libsgx-enclave-common-dev/libsgx-enclave-common-dev*.deb |
118 |
| - @$(RM) -r linux/installer/deb/libsgx-enclave-common-dev/libsgx-enclave-common_*.tar.* |
119 |
| - @$(RM) -r linux/installer/deb/libsgx-enclave-common-dev/libsgx-enclave-common_*_amd64.* |
120 |
| - @$(RM) -r linux/installer/deb/libsgx-enclave-common-dev/libsgx-enclave-common_*.dsc |
121 |
| - @$(RM) -r linux/installer/deb/libsgx-urts/libsgx-enclave-common_*.tar.* |
122 |
| - @$(RM) -r linux/installer/deb/libsgx-urts/libsgx-enclave-common_*_amd64.* |
123 |
| - @$(RM) -r linux/installer/deb/libsgx-urts/libsgx-urts_*.deb |
124 |
| - @$(RM) -r linux/installer/deb/*.deb |
125 |
| - @$(RM) -r linux/installer/deb/*.ddeb |
126 |
| - @$(RM) -r linux/installer/rpm/sdk/sgxsdk*.rpm |
127 |
| - @$(RM) -r linux/installer/rpm/psw/sgxpsw*.rpm |
128 |
| - @$(RM) -r linux/installer/rpm/psw-dev/sgxpsw-dev*.rpm |
129 |
| - @$(RM) -r linux/installer/rpm/*.rpm |
130 |
| - @$(RM) -rf linux/installer/common/psw/output |
131 |
| - @$(RM) -rf linux/installer/common/psw/gen_source.py |
132 |
| - @$(RM) -rf linux/installer/common/libsgx-enclave-common/output |
133 |
| - @$(RM) -rf linux/installer/common/libsgx-enclave-common/gen_source.py |
134 |
| - @$(RM) -rf linux/installer/common/libsgx-enclave-common-dev/output |
135 |
| - @$(RM) -rf linux/installer/common/libsgx-enclave-common-dev/gen_source.py |
136 |
| - @$(RM) -rf linux/installer/common/libsgx-urts/output |
137 |
| - @$(RM) -rf linux/installer/common/libsgx-urts/gen_source.py |
138 |
| - @$(RM) -rf linux/installer/common/sdk/output |
139 |
| - @$(RM) -rf linux/installer/common/sdk/pkgconfig/x64 |
140 |
| - @$(RM) -rf linux/installer/common/sdk/pkgconfig/x86 |
141 |
| - @$(RM) -rf linux/installer/common/sdk/gen_source.py |
| 187 | + ./linux/installer/deb/sgx-aesm-service/clean.sh |
| 188 | + ./linux/installer/deb/libsgx-epid/clean.sh |
| 189 | + ./linux/installer/deb/libsgx-launch/clean.sh |
| 190 | + ./linux/installer/deb/libsgx-quote-ex/clean.sh |
| 191 | + ./linux/installer/deb/libsgx-uae-service/clean.sh |
| 192 | + ./linux/installer/deb/libsgx-enclave-common/clean.sh |
| 193 | + ./linux/installer/deb/libsgx-urts/clean.sh |
| 194 | + ./linux/installer/common/local_repo_builder/local_repo_builder.sh debian clean |
| 195 | + ./linux/installer/rpm/sgx-aesm-service/clean.sh |
| 196 | + ./linux/installer/rpm/libsgx-epid/clean.sh |
| 197 | + ./linux/installer/rpm/libsgx-launch/clean.sh |
| 198 | + ./linux/installer/rpm/libsgx-quote-ex/clean.sh |
| 199 | + ./linux/installer/rpm/libsgx-uae-service/clean.sh |
| 200 | + ./linux/installer/rpm/libsgx-enclave-common/clean.sh |
| 201 | + ./linux/installer/rpm/libsgx-urts/clean.sh |
| 202 | + ./linux/installer/rpm/sdk/clean.sh |
| 203 | + ./linux/installer/common/local_repo_builder/local_repo_builder.sh rpm clean |
142 | 204 |
|
143 | 205 | rebuild:
|
144 | 206 | $(MAKE) clean
|
|
0 commit comments