Commit feec5e1f authored by Kees Cook's avatar Kees Cook Committed by Masahiro Yamada
Browse files

kbuild: Show marked Kconfig fragments in "help"



Currently the Kconfig fragments in kernel/configs and arch/*/configs
that aren't used internally aren't discoverable through "make help",
which consists of hard-coded lists of config fragments. Instead, list
all the fragment targets that have a "# Help: " comment prefix so the
targets can be generated dynamically.

Add logic to the Makefile to search for and display the fragment and
comment. Add comments to fragments that are intended to be direct targets.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Co-developed-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Reviewed-by: default avatarNicolas Schier <nicolas@fjasle.eu>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 7cd34300
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1552,7 +1552,6 @@ help:
	@echo  '  mrproper	  - Remove all generated files + config + various backup files'
	@echo  '  distclean	  - mrproper + remove editor backup and patch files'
	@echo  ''
	@echo  'Configuration targets:'
	@$(MAKE) -f $(srctree)/scripts/kconfig/Makefile help
	@echo  ''
	@echo  'Other generic targets:'
+1 −0
Original line number Diff line number Diff line
# Help: DRAM base at 0x00000000
CONFIG_DRAM_BASE=0x00000000
+1 −0
Original line number Diff line number Diff line
# Help: DRAM base at 0xc0000000
CONFIG_DRAM_BASE=0xc0000000
+1 −0
Original line number Diff line number Diff line
# Help: DRAM base at 0xd0000000
CONFIG_DRAM_BASE=0xd0000000
+1 −0
Original line number Diff line number Diff line
# Help: Enable Large Physical Address Extension mode
CONFIG_ARM_LPAE=y
CONFIG_VMSPLIT_2G=y
Loading