From d08eb062df653735778306cba5f8cfbe3a9dd740 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Tue, 19 Jan 2016 08:50:23 -0700 Subject: xcompile: Add parameter to aid in debugging There was a report that xcompile wasn't finding the compilers correctly, so to aid in future debugging, this adds a parameter to show what xcompile is doing as it runs. Run from the command line: ./util/xcompile/xcompile --debug Change-Id: I779cb3de7b4e3f62a2ef2a6245c3538be518870c Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/13047 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Paul Menzel --- util/xcompile/xcompile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'util') diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index bd6cebfe63..53f0a85228 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -15,6 +15,14 @@ # GNU General Public License for more details. # +# Usage: [--debug] [path to xgcc/bin directory] + +# Enable debug output +if [ "$1" = "--debug" ]; then + shift + set -x +fi + TMPFILE="" XGCCPATH=$1 -- cgit v1.2.3