xcompile: Remove warnings about missing tools & architectures
Let toolchain.inc error out when the architecture or tool is missing. Change-Id: I39a51e5a2c778d6bbc50354807e5e2b717fa9e52 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/12682 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
a9f62359e2
commit
31c4b64ab4
|
@ -56,8 +56,6 @@ if [ "$(${XGCCPATH}/iasl 2>/dev/null | grep -c ACPI)" -gt 0 ]; then
|
||||||
IASL=${XGCCPATH}iasl
|
IASL=${XGCCPATH}iasl
|
||||||
elif [ "$(iasl 2>/dev/null | grep -c ACPI)" -gt 0 ]; then
|
elif [ "$(iasl 2>/dev/null | grep -c ACPI)" -gt 0 ]; then
|
||||||
IASL=iasl
|
IASL=iasl
|
||||||
else
|
|
||||||
die "no iasl found"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if program_exists gcc; then
|
if program_exists gcc; then
|
||||||
|
@ -350,19 +348,13 @@ test_architecture() {
|
||||||
# that this will change in the future.
|
# that this will change in the future.
|
||||||
CLANG="clang -target ${clang_arch}-${TABI} -ccc-gcc-name ${GCC}"
|
CLANG="clang -target ${clang_arch}-${TABI} -ccc-gcc-name ${GCC}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$GCC" -a -z "$CLANG" -a "power8" != "$architecture" ]; then
|
|
||||||
echo "Warning: no suitable compiler for $architecture." >&2
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# This loops over all supported architectures.
|
# This loops over all supported architectures.
|
||||||
for architecture in $SUPPORTED_ARCHITECTURES; do
|
for architecture in $SUPPORTED_ARCHITECTURES; do
|
||||||
if test_architecture $architecture; then
|
test_architecture $architecture
|
||||||
detect_special_flags "$architecture"
|
detect_special_flags "$architecture"
|
||||||
detect_compiler_runtime "$architecture"
|
detect_compiler_runtime "$architecture"
|
||||||
report_arch_toolchain
|
report_arch_toolchain
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
echo XCOMPILE_COMPLETE:=1
|
echo XCOMPILE_COMPLETE:=1
|
||||||
|
|
Loading…
Reference in New Issue