mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-24 02:31:12 +00:00
packaging: Build and ship Cloud Hypervisor
We're adding a new target for building a TDX capable Cloud Hypervisor for CC. As the current version of Cloud Hypervisor is already built with TDX support, we just rely on calling the same `install_cc_clh()` function, as done for the non-tee `cc` target. Fixes: #4659 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
64a9363925
commit
8488d02c23
@ -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
|
||||
|
||||
|
@ -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 ;;
|
||||
|
Loading…
Reference in New Issue
Block a user