Commit 23fc0930 authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit 3659318a6617a2076e8809de2e9e8be1ab68e935 (HEAD -> master)

Author: Vitaly Lipatov <lav@etersoft.ru> Date: Tue Feb 16 00:31:41 2021 +0300 distro_info: fix get_arch for arm64 and armv7
parent 54514434
......@@ -475,8 +475,13 @@ case "$DIST_ARCH" in
'9000/800')
DIST_ARCH="parisc"
;;
armv*)
if [ -z "$(readelf -A /proc/self/exe | grep Tag_ABI_VFP_args)" ] ; then
'arm64' | 'aarch64')
DIST_ARCH='aarch64'
;;
armv7*)
# TODO: use uname only
# uses binutils package
if which readelf >/dev/null 2>/dev/null && [ -z "$(readelf -A /proc/self/exe | grep Tag_ABI_VFP_args)" ] ; then
DIST_ARCH="armel"
else
DIST_ARCH="armhf"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment