Commit eb16162e authored by Rebecca Chang Swee Fun's avatar Rebecca Chang Swee Fun Committed by LUCI CQ

Add riscv64 architecture detection

Signed-off-by: 's avatarRebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
Bug: 1331190
Change-Id: I7c751e5cf02f088f2145c3c701547f0412f2bd69
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3686858Reviewed-by: 's avatarGavin Mak <gavinmak@google.com>
Reviewed-by: 's avatarRobbie Iannucci <iannucci@chromium.org>
Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
parent 8199bccb
......@@ -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
......
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