packaging: Allow building the Kernel for CC

We're adding a new target for building the Kernel for CC, but it's
important to note that the only difference between this one and the
"vanilla" build is the installation path.

The reason we're taking this approach is because the first release
target for CC doesn't include TEE support.

Fixes: #4567

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio
2022-06-30 14:08:22 +02:00
parent caabd54b6e
commit c4cc16efcd
2 changed files with 11 additions and 0 deletions

View File

@@ -73,6 +73,9 @@ image: kata-tarball
cc-cloud-hypervisor-tarball:
${MAKE} $@-build
cc-kernel-tarball:
${MAKE} $@-build
cc-rootfs-image-tarball:
${MAKE} $@-build

View File

@@ -108,6 +108,12 @@ install_cc_image() {
"${rootfs_builder}" --imagetype=image --prefix="${cc_prefix}" --destdir="${destdir}"
}
#Install CC kernel asset
install_cc_kernel() {
export kernel_version="$(yq r $versions_yaml assets.kernel.version)"
DESTDIR="${destdir}" PREFIX="${cc_prefix}" "${kernel_builder}" -f -v "${kernel_version}"
}
#Install all components that are not assets
install_cc_shimv2() {
GO_VERSION="$(yq r ${versions_yaml} languages.golang.meta.newest-version)"
@@ -215,6 +221,8 @@ handle_build() {
cc-cloud-hypervisor) install_cc_clh ;;
cc-kernel) install_cc_kernel ;;
cc-rootfs-image) install_cc_image ;;
cc-shim-v2) install_cc_shimv2 ;;