aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2022-03-24 15:21:24 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2022-04-06 17:14:45 +0200
commit975824663d2c65cf7a4d7829fa95f118b675c3be (patch)
treea9702c0d58656fc3501b56afebc458245ce1de6b /pkg/build
parent7c75a0aeb6895e59ccd78885a5021ec9fac6bea2 (diff)
pkg/build: support compressed arm64 kernels
Presently Linux doesn't support bzImage/zImage for arm64, but at least we can use Image.gz.
Diffstat (limited to 'pkg/build')
-rw-r--r--pkg/build/linux.go2
-rw-r--r--pkg/build/linux_linux.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/build/linux.go b/pkg/build/linux.go
index 3947463de..775991664 100644
--- a/pkg/build/linux.go
+++ b/pkg/build/linux.go
@@ -217,7 +217,7 @@ func kernelBin(arch string) string {
case targets.ARM:
return "arch/arm/boot/zImage"
case targets.ARM64:
- return "arch/arm64/boot/Image"
+ return "arch/arm64/boot/Image.gz"
case targets.RiscV64:
return "arch/riscv/boot/Image"
case targets.MIPS64LE:
diff --git a/pkg/build/linux_linux.go b/pkg/build/linux_linux.go
index b46356db3..adf830ea9 100644
--- a/pkg/build/linux_linux.go
+++ b/pkg/build/linux_linux.go
@@ -67,7 +67,7 @@ func embedLinuxKernel(params Params, kernelPath string) error {
func copyKernel(mountDir, kernelPath string) error {
// Try several common locations where the kernel can be.
- for _, targetPath := range []string{"boot/vmlinuz", "boot/bzImage", "vmlinuz", "bzImage"} {
+ for _, targetPath := range []string{"boot/vmlinuz", "boot/bzImage", "vmlinuz", "bzImage", "Image.gz"} {
fullPath := filepath.Join(mountDir, filepath.FromSlash(targetPath))
if !osutil.IsExist(fullPath) {
continue