[Buildroot] Add verbose of compilling

Peter Korsgaard jacmet at uclibc.org
Thu Feb 25 09:17:22 UTC 2010


>>>>> "Дмитрий" == Дмитрий  <dima at 18r.ru> writes:

Hi,

 Дмитрий> Sorry for my English, if i have wrong commented my wish.
 Дмитрий> export PS1="Now compilling: xorg-server, packets 10 of 100"
 Дмитрий> it's an example. i want to see what packet is compilling now.
 Дмитрий> want to information about building in terminal header.
 Дмитрий> Thanks.

Ahh, that should be relatively easy to do - The "package X out of Y" is
hard as we use make and the individual targets don't know what else
needs to be be built, but the current step (package + part) could be
done using a slight tweak of the MESSAGE macro in
package/Makefile.package.in:

diff --git a/package/Makefile.package.in b/package/Makefile.package.in
index fbd7f69..c40f83f 100644
--- a/package/Makefile.package.in
+++ b/package/Makefile.package.in
@@ -34,7 +34,7 @@ INFLATE.tgz = $(ZCAT)
 INFLATE.tar = cat
 
 # MESSAGE Macro -- display a message in bold type
-MESSAGE = echo "$(TERM_BOLD)>>> $($(PKG)_NAME) $($(PKG)_VERSION) $(1)$(TERM_RES
+MESSAGE = echo -e "\033]0;$($(PKG)_NAME) $($(PKG)_VERSION) $(1)\007"
 TERM_BOLD := $(shell tput smso)
 TERM_RESET := $(shell tput rmso)
 

This only works for new-style packages (and not the toolchain build) though.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list