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:
parent
931675450d
commit
7541a0ca36
|
@ -120,7 +120,8 @@ initialize_chroot() {
|
||||||
# shellcheck disable=SC3057
|
# shellcheck disable=SC3057
|
||||||
arch_substr="${host_arch:0:3}"
|
arch_substr="${host_arch:0:3}"
|
||||||
if [ "$arch" = "$host_arch" ] || \
|
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
|
need_cross_compiler=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue