From 807341e11081fff4ace066e56f716d1c4471591c Mon Sep 17 00:00:00 2001 From: Jami Kettunen Date: Mon, 30 Jan 2023 02:19:28 +0200 Subject: [PATCH] arch: Fallback to arm on weird arm64 kernels with 32-bit userspace Typically armv8l should catch these, but it seems some Android downstream kernels at least cheat and don't report the correct thing. --- tools/helpers/arch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/helpers/arch.py b/tools/helpers/arch.py index af18e66..735d344 100644 --- a/tools/helpers/arch.py +++ b/tools/helpers/arch.py @@ -24,5 +24,7 @@ def maybe_remap(target): if "sse4_2" not in f.read(): logging.info("x86_64 CPU does not support SSE4.2, falling back to x86...") return "x86" + elif target == "arm64" and platform.architecture()[0] == "32bit": + return "arm" return target -- 2.47.3