aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2018-01-10 23:14:02 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-01-16 20:31:25 +0100
commit857a01ad7d31b817dd7223e1bb6dc61916801468 (patch)
tree1e5b64259c1e7770df5ccdf1e8013d43f2393caa
parentc57572b95e9da33c1367e3706f4191147c9ad4c4 (diff)
downloadbuildroot-857a01ad7d31b817dd7223e1bb6dc61916801468.tar.gz
buildroot-857a01ad7d31b817dd7223e1bb6dc61916801468.tar.bz2
system: only expose getty options for busybox and sysvinit
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> (cherry picked from commit 5e23eb5da7b3848cc6b317af9d8c23aac3a13260) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--system/Config.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/Config.in b/system/Config.in
index b9714923c4..d48cf8d8c4 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -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.