[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y6WPv5zlqkBaEgHQ@bergen.fjasle.eu>
Date: Fri, 23 Dec 2022 12:23:43 +0100
From: Nicolas Schier <nicolas@...sle.eu>
To: Masahiro Yamada <masahiroy@...nel.org>
Cc: linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>
Subject: Re: [PATCH 2/5] kbuild: print short log in addition to the whole
command with V=1
On Fri 23 Dec 2022 01:25:32 GMT, Masahiro Yamada wrote:
> "make V=1" prints the whole command instead of the short log, but I
> think it is nicer to print both so that you can easily spot the build
> rule of your interest.
>
> This commit changes V=1 to print the short log (the line starts with
> '#'), followed by the full log.
>
> In parallel builds, the short/full logs from the same build rule may
> be interspersed. To avoid it, please add -Otarget along with the -j<N>
> option. Kbuild will never set -Otarget by default because Make would
> buffer the logs and lose the escape sequences. (Modern compilers print
> warnings and errors in color, but only when they write to a terminal.)
>
> This is also a preparation for supporting V=12 because V=2 appends the
> reason for rebuilding to the short log.
>
> Signed-off-by: Masahiro Yamada <masahiroy@...nel.org>
> ---
>
> Makefile | 18 +++++++-----------
> scripts/Kbuild.include | 26 +++++++++++++-------------
> 2 files changed, 20 insertions(+), 24 deletions(-)
I think this is really helpful, thanks!
Tested-by: Nicolas Schier <nicolas@...sle.eu>
Reviewed-by: Nicolas Schier <nicolas@...sle.eu>
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists