Add linaro gcc for compiling on host on aarch64

This commit is contained in:
Catalin Toda
2020-03-27 20:16:27 -07:00
parent 6454a7196b
commit 7ec5ec3f93
4 changed files with 64 additions and 11 deletions

View File

@@ -122,6 +122,17 @@ if [ -n "${DISTRO_DEPS_PKG}" ] ; then
deps_pkg+=(${DISTRO_DEPS_PKG})
fi
# aarch64 dependencies
if [ "$(uname -m)" = "aarch64" ]; then
if [ ! -f /lib64/ld-linux-x86-64.so.2 -a ! -f /lib/x86_64-linux-gnu/libc.so.6 ]; then
printf "Copy from a working x86_64 system:\n\t/lib64/libc.so.6\n\t/lib/x86_64-linux-gnu/libc.so.6\n"
fi
files+=(/lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/libc.so.6)
files_pkg+=(libc6:amd64 libc6:amd64)
deps+=(qemu-x86_64)
deps_pkg+=(qemu-user-binfmt)
fi
get_deps
if [ "${#need[@]}" -gt 0 ]; then