Merge pull request #4660 from fidencio/topic/cc-build-and-ship-tdx-clh

CC | packaging: Build and ship Cloud Hypervisor
This commit is contained in:
Fabiano Fidêncio
2022-07-14 12:24:05 +02:00
committed by GitHub
2 changed files with 10 additions and 0 deletions

View File

@@ -85,6 +85,9 @@ cc: cc-cloud-hypervisor-tarball \
cc-cloud-hypervisor-tarball:
${MAKE} $@-build
cc-tdx-cloud-hypervisor-tarball:
${MAKE} $@-build
cc-kernel-tarball:
${MAKE} $@-build

View File

@@ -108,6 +108,11 @@ install_cc_clh() {
sudo install -D --owner root --group root --mode 0744 cloud-hypervisor/cloud-hypervisor "${destdir}/${cc_prefix}/bin/cloud-hypervisor"
}
# Install static CC cloud-hypervisor asset
install_tdx_cc_clh() {
install_cc_clh
}
#Install cc capable guest image
install_cc_image() {
info "Create CC image"
@@ -291,6 +296,8 @@ handle_build() {
cc-cloud-hypervisor) install_cc_clh ;;
cc-tdx-cloud-hypervisor) install_tdx_cc_clh ;;
cc-kernel) install_cc_kernel ;;
cc-tdx-kernel) install_cc_tdx_kernel ;;