From: Jami Kettunen Date: Mon, 30 Jan 2023 00:19:28 +0000 (+0200) Subject: arch: Fallback to arm on weird arm64 kernels with 32-bit userspace X-Git-Tag: 1.4.0~7 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/807341e11081fff4ace066e56f716d1c4471591c 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. --- 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