From 6f3db147b68d6cb6557f6857b90bf6c67afbcf1f Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Mon, 8 Feb 2010 22:28:19 +0000 Subject: [PATCH] Allow colored output to be disabled when running a non-verbose build by setting NO_COLOR=1 SVN-Revision: 19560 --- include/verbose.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/verbose.mk b/include/verbose.mk index 857be24a32..9fe27ced52 100644 --- a/include/verbose.mk +++ b/include/verbose.mk @@ -18,8 +18,10 @@ ifeq ("$(origin V)", "command line") endif ifeq ($(IS_TTY),1) - _Y:=\\033[33m - _N:=\\033[m + ifneq ($(strip $(NO_COLOR)),1) + _Y:=\\033[33m + _N:=\\033[m + endif endif ifneq ($(KBUILD_VERBOSE),99)