system: use a menuconfig for the getty options
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 1 Sep 2015 23:10:34 +0000 (01:10 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 3 Oct 2015 12:25:52 +0000 (14:25 +0200)
Making the getty option a menuconfig instead of a simple config
automatically moves its dependees into a menu without the need to
manually declare such a menu.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
system/Config.in

index 03521fda2f36ca895540f7c94ab77b45dd48c8a0..45170d8d06c105894e28b53bf204918da2cc67e4 100644 (file)
@@ -260,12 +260,11 @@ config BR2_SYSTEM_BIN_SH
        default "dash"    if BR2_SYSTEM_BIN_SH_DASH
        default "zsh"     if BR2_SYSTEM_BIN_SH_ZSH
 
-config BR2_TARGET_GENERIC_GETTY
+menuconfig BR2_TARGET_GENERIC_GETTY
        bool "Run a getty (login prompt) after boot"
        default y
 
 if BR2_TARGET_GENERIC_GETTY
-menu "getty options"
 config BR2_TARGET_GENERIC_GETTY_PORT
        string "TTY port"
        default "console"
@@ -313,7 +312,6 @@ config BR2_TARGET_GENERIC_GETTY_OPTIONS
        help
          Any other flags you want to pass to getty,
          Refer to getty --help for details.
-endmenu
 endif
 
 config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW