eBPF-based security platform
ci: publish arm64 kernel packages for VM tests
Andrea Lattuadab91c0470f4d1
diff --git a/testing/kernel/build-kernel.sh b/testing/kernel/build-kernel.shindex 1bfa2da5..397a64d7 100755--- a/testing/kernel/build-kernel.sh+++ b/testing/kernel/build-kernel.sh@@ -27,8 +27,8 @@ usage: ${0##*/} [options]are installed, otherwise gcc)-b, --base BASE defconfig (default) or a path to a .config tostart from instead of the arch defconfig- --profile PROFILE full (default) hardened packages or ci (small- VM-test kernel)+ --profile PROFILE full (default) hardened packages or ci+ (VM-test kernel for x86-64 or arm64)--localversion S use S verbatim as CONFIG_LOCALVERSION instead ofthe kernel.conf value plus -YYYYMMDD (build day)--module-key PEM sign modules with this key+certificate PEM@@ -150,9 +150,12 @@ full)BLACKLIST="$REPO/blacklist.conf";;ci)- [ "$ARCH" = x86-64 ] || die "--profile ci supports only --arch x86-64"+ case "$ARCH" in+ x86-64|arm64) ;;+ *) die "--profile ci supports only --arch x86-64 or arm64" ;;+ esac[ "$BASE" = defconfig ] || die "--base cannot be combined with --profile ci"- FRAGMENTS=("$REPO/kernel-ci.conf")+ FRAGMENTS=("$REPO/kernel-ci.conf" "$REPO/kernel-ci.$ARCH.conf")BLACKLIST="";;*) die "unsupported --profile $PROFILE (full, ci)" ;;diff --git a/testing/kernel/kernel-ci.arm64.conf b/testing/kernel/kernel-ci.arm64.confnew file mode 100644index 00000000..99a29085--- /dev/null+++ b/testing/kernel/kernel-ci.arm64.conf@@ -0,0 +1,9 @@+# Use the arm64 page size used by the target kernel. [S]+CONFIG_ARM64_4K_PAGES=y+# The QEMU virt machine uses generic PCI for its disks, network and 9p+# shares, and a PL011 for the ttyAMA0 console. [S]+CONFIG_PCI_HOST_GENERIC=y+CONFIG_SERIAL_AMBA_PL011=y+CONFIG_SERIAL_AMBA_PL011_CONSOLE=y+# arm64 ftrace direct calls require call-ops support. [S]+CONFIG_DYNAMIC_FTRACE_WITH_CALL_OPS=ydiff --git a/testing/kernel/kernel-ci.conf b/testing/kernel/kernel-ci.confindex 591a155f..b16dad98 100644--- a/testing/kernel/kernel-ci.conf+++ b/testing/kernel/kernel-ci.conf@@ -1,4 +1,4 @@-# kernel-ci.conf: minimal test-kernel configuration. [S]+# kernel-ci.conf: common configuration for the x86-64 and arm64 test VMs. [S]# This profile builds a small, non-deployable kernel for shirudo CI. [S]CONFIG_LOCALVERSION="-shirudo-ci"CONFIG_64BIT=y@@ -158,20 +158,3 @@ CONFIG_NF_FLOW_TABLE_INET=mCONFIG_NF_FLOW_TABLE_PROCFS=yCONFIG_PROC_FS=yCONFIG_CC_OPTIMIZE_FOR_SIZE=y-# QEMU x86-64 VM boot support. [S]-CONFIG_X86_64=y-CONFIG_X86=y-CONFIG_HYPERVISOR_GUEST=y-CONFIG_PARAVIRT=y-CONFIG_PARAVIRT_CLOCK=y-CONFIG_KVM_GUEST=y-CONFIG_KEXEC=y-CONFIG_SERIAL_8250=y-CONFIG_SERIAL_8250_CONSOLE=y-CONFIG_KERNEL_XZ=y-CONFIG_KERNEL_GZIP=n-CONFIG_KERNEL_ZSTD=n-CONFIG_KERNEL_LZMA=n-CONFIG_KERNEL_LZO=n-CONFIG_KERNEL_LZ4=n-CONFIG_KERNEL_UNCOMPRESSED=ndiff --git a/testing/kernel/kernel-ci.x86-64.conf b/testing/kernel/kernel-ci.x86-64.confnew file mode 100644index 00000000..875b7988--- /dev/null+++ b/testing/kernel/kernel-ci.x86-64.conf@@ -0,0 +1,17 @@+# QEMU x86-64 VM boot support. [S]+CONFIG_X86_64=y+CONFIG_X86=y+CONFIG_HYPERVISOR_GUEST=y+CONFIG_PARAVIRT=y+CONFIG_PARAVIRT_CLOCK=y+CONFIG_KVM_GUEST=y+CONFIG_KEXEC=y+CONFIG_SERIAL_8250=y+CONFIG_SERIAL_8250_CONSOLE=y+CONFIG_KERNEL_XZ=y+CONFIG_KERNEL_GZIP=n+CONFIG_KERNEL_ZSTD=n+CONFIG_KERNEL_LZMA=n+CONFIG_KERNEL_LZO=n+CONFIG_KERNEL_LZ4=n+CONFIG_KERNEL_UNCOMPRESSED=n