Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
ci: Add snp kernel build support to install_kata_kernel
Browse files Browse the repository at this point in the history
Fixes: #5593

Signed-off-by: Unmesh Deodhar <[email protected]>
  • Loading branch information
UnmeshDeodhar committed May 2, 2023
1 parent af9a990 commit a08386a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .ci/install_kata_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ build_and_install_kernel() {
tdx)
extra_opts="-s -x tdx"
;;
sev)
sev|snp)
extra_opts="-x sev"
;;
dragonball)
Expand All @@ -66,9 +66,12 @@ build_and_install_kernel_for_cc() {
local artifact="kernel"

case "$kernel_type" in
tdx|sev)
tdx)
artifact="${kernel_type}-${artifact}"
;;
sev|snp)
artifact="sev-${artifact}"
;;
vanilla) ;;
*)
die_unsupported_kernel_type "$kernel_type"
Expand Down Expand Up @@ -177,7 +180,7 @@ Usage:
Options:
-d : Enable bash debug.
-h : Display this help.
-t <kernel> : kernel type, such as vanilla, experimental, tdx, sev.
-t <kernel> : kernel type, such as vanilla, experimental, tdx, sev, snp.
EOF
exit "$exit_code"
}
Expand Down Expand Up @@ -215,6 +218,9 @@ main() {
sev)
install_kernel "${kernel_type}" $(get_version "assets.kernel.sev.version")
;;
snp)
install_kernel "${kernel_type}" $(get_version "assets.kernel.snp.version")
;;
dragonball)
install_kernel "${kernel_type}" $(get_version "assets.kernel-dragonball-experimental.version")
;;
Expand Down

0 comments on commit a08386a

Please sign in to comment.