system: only expose getty options for busybox and sysvinit
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 10 Jan 2018 22:14:02 +0000 (23:14 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 12 Jan 2018 21:07:59 +0000 (22:07 +0100)
Only busybox and sysvinit handle the BR2_TARGET_GENERIC_GETTY_TERM and
BR2_TARGET_GENERIC_GETTY_OPTIONS options; the other init systems do
not.

So, protect those options behind appropriate dependencies on busybox
or sysvinit.

Fixes #10301.

Reported-by: Michael Heinemann <posted@heine.so>
Suggested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
system/Config.in

index b9714923c4b447af6c1c32366c59d67adf4da66c..d48cf8d8c4ede59d54e66d6f4bd11296ac1f7773 100644 (file)
@@ -355,12 +355,16 @@ config BR2_TARGET_GENERIC_GETTY_BAUDRATE
 config BR2_TARGET_GENERIC_GETTY_TERM
        string "TERM environment variable"
        default "vt100"
+       # currently observed only by busybox and sysvinit
+       depends on BR2_INIT_BUSYBOX || BR2_INIT_SYSV
        help
          Specify a TERM type.
 
 config BR2_TARGET_GENERIC_GETTY_OPTIONS
        string "other options to pass to getty"
        default ""
+       # currently observed only by busybox and sysvinit
+       depends on BR2_INIT_BUSYBOX || BR2_INIT_SYSV
        help
          Any other flags you want to pass to getty,
          Refer to getty --help for details.