Re: [PATCH] kbuild: rust: remove -v option of scripts/rust_is_available.sh
From: Miguel Ojeda
Date: Sun Jan 08 2023 - 16:56:48 EST
On Sat, Dec 31, 2022 at 9:27 AM Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote:
>
> The -v option is passed when this scripts is invoked from Makefile,
scripts -> script
> but not when invoked from Kconfig.
>
> As you can see in scripts/Kconfig.include, the 'success' macro suppresses
> stdout and stderr anyway, so this script does not need to be quiet.
Yeah, let's get rid of the complexity. The script originally was
intended to be usable independently of the `Makefile`, but in the end
we don't really use it like that.
In fact, now we should probably add a warning/error if somebody calls
it directly (and/or set defaults for the variables). I can send a
patch for that on top of this one.
There is a small functional change, in that we will be making an
unneeded call to `cc-version.sh` and another to `$CC` for the Kconfig
case (i.e. the previously non-verbose case), but that seems like a
fine price for the simplicity.
> --- a/scripts/rust_is_available.sh
> +++ b/scripts/rust_is_available.sh
Could you please remove the comment at the top? i.e.:
#
# Pass `-v` for human output and more checks (as warnings).
With that:
Reviewed-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
Tested-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
If you want me to take it, please let me know.
Cheers,
Miguel