mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-19 08:28:19 +00:00
packaging: Allow building a CC shim-v2 capable runtime
Let's add a new build target for our local-build scripts, cc-shim-v2, and use it to build Kata Containers properly configured for the CC use-case. Fixes: #4564 Depends-on: github.com/kata-containers/tests#4895 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
7ceeeba9a2
commit
df486533fa
@ -72,3 +72,6 @@ image: kata-tarball
|
||||
|
||||
cc-rootfs-image-tarball:
|
||||
${MAKE} $@-build
|
||||
|
||||
cc-shim-v2-tarball:
|
||||
${MAKE} $@-build
|
||||
|
@ -95,6 +95,14 @@ install_cc_image() {
|
||||
"${rootfs_builder}" --imagetype=image --prefix="${cc_prefix}" --destdir="${destdir}"
|
||||
}
|
||||
|
||||
#Install all components that are not assets
|
||||
install_cc_shimv2() {
|
||||
GO_VERSION="$(yq r ${versions_yaml} languages.golang.meta.newest-version)"
|
||||
export GO_VERSION
|
||||
export REMOVE_VMM_CONFIGS="acrn fc"
|
||||
DESTDIR="${destdir}" PREFIX="${cc_prefix}" EXTRA_OPTS="DEFSERVICEOFFLOAD=true" "${shimv2_builder}"
|
||||
}
|
||||
|
||||
#Install guest image
|
||||
install_image() {
|
||||
info "Create image"
|
||||
@ -194,6 +202,8 @@ handle_build() {
|
||||
|
||||
cc-rootfs-image) install_cc_image ;;
|
||||
|
||||
cc-shim-v2) install_cc_shimv2 ;;
|
||||
|
||||
cloud-hypervisor) install_clh ;;
|
||||
|
||||
firecracker) install_firecracker ;;
|
||||
@ -242,6 +252,7 @@ main() {
|
||||
local silent
|
||||
build_targets=(
|
||||
cc-rootfs-image
|
||||
cc-shim-v2
|
||||
cloud-hypervisor
|
||||
firecracker
|
||||
kernel
|
||||
|
Loading…
Reference in New Issue
Block a user