From 11d0746f96297d0b631239621444e330742237c8 Mon Sep 17 00:00:00 2001 From: Qi Zheng Date: Mon, 15 Jan 2024 19:01:02 +0800 Subject: [PATCH] [readthedocs] Update occlum commands chapter --- docs/readthedocs/docs/source/occlum_cmds.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/readthedocs/docs/source/occlum_cmds.md b/docs/readthedocs/docs/source/occlum_cmds.md index 9cf3e50c..b2e05939 100644 --- a/docs/readthedocs/docs/source/occlum_cmds.md +++ b/docs/readthedocs/docs/source/occlum_cmds.md @@ -19,15 +19,25 @@ occlum init Initialize a directory as the Occlum instance. ```bash -occlum build [--sign-key ] [--sign-tool ] [--image-key ] [-f/--force] +occlum build [--sign-key ] [--sign-tool ] [--image-key ] [-f/--force] [--enable-edmm ] ``` Build and sign an Occlum SGX enclave (.so) and generate its associated secure FS image according to the user-provided image directory and Occlum.json config file. The whole building process is incremental: the building artifacts are built only when needed. To force rebuilding all artifacts, give the [-f/--force] flag. +EDMM feature is not enabled by default. To enable it, set ENABLE_EDMM during the Occlum build phase as below: +``` +ENABLE_EDMM=Y occlum build +``` +Or +``` +occlum build --enable-edmm Y +``` +Details please refer to [doc](https://occlum.readthedocs.io/en/latest/edmm_config_guide.html). + ```bash -occlum run [--cpus ] +occlum run ``` Run the user program inside an SGX enclave.