Skip to content

Commit

Permalink
CLI: specify ATTESTER for to build kbs-client
Browse files Browse the repository at this point in the history
- Add ATTESTER in Makefile to specify seperate attester
  for kbs-client

Signed-off-by: Lei Li <[email protected]>
Signed-off-by: Lei Li <[email protected]>
  • Loading branch information
Lei Li authored and fitzthum committed Jun 27, 2024
1 parent 5229425 commit b9ab551
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
11 changes: 10 additions & 1 deletion kbs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ ifeq ($(filter $(ARCH),x86_64 s390x),)
$(error "Unsupported architecture: $(ARCH)")
endif

CLI_FEATURES ?= default
CLI_FEATURES ?=
ATTESTER ?=

COCO_AS_INTEGRATION_TYPE ?= builtin

Expand All @@ -20,6 +21,14 @@ else
AS_FEATURE = $(AS_TYPE)
endif

ifndef CLI_FEATURES
ifdef ATTESTER
CLI_FEATURES = "sample_only,$(ATTESTER)"
else
CLI_FEATURES += "sample_only,all-attesters"
endif
endif

build: background-check-kbs

.PHONY: background-check-kbs
Expand Down
10 changes: 10 additions & 0 deletions kbs/tools/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ tokio.workspace = true
[features]
default = ["kbs_protocol/default"]
sample_only = ["kbs_protocol/background_check", "kbs_protocol/passport", "kbs_protocol/rust-crypto"]

all-attesters = ["kbs_protocol/all-attesters"]
tdx-attester = ["kbs_protocol/tdx-attester"]
sgx-attester = ["kbs_protocol/sgx-attester"]
az-snp-vtpm-attester = ["kbs_protocol/az-snp-vtpm-attester"]
az-tdx-vtpm-attester = ["kbs_protocol/az-tdx-vtpm-attester"]
snp-attester = ["kbs_protocol/snp-attester"]
csv-attester = ["kbs_protocol/csv-attester"]
cca-attester = ["kbs_protocol/cca-attester"]
se-attester = ["kbs_protocol/se-attester"]

0 comments on commit b9ab551

Please sign in to comment.