Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile: add more platforms to Makefile #425

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TEE_PLATFORM ?= test
TEE_PLATFORM ?= fs
ARCH ?= $(shell uname -m)

DESTDIR ?= /usr/local/bin
Expand All @@ -7,16 +7,24 @@ LIBC ?= musl
KBC ?=
RESOURCE_PROVIDER ?= kbs

ifeq ($(TEE_PLATFORM), test)
ifeq ($(TEE_PLATFORM), none)
KBC = cc_kbc
else ifeq ($(TEE_PLATFORM), fs)
KBC = offline_fs_kbc
else ifeq ($(TEE_PLATFORM), tdx)
LIBC = gnu
KBC = cc_kbc_tdx
else ifeq ($(TEE_PLATFORM), az-tdx-vtpm)
KBC = cc_kbc_az_tdx_vtpm
else ifeq ($(TEE_PLATFORM), sev)
KBC = online_sev_kbc
RESOURCE_PROVIDER = sev
else ifeq ($(TEE_PLATFORM), snp)
KBC = cc_kbc_snp
else ifeq ($(TEE_PLATFORM), az-snp-vtpm)
KBC = cc_kbc_az_snp_vtpm
endif
# TODO: Add support for SNP, Az-snp-vtpm, CCA, CSV
# TODO: Add support for CCA and CSV

ifeq ($(ARCH), $(filter $(ARCH), s390x powerpc64le))
LIBC = gnu
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,21 @@ CoCo Keyprovider. Used to encrypt the container images.

## Build

A `Makefile` is provided to quickly build Attestation Agent/Api Server Rest/Confidential Data Hub of a given platform.
A `Makefile` is provided to quickly build Attestation Agent/Api Server Rest/Confidential Data Hub for a given platform.

```shell
make build TEE_PLATFORM=$(TEE_PLATFORM)
make install DESTDIR=/usr/local/bin
```

The `TEE_PLATFORM` parameter can be
- `test`: for test
- `none`: for tests with non-confidential guests
- `fs`: for platforms with encrypted root filesystems (i.e. s390x)
- `tdx`: for Intel TDX
- `sev`: for AMD SEV
- `az-tdx-vtpm`: for Intel TDX with Azure vTPM
- `sev`: for AMD SEV(-ES)
- `snp`: for AMD SEV-SNP
- `az-snp-vtpm`: for AMD SEV-SNP with Azure vTPM

## License
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.jparrowsec.cn%2Fconfidential-containers%2Fimage-rs.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.jparrowsec.cn%2Fconfidential-containers%2Fimage-rs?ref=badge_large)
Loading