diff mbox series

Makefile: Add {kvm_guest,xen}.config targets to make help's output

Message ID 20201217121725.16842-1-bp@alien8.de (mailing list archive)
State New, archived
Headers show
Series Makefile: Add {kvm_guest,xen}.config targets to make help's output | expand

Commit Message

Borislav Petkov Dec. 17, 2020, 12:17 p.m. UTC
From: Borislav Petkov <bp@suse.de>

Add the targets which add Kconfig items to the .config so that the
kernel can be run as a guest, to the main 'make help' output so that
they can be found easier and there's no need to grep the tree each time
to remember what they should be called.

Signed-off-by: Borislav Petkov <bp@suse.de>
---
 scripts/kconfig/Makefile | 2 ++
 1 file changed, 2 insertions(+)

Comments

Masahiro Yamada Dec. 17, 2020, 12:47 p.m. UTC | #1
On Thu, Dec 17, 2020 at 9:18 PM Borislav Petkov <bp@alien8.de> wrote:
>
> From: Borislav Petkov <bp@suse.de>
>
> Add the targets which add Kconfig items to the .config so that the
> kernel can be run as a guest, to the main 'make help' output so that
> they can be found easier and there's no need to grep the tree each time
> to remember what they should be called.
>
> Signed-off-by: Borislav Petkov <bp@suse.de>
> ---
>  scripts/kconfig/Makefile | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
> index e46df0a2d4f9..fdfae4f6943e 100644
> --- a/scripts/kconfig/Makefile
> +++ b/scripts/kconfig/Makefile
> @@ -143,6 +143,8 @@ help:
>         @echo  '                    default value without prompting'
>         @echo  '  tinyconfig      - Configure the tiniest possible kernel'
>         @echo  '  testconfig      - Run Kconfig unit tests (requires python3 and pytest)'
> +       @echo  '  kvm_guest.config - Enable Kconfig items for running this kernel as a KVM guest'
> +       @echo  '  xen.config      - Enable Kconfig items for running this kernel as a Xen guest'
>
>  # ===========================================================================
>  # object files used by all kconfig flavours
> --
> 2.29.2
>

No.

I do not want to touch scripts/kconfig/Makefile
every time somebody adds a new file to
kernel/configs/*.config or arch/$(ARCH)/configs/*.config
Borislav Petkov Dec. 17, 2020, 1:32 p.m. UTC | #2
On Thu, Dec 17, 2020 at 09:47:07PM +0900, Masahiro Yamada wrote:
> I do not want to touch scripts/kconfig/Makefile
> every time somebody adds a new file to
> kernel/configs/*.config or arch/$(ARCH)/configs/*.config

Because that happens so often and somehow burdens your maintenance
effort impossibly?! Geez, gimme a break.

Lemme move those to archhelp so that you don't get bothered.
diff mbox series

Patch

diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index e46df0a2d4f9..fdfae4f6943e 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -143,6 +143,8 @@  help:
 	@echo  '                    default value without prompting'
 	@echo  '  tinyconfig	  - Configure the tiniest possible kernel'
 	@echo  '  testconfig	  - Run Kconfig unit tests (requires python3 and pytest)'
+	@echo  '  kvm_guest.config - Enable Kconfig items for running this kernel as a KVM guest'
+	@echo  '  xen.config	  - Enable Kconfig items for running this kernel as a Xen guest'
 
 # ===========================================================================
 # object files used by all kconfig flavours