Index: tools/utils.py |
=================================================================== |
--- tools/utils.py (revision 44804) |
+++ tools/utils.py (working copy) |
@@ -48,7 +48,9 @@ |
# Try to guess the host architecture. |
def GuessArchitecture(): |
os_id = platform.machine() |
- if os_id.startswith('arm'): |
+ if os_id.startswith('armv5'): |
+ return 'armv5' |
+ elif os_id.startswith('arm'): |
return 'arm' |
elif os_id.startswith('aarch64'): |
return 'arm64' |
@@ -220,6 +222,7 @@ |
'ia32': 'ia32', |
'x64': 'ia32', |
'arm': 'arm', |
+ 'armv5': 'arm', |
'arm64': 'arm', |
'mips': 'mips', |
'simarm': 'ia32', |
@@ -553,7 +556,11 @@ |
else: |
arch = GuessArchitecture() |
system = GuessOS() |
- if arch == 'arm': |
+ if arch == 'armv5': |
+ # TODO(zra): This binary does not exist, yet. Check one in once we have |
+ # sufficient stability. |
+ return os.path.join(dart_binary_prefix, system, 'dart-armv5') |
+ elif arch == 'arm': |
return os.path.join(dart_binary_prefix, system, 'dart-arm') |
elif arch == 'arm64': |
return os.path.join(dart_binary_prefix, system, 'dart-arm64') |