Re: [PATCH] kbuild: Show Kconfig fragments in "help"

Christophe Leroy
2023-08-25T04:58:03Z

Le 25/08/2023 à 00:36, Kees Cook a écrit :
> Doing a "make help" would show only hard-coded Kconfig targets and
> depended on the archhelp target to include ".config" targets. There was
> nothing showing global kernel/configs/ targets. Solve this by walking
> the wildcard list and include them in the output, using the first comment
> line as the help text.
>
> Update all Kconfig fragments to include help text and adjust archhelp
> targets to avoid redundancy.
>
> Adds the following section to "help" target output:
>
> Configuration fragment targets (for enabling various Kconfig items):
> debug.config - Debugging for CI systems and finding regressions
> kvm_guest.config - Bootable as a KVM guest
> nopm.config - Disable Power Management
> rust.config - Enable Rust
> tiny-base.config - Minimal options for tiny systems
> tiny.config - Smallest possible kernel image
> x86_debug.config - Debugging options for tip tree testing
> xen.config - Bootable as a Xen guest
> tiny.config - x86-specific options for a small kernel image
> xen.config - x86-specific options for a Xen virtualization guest
>
> Cc: Masahiro Yamada <masahiroy@kernel.org>
> Cc: x86@kernel.org
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linuxppc-dev@lists.ozlabs.org
> Cc: linux-riscv@lists.infradead.org
> Cc: linux-s390@vger.kernel.org
> Signed-off-by: Kees Cook <keescook@chromium.org>
> ---

> diff --git a/arch/powerpc/configs/85xx-hw.config b/arch/powerpc/configs/85xx-hw.config
> index 524db76f47b7..76b22f8a8172 100644
> --- a/arch/powerpc/configs/85xx-hw.config
> +++ b/arch/powerpc/configs/85xx-hw.config
> @@ -1,3 +1,4 @@
> +# Base hardware support for 86xx

s/86xx/85xx

> CONFIG_AQUANTIA_PHY=y
> CONFIG_AT803X_PHY=y
> CONFIG_ATA=y

> diff --git a/arch/powerpc/configs/book3s_32.config b/arch/powerpc/configs/book3s_32.config
> index 8721eb7b1294..f33483f077db 100644
> --- a/arch/powerpc/configs/book3s_32.config
> +++ b/arch/powerpc/configs/book3s_32.config
> @@ -1,2 +1,3 @@
> +# Base support for Book3s

32 bits Book3s

> CONFIG_PPC64=n
> CONFIG_PPC_BOOK3S_32=y

> diff --git a/arch/powerpc/configs/dpaa.config b/arch/powerpc/configs/dpaa.config
> index 4ffacafe4036..65a13ba32813 100644
> --- a/arch/powerpc/configs/dpaa.config
> +++ b/arch/powerpc/configs/dpaa.config
> @@ -1,3 +1,4 @@
> +# Base suppot for DPPA

s/suppot/support/

> CONFIG_FSL_DPAA=y
> CONFIG_FSL_PAMU=y
> CONFIG_FSL_FMAN=y

> diff --git a/arch/powerpc/configs/mpc85xx_base.config b/arch/powerpc/configs/mpc85xx_base.config
> index a1e4d72ed39d..20ecf6575c5c 100644
> --- a/arch/powerpc/configs/mpc85xx_base.config
> +++ b/arch/powerpc/configs/mpc85xx_base.config
> @@ -1,3 +1,4 @@
> +# Base mpc85xxx support

s/mpc85xxx/mpc85xx/

> CONFIG_MATH_EMULATION=y
> CONFIG_MPC8536_DS=y
> CONFIG_MPC85xx_DS=y
> diff --git a/arch/powerpc/configs/mpc86xx_base.config b/arch/powerpc/configs/mpc86xx_base.config
> index 632c014b122d..8239d1e7785d 100644
> --- a/arch/powerpc/configs/mpc86xx_base.config
> +++ b/arch/powerpc/configs/mpc86xx_base.config
> @@ -1,3 +1,4 @@
> +# Base mpc85xxx support

s/mpc85xxx/mpc86xx/

> CONFIG_PPC_86xx=y
> CONFIG_GEF_PPC9A=y
> CONFIG_GEF_SBC310=y