-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathMakefile
35 lines (26 loc) · 858 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
ifdef STRACE
OPTS = --strace
endif
all: build
build: ext2rootfs package
appdir:
@myst-appbuilder Dockerfile
ext2rootfs: appdir
@echo "Building a ext2 file system to run in Mystikos"
@myst mkext2 appdir ext2rootfs
@echo "Dumping roothash merkel tree"
@myst fssig --roothash ext2rootfs > roothash
runexec: ext2rootfs
@echo "Running application in ext2 file system with myst exec-sgx"
@myst exec-sgx $(OPTS) ext2rootfs /app/hello
package.pem:
@echo "Generating a signing key"
openssl genrsa -out package.pem -3 3072
package: package.pem ext2rootfs
@echo "Generating a signed package"
@myst package-sgx --roothash=roothash package.pem config.json
run: package
@echo "Running Mystikos packaged application. No myst exec-sgx necessary"
./myst/bin/hello --rootfs=ext2rootfs $(OPTS)
clean:
@rm -rf appdir ext2rootfs package.pem myst roothash