[Buildroot] [PATCH RFC] core: enable per-package log files

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Oct 17 12:11:33 UTC 2017


Hello,

On Tue, 17 Oct 2017 14:01:41 +0200, Arnout Vandecappelle wrote:

>  So first of all I would like to see an explanation why --output-sync=recurse is
> not sufficient.

I did some quick testing with -Orecurse, and it looks pretty good to
me. The only downside that I've seen so far is that the entire log of a
given make target is shown when the target is finished, which in the
current organization of things means even the ">>> foo 1.0 building"
message is shown once the build of "foo" is completed.

Therefore, you end up in a situation where a lot of things have been
displayed, and then nothing happens (because foo is being built). So
you're wondering "what the heck is going on in here". And once "foo"
has finished building, everything is displayed, and you understand what
was going on. Perhaps this can be solved by having the message
displayed as part of a separate target. Or perhaps we don't need to
solve this problem at all?

Another thing is that I'd ideally want this to be done automatically by
Buildroot, which is something we can do as part of the
"make-calls-itself" in the main Makefile. Except that at this point, we
don't have the Buildroot configuration available, and I wanted to make
this conditional on some BR2_PARALLEL_BUILD=y option. Or we make
-Orecurse the default, but that is going to significantly change the
visible behavior even for people not using top-level parallel build.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com



More information about the buildroot mailing list