Skip to content

Commit

Permalink
Update gramine-hello and gramine-nginx samples to be compatible with …
Browse files Browse the repository at this point in the history
…Gramine v1.8
  • Loading branch information
thomasten committed Oct 22, 2024
1 parent 2975151 commit 3da5c94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/gramine-hello/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ clean:
hello: hello.c
$(CC) -Os -o$@ $<

hello.manifest: hello.manifest.template
hello.manifest: hello.manifest.template premain-libos
gramine-manifest $< > $@

premain-libos:
Expand Down
5 changes: 2 additions & 3 deletions samples/gramine-nginx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $(NGINX_SRC).tar.gz:
wget -O $@ $(NGINX_URL)/$(NGINX_SRC).tar.gz
echo "$(NGINX_SHA256) $@" | sha256sum -c --status

nginx.manifest: nginx.manifest.template
nginx.manifest: nginx.manifest.template premain-libos
gramine-manifest \
-Dlog_level=$(GRAMINE_LOG_LEVEL) \
-Darch_libdir=$(ARCH_LIBDIR) \
Expand All @@ -66,8 +66,7 @@ nginx.manifest.sgx nginx.sig: sgx_sign
sgx_sign: nginx.manifest $(INSTALL_DIR)/sbin/nginx \
$(INSTALL_DIR)/conf/nginx-gramine.conf \
$(TEST_DATA) \
$(INSTALL_DIR)/conf/server.crt \
premain-libos
$(INSTALL_DIR)/conf/server.crt
gramine-sgx-sign \
--manifest $< \
--key $(SGX_SIGNER_KEY) \
Expand Down

0 comments on commit 3da5c94

Please sign in to comment.