From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from barikada.upol.cz ([158.194.242.200]:44063 "EHLO barikada.upol.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752616AbYDIO6v (ORCPT ); Wed, 9 Apr 2008 10:58:51 -0400 Subject: coloring stdout && stderr, small kbuild example Date: Wed, 9 Apr 2008 17:02:31 +0200 Message-Id: From: Oleg Verych Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Andrew Morton Cc: Linux Kernel Mailing List , kbuild devel list Those boring never-ending builds... Can some dualCPU power be spent, if building is interactive (i.e. sent to terminal), to have them a bit colored? My last rant about "colored printk()" led away from kernel developers and their solutions. But now, let me share something. (maybe some terminal emulators have more colors, finally?) usage: olecom@flower:/tmp/blinux$ stty -tostop ; mkfifo stdout.pipe stderr.pipe olecom@flower:/tmp/blinux$ sh ./colorize-linux-build.sh stdout.pipe 2>stderr.pipe make -C /mnt/zdev0/linux-2.6 O=/dev/shm/blinux/. Using /mnt/zdev0/linux-2.6 as source for kernel GEN /dev/shm/blinux/Makefile CHK include/linux/version.h CHK include/linux/utsrelease.h CALL /mnt/zdev0/linux-2.6/scripts/checksyscalls.sh CHK include/linux/compile.h VDSOSYM arch/x86/vdso/vdso-syms.lds VDSOSYM arch/x86/vdso/vdso32-syscall-syms.lds VDSOSYM arch/x86/vdso/vdso32-sysenter-syms.lds VDSOSYM arch/x86/vdso/vdso32-syms.lds LD arch/x86/vdso/built-in.o CC mm/memory.o olecom@flower:/tmp/blinux$ make[3]: *** [mm/memory.o] Interrupt make[2]: *** [mm] Interrupt make[1]: *** [sub-make] Interrupt make: *** [all] Interrupt [1]- Done sh ./colorize-linux-build.sh