Skip to contentSkip to conversation

ptp: make PTP a menuconfig to ease disabling it all

PATCH NAK Vincent Legoll 2 participants 4 messages Dec 9, 2017 – Dec 13, 2017

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

PATCH 1/1 ptp: make PTP a menuconfig to ease disabling it all

No need to get into the submenu to disable all PTP-related config entries.

This makes it easier to disable all PTP config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.

This is only intended to change menuconfig UI, not change the config dependencies.

---
 drivers/ptp/Kconfig | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/ptp/Kconfig +5 -2
index a21ad10d613c..d3f3a9f2b0b1 100644
@@ -2,7 +2,10 @@
 # PTP clock support configuration
 #
 
-menu "PTP clock support"
+menuconfig PTP_MENU
+	bool"PTP clock support"
+
+if PTP_MENU
 
 config PTP_1588_CLOCK
 	tristate "PTP clock support"
@@ -118,4 +121,4 @@ config PTP_1588_CLOCK_KVM
 	  To compile this driver as a module, choose M here: the module
 	  will be called ptp_kvm.
 
-endmenu
+endif # PTP_MENU
Signature · 1 line
2.14.1
maintainer NAK
#1 lore raw
Quoted 9 lines · Vincent Legoll

No need to get into the submenu to disable all PTP-related config entries.

This makes it easier to disable all PTP config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.

This is only intended to change menuconfig UI, not change the config dependencies.

NAK, you are introducing a new config option for no good reason.

Sorry,
Richard

#2 lore raw

Hello,

Quoted 1 line · Richard Cochran

NAK, you are introducing a new config option for no good reason.

I don't think there are alternatives available in Kconfig to achieve the goal of easing the management of a .config with menuconfig.

Do you have any idea about how to do it without using menuconfig ?

Thanks

Signature · 1 line
Vincent Legoll
maintainer
#3 lore raw
Quoted 4 lines · Vincent Legoll

I don't think there are alternatives available in Kconfig to achieve the goal of easing the management of a .config with menuconfig.

Do you have any idea about how to do it without using menuconfig ?

scripts/config

HTH,
Richard