Re: [RFC][PATCH] kconfig: introduce listunknownconfig

From: Sergey Senozhatsky
Date: Sat Aug 26 2023 - 02:16:14 EST


On (23/08/26 14:38), Masahiro Yamada wrote:
> > I am fine with implementing both.
> >
> > But, I'd like to implement them as separate options.
> > (one option for warn unknown symbols,
> > another for for turning warnings into errors)
> >
> >
> >
> > As I replied to Tomasz, I am considering about
> > env variables vs command line options associated with W= option.
>
>
>
> With a little more thought, the command line option approach
> would require more code changes and efforts.
>

Sounds good.

> So, I am OK with adding new env variables.
> Could you add two env variables?

Absolutely.

> I think
>
> the first two hunks (show warnings for symbols not found in Kconfig)
> -> KCONFIG_WARN_UNKNOWN_SYMBOLS
>
> the last hunk (turn warnings into errors)
> -> KCONFIG_WERROR
>
> (You can suggest a better naming if you have, but I guess
> KCONFIG_WARN_* will be consistent in case
> more warning requests come up.)

Looks good.

I'll send a patch in the coming days.