Blame 0009-src-format_ext2_kernel.ml-Fix-kernel-filtering-for-a.patch

2417d4b
From 4b3922feb65150f3423d0877038c5ba6e16d910c Mon Sep 17 00:00:00 2001
2417d4b
From: Simon Fischer <1522981+Fischer-Simon@users.noreply.github.com>
2417d4b
Date: Wed, 12 Jul 2023 17:10:53 +0200
2417d4b
Subject: [PATCH 09/13] src/format_ext2_kernel.ml: Fix kernel filtering for
2417d4b
 aarch64 architecture
2417d4b
2417d4b
Add appropriate globs for arm based kernels. The file names end in -arm64 but the architecture is named aarch64.
2417d4b
---
2417d4b
 src/format_ext2_kernel.ml | 1 +
2417d4b
 1 file changed, 1 insertion(+)
2417d4b
2417d4b
diff --git a/src/format_ext2_kernel.ml b/src/format_ext2_kernel.ml
2417d4b
index 6d2e699..4589552 100644
2417d4b
--- a/src/format_ext2_kernel.ml
2417d4b
+++ b/src/format_ext2_kernel.ml
2417d4b
@@ -187,6 +187,7 @@ and patt_of_cpu host_cpu =
2417d4b
     | "amd64" | "x86_64" -> ["amd64"; "x86_64"]
2417d4b
     | "parisc" | "parisc64" -> ["hppa"; "hppa64"]
2417d4b
     | "ppc64el" -> ["powerpc64le"]
2417d4b
+    | "aarch64" -> ["aarch64"; "arm64"]
2417d4b
     | _ when host_cpu.[0] = 'i' && host_cpu.[2] = '8' && host_cpu.[3] = '6' -> ["?86"]
2417d4b
     | _ when String.length host_cpu >= 5 && String.sub host_cpu 0 5 = "armv7" ->  ["armmp"]
2417d4b
     | _ -> [host_cpu]
2417d4b
-- 
2417d4b
2.42.0
2417d4b