Skip to content

Commit

Permalink
opt: let build option OV, VC enabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbillw committed Aug 3, 2024
1 parent 018cc6d commit f190bb7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
BUILD?=release
XARGS =
OA?=1
VC?=1
XARGS=
DEV=
ifeq ($(DEV),1)
OA=0
VC=0
BUILD=debug
endif
ifeq ($(BUILD),release)
XARGS = --release
endif
Expand Down Expand Up @@ -34,4 +42,4 @@ lint:

clean:
cargo clean
make -C standalone/teeworker/ceseal clean
make -C standalone/teeworker/ceseal clean
4 changes: 2 additions & 2 deletions scripts/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ image_id=
image_tag=
publish=0
OA=1
VC=0
VC=1

function usage() {
cat <<EOF
Expand All @@ -27,7 +27,7 @@ Options:
-t <image tag> specific the tag name of the image, exclusion from option -s
-x <proxy address> use proxy access network in build
-o <enable 'only-attestation' feature to build> options: 1(default) or 0
-v <enable 'verify-cesealbin' feature to build> options: 1 or 0(default)
-v <enable 'verify-cesealbin' feature to build> options: 1(default) or 0
-m <method of ceseal attestation> options:dcap or epid(default)
-l <docker build runtime log print out> options: 1 or 0(default)
-c <ceseal build version> 8-digit integer, date +%y%m%d%H for default value
Expand Down
2 changes: 2 additions & 0 deletions standalone/teeworker/ceseal/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
BUILD?=release
OA?=1
VC?=1
ifeq ($(BUILD),release)
XARGS=--release
endif
Expand Down
2 changes: 2 additions & 0 deletions standalone/teeworker/ceseal/gramine-build/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
SGX_SIGNER_KEY ?= ./private.dev.pem
SGX ?= 1
BUILD ?= release
OA?=1
VC?=1

ARCH_LIBDIR ?= /lib/$(shell $(CC) -dumpmachine)

Expand Down

0 comments on commit f190bb7

Please sign in to comment.