1. Five new ioctl commands of /dev/sgx are added for occlum applications to securely get and verify DCAP quote; 2. Not all the functions of the intel DCAP package are open to developers to simplify the DCAP usage; 3. The test may only run on the platform with DCAP driver installed; 4. A macro OCCLUM_DISABLE_DCAP is used to separate the DCAP code from the other code. 5. Skip DCAP test when DCAP driver is not detected or in simulation mode
20 lines
376 B
Makefile
20 lines
376 B
Makefile
include ../test_common.mk
|
|
|
|
SGX_SDK ?= /opt/intel/sgxsdk
|
|
|
|
EXTRA_C_FLAGS := -I$(SGX_SDK)/include
|
|
|
|
ifdef OCCLUM_DISABLE_DCAP
|
|
EXTRA_C_FLAGS += -DOCCLUM_DISABLE_DCAP
|
|
endif
|
|
|
|
## TODO: support DCAP test in SIM mode
|
|
ifeq ($(SGX_MODE), SIM)
|
|
EXTRA_C_FLAGS += -DOCCLUM_DISABLE_DCAP
|
|
else ifeq ($(SGX_MODE), SW)
|
|
EXTRA_C_FLAGS += -DOCCLUM_DISABLE_DCAP
|
|
endif
|
|
|
|
EXTRA_LINK_FLAGS :=
|
|
BIN_ARGS :=
|