From 2259d353426f12d5fa807075fb4727e64331ac8a Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 4 Apr 2018 16:20:58 +0200 Subject: Generalize is_menuconfig to non-symbol items Extending the scope of is_menuconfig so that it's True for all items whose children should be displayed in a separate menu turns out to be handy when implementing menuconfig-like functionality. Keep the old name for backwards compatibility. It's good enough. --- tests/Kmenuconfig | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/Kmenuconfig (limited to 'tests/Kmenuconfig') diff --git a/tests/Kmenuconfig b/tests/Kmenuconfig new file mode 100644 index 0000000..9a4cc11 --- /dev/null +++ b/tests/Kmenuconfig @@ -0,0 +1,37 @@ +# Menu nodes with is_menuconfig False + +config NOT_MENUCONFIG_1 + bool + +config NOT_MENUCONFIG_2 + bool "not menuconfig 2" + +config MENUCONFIG_MULTI_DEF + bool "menuconfig multi def 1" + +config COMMENT_HOOK + bool + +comment "not menuconfig 3" + + +# Menu nodes with is_menuconfig True + +menuconfig MENUCONFIG_1 + bool "menuconfig 1" + +menuconfig MENUCONFIG_MULTI_DEF + bool "menuconfig multi def 2" + +config MENU_HOOK + bool + +menu "menuconfig 2" +endmenu + +config CHOICE_HOOK + bool + +choice + bool "menuconfig 3" +endchoice -- cgit v1.2.3