| Index: pydir/crosstest_generator.py
|
| diff --git a/pydir/crosstest_generator.py b/pydir/crosstest_generator.py
|
| index c634586131e4ac4e72b11a4eeaa41fb551fc7236..cc804cb088f49b6450058688f3da596d99db2a29 100755
|
| --- a/pydir/crosstest_generator.py
|
| +++ b/pydir/crosstest_generator.py
|
| @@ -39,6 +39,8 @@ 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',
|
| @@ -50,6 +52,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 +69,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'] }
|
| flat_attrs = []
|
| for v in arch_attrs.values():
|
| flat_attrs += v
|
| arch_flags = { 'x8632': [],
|
| 'x8664': [],
|
| - 'arm32': [] }
|
| + 'arm32': [],
|
| + 'mips32': []}
|
| # all_keys is only used in the help text.
|
| all_keys = '; '.join([' '.join(targets), ' '.join(sandboxing),
|
| ' '.join(opt_levels), ' '.join(flat_attrs)])
|
|
|