diff mbox series

kconfig: add some Kconfig env variables to make help

Message ID 20240222031226.493692-1-senozhatsky@chromium.org (mailing list archive)
State New, archived
Headers show
Series kconfig: add some Kconfig env variables to make help | expand

Commit Message

Sergey Senozhatsky Feb. 22, 2024, 3:12 a.m. UTC
Add a new section "Configuration environment variables" to
`make help` output in order to make it easier for people to
discover KCONFIG_WERRROR, etc.

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
---
 scripts/kconfig/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Sergey Senozhatsky Feb. 22, 2024, 3:18 a.m. UTC | #1
On (24/02/22 12:12), Sergey Senozhatsky wrote:
> Add a new section "Configuration environment variables" to
> `make help` output in order to make it easier for people to
> discover KCONFIG_WERRROR, etc.
> 
> Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
> ---
>  scripts/kconfig/Makefile | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
> index ea1bf3b3dbde..109e28fd6209 100644
> --- a/scripts/kconfig/Makefile
> +++ b/scripts/kconfig/Makefile
> @@ -158,6 +158,10 @@ help:
>  		if help=$$(grep -m1 '^# Help: ' $(f)); then \
>  			printf '  %-25s - %s\n' '$(notdir $(f))' "$${help#*: }"; \
>  		fi;)
> +	@echo  ''
> +	@echo  'Configuration environment variables:'
> +	@echo  '  KCONFIG_WERROR                 - Turn some Kconfig warnings into error conditions'
> +	@echo  '  KCONFIG_WARN_UNKNOWN_SYMBOLS   - Make Kconfing warn about all unrecognized config symbols'

													^^ Kconfig   fat fingers

>  
>  # ===========================================================================
>  # object files used by all kconfig flavours
> -- 
> 2.44.0.rc0.258.g7320e95886-goog
>
diff mbox series

Patch

diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index ea1bf3b3dbde..109e28fd6209 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -158,6 +158,10 @@  help:
 		if help=$$(grep -m1 '^# Help: ' $(f)); then \
 			printf '  %-25s - %s\n' '$(notdir $(f))' "$${help#*: }"; \
 		fi;)
+	@echo  ''
+	@echo  'Configuration environment variables:'
+	@echo  '  KCONFIG_WERROR                 - Turn some Kconfig warnings into error conditions'
+	@echo  '  KCONFIG_WARN_UNKNOWN_SYMBOLS   - Make Kconfing warn about all unrecognized config symbols'
 
 # ===========================================================================
 # object files used by all kconfig flavours