On 2026-05-04T13:20:27, Quentin Schulz <[email protected]> wrote: > kbuild: support W=c and W=e shorthands for Kconfig > > [ Upstream commit c77d06e70d59cbc6e3c22bf644bb0b197a5fc182 ] > > Original commit log: > > KCONFIG_WARN_UNKNOWN_SYMBOLS=1 and KCONFIG_WERROR=1 are descriptive > and suitable in scripting, but typing them from the command line can > be tedious. > > Associate them with KBUILD_EXTRA_WARN (and the W= shorthand). > > Support a new letter 'c' to enable extra checks in Kconfig. You can > still manage compiler warnings (W=1) and Kconfig warnings (W=c) > independently. > > Reuse the letter 'e' to turn Kconfig warnings into errors. > > As usual, you can combine multiple letters in KCONFIG_EXTRA_WARN. > > $ KCONFIG_WARN_UNKNOWN_SYMBOLS=1 KCONFIG_WERROR=1 make defconfig > > can be shortened to: > > $ KBUILD_EXTRA_WARN=ce make defconfig > > or, even shorter: > > $ make W=ce defconfig > > [note that U-Boot currently doesn't make use of the KCONFIG_WERROR or > KCONFIG_WARN_UNKNOWN_SYMBOLS symbols as we're using an ancient version > of kconfig, so technically W=c won't do anything.] > Signed-off-by: Quentin Schulz <[email protected]> > > Makefile | 10 ++++++++++ > scripts/Makefile.extrawarn | 9 --------- > scripts/kconfig/Makefile | 8 ++++++++ > 3 files changed, 18 insertions(+), 9 deletions(-)
Reviewed-by: Simon Glass <[email protected]>

