]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
fastboot: simplify the Kconfig logic
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 13 Nov 2016 21:26:13 +0000 (22:26 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 21 Nov 2016 19:07:33 +0000 (14:07 -0500)
Currently, the fastboot item in menuconfig is a comment followed by a
boolean option withan empty prompt, followed by a menu:

        *** FASTBOOT ***
    [*]
          Fastboot support  --->

This is not "nice-looking" at all...

Change the logic to make the boolean option a "menuconfig" rather than a
mere "config", so that all dependent options gets groupped under a menu.
The layout is now:

        *** FASTBOOT ***
    [*] Fastboot support  --->

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
cmd/fastboot/Kconfig

index d555d0a7ee419a803346280c8babea808490e631..89b9e73440c8dd7ab0082ac550f4b72378c62c24 100644 (file)
@@ -1,10 +1,9 @@
 comment "FASTBOOT"
 
-config FASTBOOT
-       bool ""
+menuconfig FASTBOOT
+       bool "Fastboot support"
 
-menu "Fastboot support"
-       depends on FASTBOOT
+if FASTBOOT
 
 config USB_FUNCTION_FASTBOOT
        bool "Enable USB fastboot gadget"
@@ -89,4 +88,4 @@ config FASTBOOT_MBR_NAME
 
 endif # USB_FUNCTION_FASTBOOT
 
-endmenu
+endif # FASTBOOT