From 9efd14c44b43e964231e120f4edaf62e2aaa921a Mon Sep 17 00:00:00 2001 From: "Bill.W" <0xbillw@gmail.com> Date: Mon, 5 Feb 2024 08:24:48 +0000 Subject: [PATCH 1/2] chore: remove useless argument and modify some arguments comments --- standalone/teeworker/ceseal/src/main.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/standalone/teeworker/ceseal/src/main.rs b/standalone/teeworker/ceseal/src/main.rs index ee19bb74..0e499aae 100644 --- a/standalone/teeworker/ceseal/src/main.rs +++ b/standalone/teeworker/ceseal/src/main.rs @@ -15,23 +15,19 @@ use tracing::info; #[derive(Parser, Debug, Clone)] #[clap(about = "The CESS TEE worker app.", version, author)] struct Args { - /// Number of CPU cores to be used for mining. + /// Number of CPU cores to be used for PODR2 thread-pool. #[arg(short, long)] cores: Option, - /// Allow CORS for HTTP - #[arg(long)] - allow_cors: bool, - - /// Listening IP address of HTTP + /// Listening IP address of internal H2 server #[arg(long)] address: Option, - /// Listening port of HTTP + /// Listening port of internal H2 server #[arg(long)] port: Option, - /// Listening port of HTTP (with access control) + /// Listening port of public H2 server #[arg(long)] public_port: Option, From 231f43b6d2423495a81555f1869d1613bd9ad648 Mon Sep 17 00:00:00 2001 From: "Bill.W" <0xbillw@gmail.com> Date: Mon, 5 Feb 2024 08:29:37 +0000 Subject: [PATCH 2/2] chore: remove useless parameters and add missing ones: OA, VC --- standalone/teeworker/ceseal/Makefile | 1 - standalone/teeworker/ceseal/gramine-build/Makefile | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/standalone/teeworker/ceseal/Makefile b/standalone/teeworker/ceseal/Makefile index a40f756c..702ae218 100644 --- a/standalone/teeworker/ceseal/Makefile +++ b/standalone/teeworker/ceseal/Makefile @@ -1,4 +1,3 @@ -SGX_MODE ?= SW BUILD?=release ifeq ($(BUILD),release) XARGS=--release diff --git a/standalone/teeworker/ceseal/gramine-build/Makefile b/standalone/teeworker/ceseal/gramine-build/Makefile index dadbf749..a43ef7a4 100644 --- a/standalone/teeworker/ceseal/gramine-build/Makefile +++ b/standalone/teeworker/ceseal/gramine-build/Makefile @@ -54,7 +54,10 @@ ${BIN_FILE}: @echo "IAS_ENV: ${IAS_ENV}" @echo "IAS_SPID: ${IAS_SPID}" @echo "IAS_API_KEY: ${IAS_API_KEY}" - make BUILD=${BUILD} -C .. + @echo "BUILD: ${BUILD}" + @echo "OA: ${OA}" + @echo "VC: ${VC}" + make BUILD=${BUILD} OA=${OA} VC=${VC} -C .. ${BIN_NAME}: ${BIN_FILE} cp ${BIN_FILE} ${BIN_NAME}