Update the occlum.json to align with the gen_enclave_conf design. Below is the two updated structures: "metadata": { "product_id": 0, "version_number": 0, "debuggable": true }, "resource_limits": { "max_num_of_threads": 32, "kernel_space_heap_size": "32MB", "kernel_space_stack_size": "1MB", "user_space_size": "256MB" }
28 lines
793 B
Makefile
28 lines
793 B
Makefile
SGX_MODE ?= HW
|
|
|
|
ifneq ($(SGX_MODE), HW)
|
|
BUILD_DIR := build_sim
|
|
else
|
|
BUILD_DIR := build
|
|
endif
|
|
|
|
.PHONY: all format format-check clean
|
|
|
|
all:
|
|
@mkdir -p ../$(BUILD_DIR)/bin/
|
|
@ln -s -f ../../tools/occlum ../$(BUILD_DIR)/bin/occlum
|
|
@ln -s -f ../../tools/occlum-build-enclave ../$(BUILD_DIR)/bin/occlum-build-enclave
|
|
@ln -s -f ../../tools/occlum-gen-default-occlum-json ../$(BUILD_DIR)/bin/occlum-gen-default-occlum-json
|
|
@$(MAKE) --no-print-directory -C protect-integrity
|
|
@$(MAKE) --no-print-directory -C gen_enclave_conf
|
|
|
|
format:
|
|
@$(MAKE) --no-print-directory -C protect-integrity format
|
|
|
|
format-check:
|
|
@$(MAKE) --no-print-directory -C protect-integrity format-check
|
|
|
|
clean:
|
|
@$(MAKE) --no-print-directory -C protect-integrity clean
|
|
@$(MAKE) --no-print-directory -C gen_enclave_conf clean
|