helper/envkernel.sh: fix for running envkernel on aarch64 host (MR 2135)

aarch64 is not recongised as arm64, and envkernel thinks that
cross-compiler is needed, while it shouldn't be.

Fixes #2075
This commit is contained in:
博麗霊夢 2021-10-29 02:15:36 +00:00 committed by Alexey Min
parent 931675450d
commit 7541a0ca36
No known key found for this signature in database
GPG Key ID: EBF5ECFFFEE34DED
1 changed files with 2 additions and 1 deletions

View File

@ -120,7 +120,8 @@ initialize_chroot() {
# shellcheck disable=SC3057
arch_substr="${host_arch:0:3}"
if [ "$arch" = "$host_arch" ] || \
{ [ "$arch_substr" = "arm" ] && [ "$arch_substr" = "$arch" ]; }; then
{ [ "$arch_substr" = "arm" ] && [ "$arch_substr" = "$arch" ]; } || \
{ [ "$arch" = "arm64" ] && [ "$host_arch" = "aarch64" ]; }; then
need_cross_compiler=0
fi