[U-Boot] [PATCH v4 11/13] buildman: Search for *cc instead of *gcc for the compiler

Simon Glass
2014-08-05T14:47:01Z

Compiler names normally end with cc, but not always gcc. So update the
detection logic.

Reported-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v4:
- Add new patch to search for *cc instead of *gcc

Changes in v3: None
Changes in v2: None

tools/buildman/toolchain.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/buildman/toolchain.py b/tools/buildman/toolchain.py
index 1b9771f..e4fcf1b 100644
--- a/tools/buildman/toolchain.py
+++ b/tools/buildman/toolchain.py
@@ -146,7 +146,7 @@ class Toolchains:
for subdir in ['.', 'bin', 'usr/bin']:
dirname = os.path.join(path, subdir)
if verbose: print " - looking in '%s'" % dirname
- for fname in glob.glob(dirname + '/*gcc'):
+ for fname in glob.glob(dirname + '/*cc'):
if verbose: print " - found '%s'" % fname
self.Add(fname, True, verbose)

--
2.0.0.526.g5318336