aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2016-01-12 15:35:06 +0000
committerMichael Brown <mcb30@ipxe.org>2016-01-12 15:39:14 +0000
commit47dcd392dcd79d02eec2714696012785dd7a47c9 (patch)
tree897b26920043eb6975fe535572801ed8205da4d2 /src/Makefile.housekeeping
parent83c8f2e8e352e676d9951dda58b74e587101c0b4 (diff)
downloadipxe-47dcd392dcd79d02eec2714696012785dd7a47c9.tar.gz
[debug] Allow debug colourisation to be disabled
Some BIOS console redirection capabilities do not work well with the colourised debug messages used by iPXE. We already allow the range of colours to be controlled via the DBGCOL=... build parameter. Extend this syntax to allow DBGCOL=0 to be used to mean "disable colours". Requested-by: Wissam Shoukair <wissams@mellanox.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 70ec50c5e..0a80d2ac9 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -734,8 +734,8 @@ $(DBGCOL_LIST) : $(MAKEDEPS)
VERYCLEANUP += $(DBGCOL_LIST)
DBGCOL_COLOURS := $(subst -, ,$(DBGCOL))
-DBGCOL_MIN := $(word 1,$(DBGCOL_COLOURS))
-DBGCOL_MAX := $(word 2,$(DBGCOL_COLOURS))
+DBGCOL_MIN := $(firstword $(DBGCOL_COLOURS))
+DBGCOL_MAX := $(lastword $(DBGCOL_COLOURS))
debug_DEPS += $(DBGCOL_LIST)