Browse Source

[cipd] Detect mips64le vs mips64.

Bug: 867819
Change-Id: Iff107adb7efe366c5ab58f5221c1b9bf3ebb7d5f
Reviewed-on: https://chromium-review.googlesource.com/1159545
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
Wang Qing 7 years ago
parent
commit
82bb756217
1 changed files with 4 additions and 0 deletions
  1. 4 0
      cipd

+ 4 - 0
cipd

@@ -59,7 +59,11 @@ case $UNAME in
     ARCH=386
     ;;
   mips*)
+    # detect mips64le vs mips64.
     ARCH=$UNAME
+    if lscpu | grep -q "Little Endian"; then
+      ARCH+=le
+    fi
     ;;
   *)
     echo "UNKNOWN Machine architecture: $UNAME"