Re: [PATCH rdma-next] kbuild: Respect request to silent output when merging configs
From: Leon Romanovsky
Date: Tue Dec 03 2024 - 08:59:53 EST
On Tue, Dec 03, 2024 at 03:55:18PM +0200, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@xxxxxxxxxx>
>
> Builds with -s option (silent) are supposed to silence all output
> which is not an error. It is the case for target builds but not
> for configs. These builds generate prints like this:
>
> ➜ kernel git:(rdma-next) make -s defconfig debug.config
> Using .config as base
> Merging ./kernel/configs/debug.config
> #
> # merged configuration written to .config (needs make)
> #
> ...
> Value of CONFIG_FUNCTION_TRACER is redefined by fragment ./kernel/configs/debug.config:
> Previous value: # CONFIG_FUNCTION_TRACER is not set
> New value: CONFIG_FUNCTION_TRACER=y
> ----
>
> Let's honor -s option and hide all non-error output.
>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
> ---
> scripts/kconfig/Makefile | 3 ++-
> scripts/kconfig/merge_config.sh | 18 +++++++++++++-----
> 2 files changed, 15 insertions(+), 6 deletions(-)
Masahiro,
I hope that you don't mind that I put "rdma-next" as a target. It wasn't
intentionally, and bug in my submission scripts.
Thanks