Skip to content

Commit 9ddec08

Browse files
committed
Linux 2.8 Open Source Gold Release.
Signed-off-by: Zhang Lili Z <[email protected]>
1 parent 5db5a81 commit 9ddec08

File tree

665 files changed

+24207
-278587
lines changed

Some content is hidden

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

665 files changed

+24207
-278587
lines changed

.gitmodules

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
[submodule "external/dcap_source"]
22
path = external/dcap_source
33
url = https://github.com/intel/SGXDataCenterAttestationPrimitives.git
4+
[submodule "openmp"]
5+
path = external/openmp/openmp_code
6+
url = https://github.com/llvm-mirror/openmp.git
7+
branch = svn-tags/RELEASE_801
8+
[submodule "dnnl"]
9+
path = external/dnnl/dnnl
10+
url = https://github.com/intel/mkl-dnn.git
11+
branch = rls-v1.1

Makefile

Lines changed: 108 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#
3030
#
3131

32-
DCAP_VER?= 1.3.1
32+
DCAP_VER?= 1.4
3333
DCAP_DOWNLOAD_BASE ?= https://github.com/intel/SGXDataCenterAttestationPrimitives/archive
3434

3535
CHECK_OPT :=
@@ -79,66 +79,128 @@ sdk_install_pkg: sdk
7979
psw_install_pkg: psw
8080
./linux/installer/bin/build-installpkg.sh psw
8181

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
84107

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
86122
./linux/installer/deb/libsgx-enclave-common/build.sh
87123

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
90130

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
94134

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
95172
rpm_sdk_pkg: sdk
96173
./linux/installer/rpm/sdk/build.sh
97174

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
103177

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
107181

108182
clean:
109183
@$(MAKE) -C sdk/ clean
110184
@$(MAKE) -C psw/ clean
111185
@$(RM) -r $(ROOT_DIR)/build
112186
@$(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
142204

143205
rebuild:
144206
$(MAKE) clean

0 commit comments

Comments
 (0)