buildman: Allow 'gnueabihf' toolchains for ARM
authorTom Rini <trini@konsulko.com>
Fri, 14 Apr 2017 23:47:50 +0000 (19:47 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 18 Apr 2017 14:29:19 +0000 (10:29 -0400)
Many toolchains for ARM use the 'gnueabihf' suffix rather than just
'gnueabi', so allow these to be used, but with a lower priority than
'gnueabi' ones.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/buildman/toolchain.py

index 47788762016b1026b31890c59619a63a18807b62..5cf97ac8148e290804ab240937abf52e2d45bd4d 100644 (file)
@@ -120,8 +120,9 @@ class Toolchain:
             Priority of toolchain, PRIORITY_CALC=highest, 20=lowest.
         """
         priority_list = ['-elf', '-unknown-linux-gnu', '-linux',
-            '-none-linux-gnueabi', '-uclinux', '-none-eabi',
-            '-gentoo-linux-gnu', '-linux-gnueabi', '-le-linux', '-uclinux']
+            '-none-linux-gnueabi', '-none-linux-gnueabihf', '-uclinux',
+            '-none-eabi', '-gentoo-linux-gnu', '-linux-gnueabi',
+            '-linux-gnueabihf', '-le-linux', '-uclinux']
         for prio in range(len(priority_list)):
             if priority_list[prio] in fname:
                 return PRIORITY_CALC + prio