README.txt 1.1 KB

12345678910111213141516171819202122232425262728
  1. --------------------------
  2. Purpose of PowerTransition
  3. --------------------------
  4. The project demonstrates one method about power transition handling for Intel(R)
  5. Software Guard Extensions projects development.
  6. ------------------------------------
  7. How to Build/Execute the Sample Code
  8. ------------------------------------
  9. 1. Install Intel(R) Software Guard Extensions (Intel(R) SGX) SDK for Linux* OS
  10. 2. Make sure your environment is set:
  11. $ source ${sgx-sdk-install-path}/environment
  12. 3. Build the project with the prepared Makefile:
  13. a. Hardware Mode, Debug build:
  14. $ make
  15. b. Hardware Mode, Pre-release build:
  16. $ make SGX_PRERELEASE=1 SGX_DEBUG=0
  17. c. Hardware Mode, Release build:
  18. $ make SGX_DEBUG=0
  19. d. Simulation Mode, Debug build:
  20. $ make SGX_MODE=SIM
  21. e. Simulation Mode, Pre-release build:
  22. $ make SGX_MODE=SIM SGX_PRERELEASE=1 SGX_DEBUG=0
  23. f. Simulation Mode, Release build:
  24. $ make SGX_MODE=SIM SGX_DEBUG=0
  25. 4. Execute the binary directly:
  26. $ ./app
  27. 5. Remember to "make clean" before switching build mode