diff options
author | Paul Martin <paul.martin@codethink.co.uk> | 2015-06-16 12:30:27 +0000 |
---|---|---|
committer | Paul Martin <paul.martin@codethink.co.uk> | 2015-06-16 12:30:27 +0000 |
commit | 8c31ccfdf1d9f3198b68569d75f182354bb783d9 (patch) | |
tree | 49de24a4e47ec19bc196ce0995b337dc7f87ef1f /ybd.py | |
parent | 45e676d848624e00d30840317dae8c9a2e50f0b1 (diff) | |
download | ybd-8c31ccfdf1d9f3198b68569d75f182354bb783d9.tar.gz |
MIPS: Autodetect host platform and set target arch correctly
Diffstat (limited to 'ybd.py')
-rwxr-xr-x | ybd.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -41,6 +41,13 @@ if len(sys.argv) == 3: arch = sys.argv[2] else: arch = platform.machine() + if arch in ('mips', 'mips64'): + if arch == 'mips': + arch = 'mips32' + if sys.byteorder == 'big': + arch = arch + 'b' + else: + arch = arch + 'l' with app.setup(target, arch): with app.timer('TOTAL', 'ybd starts, version %s' % |