forked from pool/supermin
4a80d0a52d
* initrd: Support ztd-compressed modules * pacman: Recognise Artix, an Arch derivative * Add a separate variable to store link flags, and use that to supply * Add appropriate globs for arm based kernels. The file names end in -arm64 but the architecture is named aarch64. * Add support for OCaml 5.0 * Add LFS support for fts functions * Numerous bug fixes - Upstream bug fixes and features 001-Improved-debugging-of-the-supermin-if-newer-calculation.patch 002-Fix-if-newer-copy-kernel.patch 003-Fix-kernel-filtering-for-aarch64-architecture.patch 004-Use-output-complete-exe-instead-of-custom.patch 005-Only-supply-output-complete-exe-to-final-link.patch 006-Rename-function-file-kernel.patch 007-Uncompress-kernel-on-RISC-V.patch 008-Fix-link-to-renamed-kernel-documentation.patch 009-New-mailing-list-email-address.patch - Dropped initrd_support_ztd-compressed_modules.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/supermin?expand=0&rev=84
19 lines
967 B
Diff
19 lines
967 B
Diff
Subject: src/format_ext2_kernel.ml: Fix kernel filtering for aarch64 architecture
|
|
From: Simon Fischer 1522981+Fischer-Simon@users.noreply.github.com Wed Jul 12 17:10:53 2023 +0200
|
|
Date: Wed Jul 12 17:10:53 2023 +0200:
|
|
Git: 4b3922feb65150f3423d0877038c5ba6e16d910c
|
|
|
|
Add appropriate globs for arm based kernels. The file names end in -arm64 but the architecture is named aarch64.
|
|
diff --git a/src/format_ext2_kernel.ml b/src/format_ext2_kernel.ml
|
|
index 6d2e699..4589552 100644
|
|
--- a/src/format_ext2_kernel.ml
|
|
+++ b/src/format_ext2_kernel.ml
|
|
@@ -187,6 +187,7 @@ and patt_of_cpu host_cpu =
|
|
| "amd64" | "x86_64" -> ["amd64"; "x86_64"]
|
|
| "parisc" | "parisc64" -> ["hppa"; "hppa64"]
|
|
| "ppc64el" -> ["powerpc64le"]
|
|
+ | "aarch64" -> ["aarch64"; "arm64"]
|
|
| _ when host_cpu.[0] = 'i' && host_cpu.[2] = '8' && host_cpu.[3] = '6' -> ["?86"]
|
|
| _ when String.length host_cpu >= 5 && String.sub host_cpu 0 5 = "armv7" -> ["armmp"]
|
|
| _ -> [host_cpu]
|