summaryrefslogtreecommitdiff
path: root/util/xcompile
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2016-01-19 08:50:23 -0700
committerMartin Roth <martinroth@google.com>2016-02-23 18:03:09 +0100
commitd08eb062df653735778306cba5f8cfbe3a9dd740 (patch)
treecfe90873899cce2b72bd0e366a5668ca62df17bc /util/xcompile
parent17cb0370a70ccfc2301b7974bf38d44c7271afea (diff)
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 <martinroth@google.com> Reviewed-on: https://review.coreboot.org/13047 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'util/xcompile')
-rwxr-xr-xutil/xcompile/xcompile8
1 files changed, 8 insertions, 0 deletions
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