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>
This commit is contained in:
Patrick Georgi 2011-10-29 00:00:19 +02:00 committed by Stefan Reinauer
parent 9438da370f
commit 28f6a43755
1 changed files with 5 additions and 0 deletions

View File

@ -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