diff --git a/IDE/LINUX-SGX/README.md b/IDE/LINUX-SGX/README.md index 68c0f81ea..8d3abc797 100644 --- a/IDE/LINUX-SGX/README.md +++ b/IDE/LINUX-SGX/README.md @@ -10,6 +10,10 @@ To create the static library, simply call make: `make -f sgx_t_static.mk all` +To clean the static library and compiled objects use the provided clean script: + +`clean.sh` + This will create a local static library, libwolfssl.sgx.static.lib.a, that can be linked with SGX enclaves to access wolfSSL APIs using SGX hardware. ### Customization: @@ -20,6 +24,9 @@ This will create a local static library, libwolfssl.sgx.static.lib.a, that can b For example, to enable all three: `make -f sgx_t_static.mk CFLAGS=-DDEBUG_WOLFSSL HAVE_WOLFSSL_BENCHMARK=1 HAVE_WOLFSSL_TEST=1` +NOTE: This more customized step has been provided for easier execution in the + script `build.sh` + ### Limitations: Single Threaded (multiple threaded applications have not been tested) AES-NI use with SGX has not been added in yet diff --git a/IDE/LINUX-SGX/build.sh b/IDE/LINUX-SGX/build.sh index a5be290cb..23bbc8699 100755 --- a/IDE/LINUX-SGX/build.sh +++ b/IDE/LINUX-SGX/build.sh @@ -1,8 +1,9 @@ #!/bin/sh -CFLAGS="-DDEBUG_WOLFSSL" -export CFLAGS=${CFLAGS} +CFLAGS_NEW="-DDEBUG_WOLFSSL" +export CFLAGS="${CFLAGS} ${CFLAGS_NEW}" +echo ${CFLAGS} make -f sgx_t_static.mk HAVE_WOLFSSL_BENCHMARK=1 HAVE_WOLFSSL_TEST=1