You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -86,7 +92,7 @@ The following steps describe how to build the Intel(R) SGX SDK and PSW. You can
86
92
```
87
93
$ make
88
94
```
89
-
You can find the tools and libraries generated in the `build/linux` directory.
95
+
You can find the tools and libraries generated in the `build/linux` directory.
90
96
**Note**: You can also go to the `sdk` folder and use the `make` command to build the Intel(R) SGX SDK component only. However, building the PSW component is dependent on the result of building the Intel(R) SGX SDK.
91
97
92
98
- This repository supports to build the Intel(R) SGX SDK based on either precompiled optimized IPP/string/math libraries or open sourced version of SGXSSL/string/math libraries.
@@ -127,13 +133,16 @@ $ make sdk_install_pkg DEBUG=1
127
133
128
134
### Build the Intel(R) SGX PSW Installer
129
135
To build the Intel(R) SGX PSW installer, enter the following command:
130
-
- On Ubuntu 18.04:
136
+
- On Ubuntu 16.04 and Ubuntu 18.04:
131
137
```
132
138
$ make deb_sgx_enclave_common_pkg
133
139
```
134
-
You can find the generated Intel(R) SGX PSW installer ``libsgx-enclave-common_${version}-${revision}_${arch}.deb`` located under `linux/installer/deb/libsgx-enclave-common`, where `${version}` refers to the version number and the `${arch}` refers to the platform.
135
-
136
-
**Note**: The above command builds the Intel(R) SGX PSW with default configuration firstly and then generates the target PSW Installer. To build the Intel(R) SGX PSW Installer with debug information kept in the tools and libraries, enter the following command:
140
+
You can find the generated Intel(R) SGX PSW installer ``libsgx-enclave-common_${version}-${revision}_amd64.deb`` located under `linux/installer/deb/libsgx-enclave-common`, where `${version}` refers to the version number and the `${revision}` refers to the revision number of the package.
141
+
**Note**: On Ubuntu 18.04, besides the Intel(R) SGX PSW installer, the above command generates another debug symbol package named ``libsgx-enclave-common-dbgsym_${version}-${revision}_amd64.ddeb`` for debug purpose. On Ubuntu 16.04, if you want to keep debug symbols in the Intel(R) SGX PSW installer, before building the Intel(R) SGX PSW, you need to export an environment variable to ensure the debug symbols not stripped:
142
+
```
143
+
$ export DEB_BUILD_OPTIONS="nostrip"
144
+
```
145
+
**Note**: The above command builds the Intel(R) SGX PSW with default configuration firstly and then generates the target PSW Installer. To build the Intel(R) SGX PSW Installer without optimization and with full debug information kept in the tools and libraries, enter the following command:
137
146
```
138
147
$ make deb_sgx_enclave_common_pkg DEBUG=1
139
148
```
@@ -149,19 +158,27 @@ To build the Intel(R) SGX PSW installer, enter the following command:
149
158
```
150
159
$ make psw_install_pkg DEBUG=1
151
160
```
161
+
To build the Intel(R) SGX PSW development installer, enter the following command:
162
+
- On Ubuntu 16.04 and Ubuntu 18.04:
163
+
```
164
+
$ make deb_sgx_enclave_common_dev_pkg
165
+
```
166
+
You can find the generated Intel(R) SGX PSW development installer ``libsgx-enclave-common-dev_${version}-${revision}_${arch}.deb`` located under `linux/installer/deb/libsgx-enclave-common-dev`.
152
167
153
168
Install the Intel(R) SGX SDK
154
169
------------------------
155
170
### Prerequisites
156
171
- Ensure that you have one of the following operating systems:
172
+
* Ubuntu\* 16.04 LTS Desktop 64bits
173
+
* Ubuntu\* 16.04 LTS Server 64bits
157
174
* Ubuntu\* 18.04 LTS Desktop 64bits
158
175
* Ubuntu\* 18.04 LTS Server 64bits
159
176
* Red Hat Enterprise Linux Server release 7.4 64bits
160
177
* CentOS 7.5 64bits
161
178
* Fedora 27 Server 64bits
162
179
* SUSE Linux Enterprise Server 12 64bits
163
180
- Use the following command to install the required tool to use Intel(R) SGX SDK:
164
-
* On Ubuntu 18.04:
181
+
* On Ubuntu 16.04 and Ubuntu 18.04:
165
182
```
166
183
$ sudo apt-get install build-essential python
167
184
```
@@ -217,6 +234,8 @@ Install the Intel(R) SGX PSW
217
234
----------------------------
218
235
### Prerequisites
219
236
- Ensure that you have one of the following operating systems:
237
+
* Ubuntu\* 16.04 LTS Desktop 64bits
238
+
* Ubuntu\* 16.04 LTS Server 64bits
220
239
* Ubuntu\* 18.04 LTS Desktop 64bits
221
240
* Ubuntu\* 18.04 LTS Server 64bits
222
241
* Red Hat Enterprise Linux Server release 7.4 64bits
@@ -228,7 +247,7 @@ Install the Intel(R) SGX PSW
228
247
- Configure the system with the **Intel SGX hardware enabled** option and install Intel(R) SGX driver in advance.
229
248
See the earlier topic, *Build and Install the Intel(R) SGX Driver*, for information on how to install the Intel(R) SGX driver.
230
249
- Install the library using the following command:
-`iclsClient` and `JHI` are optional prerequisite components and are needed if you need to use Intel(R) SGX Platform Service. To install these components:
244
263
Ensure `mei_me` driver is enabled and `/dev/mei0` exists.
245
264
Download [iclsClient](https://software.intel.com/en-us/sgx-sdk/download) and install it using the following commands:
Download source code from [dynamic-application-loader-host-interface](https://github.com/01org/dynamic-application-loader-host-interface) project. In the source code folder, build and install the `JHI` service using the following commands:
To debug with sgx-gdb, enter the following command:
303
+
**NOTE**: To debug with sgx-gdb on Ubuntu 16.04, you need to ensure the Intel(R) SGX PSW is built under the condition that the environment variable ``DEB_BUILD_OPTIONS="nostrip"`` is set. On Ubuntu 18.04, you need to install the debug package by entering the following command:
0 commit comments