Add riscv64 architecture detection

Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
Bug: 1331190
Change-Id: I7c751e5cf02f088f2145c3c701547f0412f2bd69
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3686858
Reviewed-by: Gavin Mak <gavinmak@google.com>
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
changes/58/3686858/2
Rebecca Chang Swee Fun 3 years ago committed by LUCI CQ
parent 8199bccb81
commit eb16162e00

@ -72,6 +72,9 @@ if [ -z $ARCH ]; then
ARCH+=le
fi
;;
riscv64)
ARCH=riscv64
;;
*)
>&2 echo "UNKNOWN Machine architecture: ${UNAME}"
exit 1

@ -33,6 +33,8 @@ def HostArch():
host_arch = 'ppc'
elif host_arch.startswith('s390'):
host_arch = 's390'
elif host_arch.startswith('riscv'):
host_arch = 'riscv64'
# platform.machine is based on running kernel. It's possible to use 64-bit

Loading…
Cancel
Save