summaryrefslogtreecommitdiff
path: root/tools/buildman/toolchain.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2015-03-05 18:30:38 -0500
committerTom Rini <trini@konsulko.com>2015-03-05 20:50:31 -0500
commit62f3aaf89d01bdc9ff0e67d92f3bf085143edf8c (patch)
tree6b6adbba82b3e42cf3330b67ff06f86926257f94 /tools/buildman/toolchain.py
parent65994d049474394729d976273d7582552f1db332 (diff)
parent63c619eefde619731370b42ae2a2c16a86b23597 (diff)
Merge branch 'buildman' of git://git.denx.de/u-boot-x86
Diffstat (limited to 'tools/buildman/toolchain.py')
-rw-r--r--tools/buildman/toolchain.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/buildman/toolchain.py b/tools/buildman/toolchain.py
index 537797ad53e..051da11ef01 100644
--- a/tools/buildman/toolchain.py
+++ b/tools/buildman/toolchain.py
@@ -465,11 +465,15 @@ class Toolchains:
# Check that the toolchain works
print 'Testing'
dirpath = os.path.join(dest, path)
- compiler_fname = self.ScanPath(dirpath, True)
- if not compiler_fname:
+ compiler_fname_list = self.ScanPath(dirpath, True)
+ if not compiler_fname_list:
print 'Could not locate C compiler - fetch failed.'
return 1
- toolchain = Toolchain(compiler_fname, True, True)
+ if len(compiler_fname_list) != 1:
+ print ('Internal error, ambiguous toolchains: %s' %
+ (', '.join(compiler_fname)))
+ return 1
+ toolchain = Toolchain(compiler_fname_list[0], True, True)
# Make sure that it will be found by buildman
if not self.TestSettingsHasPath(dirpath):