README.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. ------------------------
  2. Purpose of SampleEnclave
  3. ------------------------
  4. The project demonstrates several fundamental usages of Intel(R) Software Guard
  5. Extensions (Intel(R) SGX) SDK:
  6. - Initializing and destroying an enclave
  7. - Creating ECALLs or OCALLs
  8. - Calling trusted libraries inside the enclave
  9. ------------------------------------
  10. How to Build/Execute the Sample Code
  11. ------------------------------------
  12. 1. Install Intel(R) SGX SDK for Linux* OS
  13. 2. Make sure your environment is set:
  14. $ source ${sgx-sdk-install-path}/environment
  15. 3. Build the project with the prepared Makefile:
  16. a. Hardware Mode, Debug build:
  17. $ make
  18. b. Hardware Mode, Pre-release build:
  19. $ make SGX_PRERELEASE=1 SGX_DEBUG=0
  20. c. Hardware Mode, Release build:
  21. $ make SGX_DEBUG=0
  22. d. Simulation Mode, Debug build:
  23. $ make SGX_MODE=SIM
  24. e. Simulation Mode, Pre-release build:
  25. $ make SGX_MODE=SIM SGX_PRERELEASE=1 SGX_DEBUG=0
  26. f. Simulation Mode, Release build:
  27. $ make SGX_MODE=SIM SGX_DEBUG=0
  28. 4. Execute the binary directly:
  29. $ ./app
  30. 5. Remember to "make clean" before switching build mode