Index: pydir/crosstest_generator.py |
diff --git a/pydir/crosstest_generator.py b/pydir/crosstest_generator.py |
index c634586131e4ac4e72b11a4eeaa41fb551fc7236..bf0348980480fd82cca088ffdf39e7a89141486c 100755 |
--- a/pydir/crosstest_generator.py |
+++ b/pydir/crosstest_generator.py |
@@ -39,10 +39,13 @@ def RunNativePrefix(toolchain_root, target, attr, run_cmd): |
'x8664' : '', |
'arm32' : os.path.join(toolchain_root, 'arm_trusted', |
'run_under_qemu_arm'), |
+ 'mips32': os.path.join(toolchain_root, 'mips_trusted', |
+ 'run_under_qemu_mips32'), |
} |
attr_map = collections.defaultdict(str, { |
'arm32-neon': ' -cpu cortex-a9', |
- 'arm32-hwdiv-arm': ' -cpu cortex-a15' }) |
+ 'arm32-hwdiv-arm': ' -cpu cortex-a15', |
+ 'mips32-base': ' -cpu mips32r5-generic'}) |
prefix = arch_map[target] + attr_map[target + '-' + attr] |
return (prefix + ' ' + run_cmd) if prefix else run_cmd |
@@ -50,6 +53,7 @@ def NonsfiLoaderArch(target): |
"""Returns the arch for the nonsfi_loader""" |
arch_map = { 'arm32' : 'arm', |
'x8632' : 'x86-32', |
+ 'mips32' : 'mips', |
} |
return arch_map[target] |
@@ -66,18 +70,20 @@ def main(): |
root = FindBaseNaCl() |
# The rest of the attribute sets. |
- targets = [ 'x8632', 'x8664', 'arm32' ] |
+ targets = [ 'x8632', 'x8664', 'arm32', 'mips32' ] |
sandboxing = [ 'native', 'sandbox', 'nonsfi' ] |
opt_levels = [ 'Om1', 'O2' ] |
arch_attrs = { 'x8632': [ 'sse2', 'sse4.1' ], |
'x8664': [ 'sse2', 'sse4.1' ], |
- 'arm32': [ 'neon', 'hwdiv-arm' ] } |
+ 'arm32': [ 'neon', 'hwdiv-arm' ], |
+ 'mips32': ['base'] } |
Jim Stichnoth
2016/08/23 14:56:49
[ 'base' ]
for consistency
obucinac
2016/09/05 16:55:59
Done.
|
flat_attrs = [] |
for v in arch_attrs.values(): |
flat_attrs += v |
arch_flags = { 'x8632': [], |
'x8664': [], |
- 'arm32': [] } |
+ 'arm32': [], |
+ 'mips32': []} |
Jim Stichnoth
2016/08/23 14:56:49
Add back in the space before the closing brace?
obucinac
2016/09/05 16:55:59
Done.
|
# all_keys is only used in the help text. |
all_keys = '; '.join([' '.join(targets), ' '.join(sandboxing), |
' '.join(opt_levels), ' '.join(flat_attrs)]) |