summaryrefslogtreecommitdiff
path: root/util/crossgcc/buildgcc
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2011-10-29 00:00:19 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2011-10-30 21:58:42 +0100
commit28f6a43755246641186f2c436b158d2dab4243a5 (patch)
treea0791611c3d14df946f92b62bd76519f30e855c5 /util/crossgcc/buildgcc
parent9438da370fb66292babf5a2f621a67fd4b3699de (diff)
downloadcoreboot-28f6a43755246641186f2c436b158d2dab4243a5.tar.xz
crossgcc: Fix colors with dash
Ubuntu (and probably other distros) have dash as /bin/sh, which doesn't display colors by itself. If /usr/bin/printf is found, it's used instead of the internal printf to re-enable colors. Change-Id: I3e6d413cd0c8a46ef91821d8c07e88166de58af4 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/352 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/crossgcc/buildgcc')
-rwxr-xr-xutil/crossgcc/buildgcc5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 40444a5541..a298dbae66 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -23,6 +23,11 @@
CROSSGCC_DATE="October 10th, 2011"
CROSSGCC_VERSION="1.05"
+# To enable colors on dash(1)
+if [ -x /usr/bin/printf ]; then
+alias printf=/usr/bin/printf
+fi
+
# default settings
TARGETDIR=`pwd`/xgcc
TARGETARCH=i386-elf