mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-17 15:38:00 +00:00
local-build: add build target boot-image-se
This is to add a build target boot-image-se for s390x. Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
This commit is contained in:
parent
a63a6959d1
commit
4de8ef3d18
@ -134,6 +134,9 @@ qemu-snp-experimental-tarball:
|
|||||||
qemu-tarball:
|
qemu-tarball:
|
||||||
${MAKE} $@-build
|
${MAKE} $@-build
|
||||||
|
|
||||||
|
boot-image-se-tarball: kernel-tarball rootfs-initrd-tarball
|
||||||
|
${MAKE} $@-build
|
||||||
|
|
||||||
qemu-tdx-experimental-tarball:
|
qemu-tdx-experimental-tarball:
|
||||||
${MAKE} $@-build
|
${MAKE} $@-build
|
||||||
|
|
||||||
|
@ -119,6 +119,8 @@ docker run \
|
|||||||
--env VIRTIOFSD_CONTAINER_BUILDER="${VIRTIOFSD_CONTAINER_BUILDER}" \
|
--env VIRTIOFSD_CONTAINER_BUILDER="${VIRTIOFSD_CONTAINER_BUILDER}" \
|
||||||
--env MEASURED_ROOTFS="${MEASURED_ROOTFS}" \
|
--env MEASURED_ROOTFS="${MEASURED_ROOTFS}" \
|
||||||
--env USE_CACHE="${USE_CACHE}" \
|
--env USE_CACHE="${USE_CACHE}" \
|
||||||
|
--env AA_KBC="${AA_KBC:-}" \
|
||||||
|
--env HKD_PATH="$(realpath "${HKD_PATH:-}" 2> /dev/null || true)" \
|
||||||
--env CROSS_BUILD="${CROSS_BUILD}" \
|
--env CROSS_BUILD="${CROSS_BUILD}" \
|
||||||
--env TARGET_ARCH="${TARGET_ARCH}" \
|
--env TARGET_ARCH="${TARGET_ARCH}" \
|
||||||
--env ARCH="${ARCH}" \
|
--env ARCH="${ARCH}" \
|
||||||
|
@ -36,6 +36,7 @@ readonly virtiofsd_builder="${static_build_dir}/virtiofsd/build.sh"
|
|||||||
readonly nydus_builder="${static_build_dir}/nydus/build.sh"
|
readonly nydus_builder="${static_build_dir}/nydus/build.sh"
|
||||||
readonly rootfs_builder="${repo_root_dir}/tools/packaging/guest-image/build_image.sh"
|
readonly rootfs_builder="${repo_root_dir}/tools/packaging/guest-image/build_image.sh"
|
||||||
readonly tools_builder="${static_build_dir}/tools/build.sh"
|
readonly tools_builder="${static_build_dir}/tools/build.sh"
|
||||||
|
readonly se_image_builder="${repo_root_dir}/tools/packaging/guest-image/build_se_image.sh"
|
||||||
|
|
||||||
ARCH=${ARCH:-$(uname -m)}
|
ARCH=${ARCH:-$(uname -m)}
|
||||||
MEASURED_ROOTFS=${MEASURED_ROOTFS:-no}
|
MEASURED_ROOTFS=${MEASURED_ROOTFS:-no}
|
||||||
@ -86,6 +87,7 @@ options:
|
|||||||
agent
|
agent
|
||||||
agent-opa
|
agent-opa
|
||||||
agent-ctl
|
agent-ctl
|
||||||
|
boot-image-se
|
||||||
cloud-hypervisor
|
cloud-hypervisor
|
||||||
cloud-hypervisor-glibc
|
cloud-hypervisor-glibc
|
||||||
firecracker
|
firecracker
|
||||||
@ -259,6 +261,11 @@ install_initrd_sev() {
|
|||||||
install_initrd "sev"
|
install_initrd "sev"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_se_image() {
|
||||||
|
info "Create IBM SE image configured with AA_KBC=${AA_KBC}"
|
||||||
|
"${se_image_builder}" --destdir="${destdir}"
|
||||||
|
}
|
||||||
|
|
||||||
#Install kernel component helper
|
#Install kernel component helper
|
||||||
install_cached_kernel_tarball_component() {
|
install_cached_kernel_tarball_component() {
|
||||||
local kernel_name=${1}
|
local kernel_name=${1}
|
||||||
@ -780,6 +787,8 @@ handle_build() {
|
|||||||
|
|
||||||
agent-ctl) install_agent_ctl ;;
|
agent-ctl) install_agent_ctl ;;
|
||||||
|
|
||||||
|
boot-image-se) install_se_image ;;
|
||||||
|
|
||||||
cloud-hypervisor) install_clh ;;
|
cloud-hypervisor) install_clh ;;
|
||||||
|
|
||||||
cloud-hypervisor-glibc) install_clh_glibc ;;
|
cloud-hypervisor-glibc) install_clh_glibc ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user