[coreboot-gerrit] New patch to review for coreboot: xcompile: test if gcc is really available
Stefan Tauner (stefan.tauner@gmx.at)
gerrit at coreboot.org
Sun May 1 15:22:35 CEST 2016
Stefan Tauner (stefan.tauner at gmx.at) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14563
-gerrit
commit 6f405a71241058ad8f16b518f2547f13b3042c73
Author: Stefan Tauner <stefan.tauner at gmx.at>
Date: Sun May 1 13:48:56 2016 +0200
xcompile: test if gcc is really available
Just because an 'as' with a certain prefix is available does not guarantee
that a 'gcc' with the same prefix is available as well.
Without a check detect_compiler_runtime() would try to execute an
unavailable binary and print something like this:
.../xcompile: line 218: arm-linux-gnueabi-gcc: command not found
Change-Id: Icbadfeb2860152f7cf7696a9122521d0d881f3aa
Signed-off-by: Stefan Tauner <stefan.tauner at gmx.at>
---
util/xcompile/xcompile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 8e1cd10..c4eeeaf 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -422,7 +422,7 @@ test_architecture() {
done
done
if [ "invalid" != "$GCCPREFIX" ]; then
- GCC="${GCCPREFIX}gcc"
+ testcc "${GCCPREFIX}gcc" "$CFLAGS_GCC" && GCC="${GCCPREFIX}gcc"
fi
for clang_arch in $TCLIST invalid; do
More information about the coreboot-gerrit
mailing list