Skip to content

Commit

Permalink
Detect MIPS64 hosts as "mips" architecture
Browse files Browse the repository at this point in the history
OCTEON II boards like the Edge Router Pro are actually MIPS64
processors.  So, platform.machine() reports them as "mips64".

BUG=

Review-Url: https://codereview.chromium.org/2061893002
Cr-Commit-Position: refs/heads/master@{#399900}
  • Loading branch information
brendan.kirby authored and Commit bot committed Jun 15, 2016
1 parent 1a8666e commit a321aeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ Bernard Cafarelli <voyageur@gentoo.org>
Bhanukrushana Rout <b.rout@samsung.com>
Bobby Powers <bobbypowers@gmail.com>
Branden Archer <bma4@zips.uakron.edu>
Brendan Kirby <brendan.kirby@imgtec.com>
Brendan Long <self@brendanlong.com>
Brian G. Merrell <bgmerrell@gmail.com>
Brian Konzman, SJ <b.g.konzman@gmail.com>
Expand Down
2 changes: 2 additions & 0 deletions build/detect_host_arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def HostArch():
host_arch = 'x64'
elif host_arch.startswith('arm'):
host_arch = 'arm'
elif host_arch.startswith('mips'):
host_arch = 'mips'

# platform.machine is based on running kernel. It's possible to use 64-bit
# kernel with 32-bit userland, e.g. to give linker slightly more memory.
Expand Down

0 comments on commit a321aeb

Please sign in to comment.