]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - Makefile
kbuild: print short log in addition to the whole command with V=1
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 22 Dec 2022 16:25:32 +0000 (01:25 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 22 Jan 2023 14:43:32 +0000 (23:43 +0900)
commit8962b6b475bddc011c414f40ffd02f0ed4e02771
tree6bac3789073dafc0511a1f996c0e5644e72b57a5
parentfc5d57a9a4fe3e3662c4ec4e84772dcea64979ca
kbuild: print short log in addition to the whole command with V=1

"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. If you want to avoid it, please add -Otarget option.
Kbuild will never set it 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@kernel.org>
Tested-by: Nicolas Schier <nicolas@fjasle.eu>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Makefile
scripts/Kbuild.include