Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_component_crx_gen.py

Issue 152133007: [MIPS] Support for MIPS PNaCl in PPAPI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_component_crx_gen.py
diff --git a/ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_component_crx_gen.py b/ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_component_crx_gen.py
index 3d35b3f8fbdfedaec21585f80e1c716db66bd3a1..de416e0ff34c17e6fa24e2059374ee54dcd0170a 100755
--- a/ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_component_crx_gen.py
+++ b/ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_component_crx_gen.py
@@ -38,6 +38,8 @@ def CanonicalArch(arch):
# TODO(jvoung): be more specific about the arm architecture version?
if arch in ('arm', 'armv7'):
return 'arm'
+ if arch in ('mipsel'):
+ return 'mips32'
if re.match('^i.86$', arch) or arch in ('x86_32', 'x86-32', 'ia32', 'x86'):
return 'x86-32'
return None
@@ -47,7 +49,7 @@ def GetBuildArch():
return CanonicalArch(arch)
BUILD_ARCH = GetBuildArch()
-ARCHES = ['x86-32', 'x86-64', 'arm']
+ARCHES = ['x86-32', 'x86-64', 'arm', 'mips32']
def IsValidArch(arch):
return arch in ARCHES
@@ -56,7 +58,8 @@ def IsValidArch(arch):
def StandardArch(arch):
return {'x86-32': 'i686',
'x86-64': 'x86_64',
- 'arm' : 'armv7'}[arch]
+ 'arm' : 'armv7',
+ 'mips32': 'mips'}[arch]
######################################################################

Powered by Google App Engine
This is Rietveld 408576698