Merge pull request #5026 from Alex-Carter01/sev-ovmf-makefile

CC| packaging: Add AmdSev OVMF target for use in payload images
This commit is contained in:
Wainer Moschetta 2022-09-13 11:11:51 -03:00 committed by GitHub
commit 9b49a6ddc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -88,7 +88,8 @@ cc: cc-cloud-hypervisor-tarball \
cc-tdx-kernel-tarball \
cc-tdx-qemu-tarball \
cc-tdx-td-shim-tarball \
cc-tdx-tdvf-tarball
cc-tdx-tdvf-tarball \
cc-sev-ovmf-tarball
cc-cloud-hypervisor-tarball:
${MAKE} $@-build
@ -122,3 +123,6 @@ cc-tdx-td-shim-tarball:
cc-tdx-tdvf-tarball:
${MAKE} $@-build
cc-sev-ovmf-tarball:
${MAKE} $@-build

View File

@ -92,6 +92,7 @@ options:
cc-rootfs-image
cc-shimv2
cc-virtiofsd
cc-sev-ovmf
EOF
exit "${return_code}"
@ -207,6 +208,10 @@ install_cc_tdx_tdvf() {
install_cc_tee_ovmf "tdx" "edk2-staging-tdx.tar.gz"
}
install_cc_sev_ovmf(){
install_cc_tee_ovmf "sev" "edk2-sev.tar.gz"
}
#Install guest image
install_image() {
info "Create image"
@ -335,6 +340,8 @@ handle_build() {
cc-tdx-tdvf) install_cc_tdx_tdvf ;;
cc-sev-ovmf) install_cc_sev_ovmf ;;
cloud-hypervisor) install_clh ;;
firecracker) install_firecracker ;;