Skip to content

Commit

Permalink
Makefile: add more platforms to Makefile
Browse files Browse the repository at this point in the history
Adds SNP, AZ-SNP-vTPM, and AZ-TDX-vTPM to the
top-level Makefile.

Also changes the name of the offline_fs_kbc flag
to fs rather than test.

Signed-off-by: Tobin Feldman-Fitzthum <[email protected]>
  • Loading branch information
fitzthum committed Jan 3, 2024
1 parent a1d5eed commit 46776bb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
12 changes: 9 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,22 @@ LIBC ?= musl
KBC ?=
RESOURCE_PROVIDER ?= kbs

ifeq ($(TEE_PLATFORM), test)
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
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,20 @@ 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
- `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)

0 comments on commit 46776bb

Please sign in to comment.