Эх сурвалжийг харах

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>
Rebecca Chang Swee Fun 3 жил өмнө
parent
commit
eb16162e00
2 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 3 0
      cipd
  2. 2 0
      detect_host_arch.py

+ 3 - 0
cipd

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

+ 2 - 0
detect_host_arch.py

@@ -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