Skip to content

Commit feec5e1

Browse files
keesmasahir0y
authored andcommitted
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: Kees Cook <keescook@chromium.org> Co-developed-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc) Reviewed-by: Nicolas Schier <nicolas@fjasle.eu> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 7cd3430 commit feec5e1

File tree

20 files changed

+34
-9
lines changed

20 files changed

+34
-9
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,6 @@ help:
15521552
@echo ' mrproper - Remove all generated files + config + various backup files'
15531553
@echo ' distclean - mrproper + remove editor backup and patch files'
15541554
@echo ''
1555-
@echo 'Configuration targets:'
15561555
@$(MAKE) -f $(srctree)/scripts/kconfig/Makefile help
15571556
@echo ''
15581557
@echo 'Other generic targets:'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
# Help: DRAM base at 0x00000000
12
CONFIG_DRAM_BASE=0x00000000
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
# Help: DRAM base at 0xc0000000
12
CONFIG_DRAM_BASE=0xc0000000
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
# Help: DRAM base at 0xd0000000
12
CONFIG_DRAM_BASE=0xd0000000

arch/arm/configs/lpae.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
# Help: Enable Large Physical Address Extension mode
12
CONFIG_ARM_LPAE=y
23
CONFIG_VMSPLIT_2G=y

arch/arm64/configs/virt.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Help: Virtualization guest
12
#
23
# Base options for platforms
34
#
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
# Help: Disable -Werror
12
CONFIG_PPC_DISABLE_WERROR=y

arch/powerpc/configs/security.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Help: Common security options for PowerPC builds
2+
13
# This is the equivalent of booting with lockdown=integrity
24
CONFIG_SECURITY=y
35
CONFIG_SECURITYFS=y
@@ -12,4 +14,4 @@ CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y
1214

1315
# UBSAN bounds checking is very cheap and good for hardening
1416
CONFIG_UBSAN=y
15-
# CONFIG_UBSAN_MISC is not set
17+
# CONFIG_UBSAN_MISC is not set

arch/riscv/configs/32-bit.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Help: Build a 32-bit image
12
CONFIG_ARCH_RV32I=y
23
CONFIG_32BIT=y
34
# CONFIG_PORTABLE is not set

arch/riscv/configs/64-bit.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
# Help: Build a 64-bit image
12
CONFIG_ARCH_RV64I=y
23
CONFIG_64BIT=y

0 commit comments

Comments
 (0)