Skip to contentSkip to conversation

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

PATCH In review Borislav Petkov 2 participants 3 messages Dec 17, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

From: Borislav Petkov <[email protected]>

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.

---
 scripts/kconfig/Makefile | 2 ++
 1 file changed, 2 insertions(+)
scripts/kconfig/Makefile +2 -0
index e46df0a2d4f9..fdfae4f6943e 100644
@@ -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
Signature · 1 line
2.29.2
#1 lore raw
Quoted 27 lines · Borislav Petkov

From: Borislav Petkov <[email protected]>

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.

---
 scripts/kconfig/Makefile | 2 ++
 1 file changed, 2 insertions(+)
scripts/kconfig/Makefile +2 -1
index e46df0a2d4f9..fdfae4f6943e 100644
@@ -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
--
Quoted 2 lines

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

Signature · 2 lines
Best Regards
Masahiro Yamada
#2 lore raw
Quoted 3 lines · Masahiro Yamada

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.

Signature · 4 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette