Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yegor Yefremov <yegor_sub1@visionsystems.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] change getty port configuration
Date: Wed, 29 Sep 2010 15:37:14 +0200	[thread overview]
Message-ID: <4CA3410A.8050603@visionsystems.de> (raw)

BR2_TARGET_GENERIC_GETTY_PORT has now a string type instead of choice.
This makes port configuration flexible and compact.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>

Index: b/target/generic/Config.in
===================================================================
--- a/target/generic/Config.in	2010-09-29 10:02:34.000000000 +0200
+++ b/target/generic/Config.in	2010-09-29 14:48:55.000000000 +0200
@@ -17,123 +17,11 @@
 
 if BR2_TARGET_GENERIC_GETTY
 
-choice
-	prompt "Serial port to run a getty on"
-	default BR2_TARGET_GENERIC_GETTY_TTYS0
+config BR2_TARGET_GENERIC_GETTY_PORT
+	string "Serial port to run a getty on"
+	default "ttyS0"
 	help
-	  Select a port to run a getty (login prompt) on.
-
-config BR2_TARGET_GENERIC_GETTY_NONE
-	bool "none"
-config BR2_TARGET_GENERIC_GETTY_TTYS0
-	bool "ttyS0"
-config BR2_TARGET_GENERIC_GETTY_TTYS1
-	bool "ttyS1"
-config BR2_TARGET_GENERIC_GETTY_TTYS2
-	bool "ttyS2"
-config BR2_TARGET_GENERIC_GETTY_TTYS3
-	bool "ttyS3"
-config BR2_TARGET_GENERIC_GETTY_TTYAMA0
-	bool "ttyAMA0"
-	depends on BR2_arm
-config BR2_TARGET_GENERIC_GETTY_TTYAMA1
-	bool "ttyAMA1"
-	depends on BR2_arm
-config BR2_TARGET_GENERIC_GETTY_TTYAMA2
-	bool "ttyAMA2"
-	depends on BR2_arm
-config BR2_TARGET_GENERIC_GETTY_TTYAMA3
-	bool "ttyAMA3"
-	depends on BR2_arm
-config BR2_TARGET_GENERIC_GETTY_TTYSAC0
-	bool "ttySAC0"
-	depends on BR2_arm
-config BR2_TARGET_GENERIC_GETTY_TTYSAC1
-	bool "ttySAC1"
-	depends on BR2_arm
-config BR2_TARGET_GENERIC_GETTY_TTYSAC2
-	bool "ttySAC2"
-	depends on BR2_arm
-config BR2_TARGET_GENERIC_GETTY_TTYSAC3
-	bool "ttySAC3"
-	depends on BR2_arm
-config BR2_TARGET_GENERIC_GETTY_TTYMXC0
-	bool "ttymxc0"
-	depends on BR2_arm
-config BR2_TARGET_GENERIC_GETTY_TTYMXC1
-	bool "ttymxc1"
-	depends on BR2_arm
-config BR2_TARGET_GENERIC_GETTY_TTYMXC2
-	bool "ttymxc2"
-	depends on BR2_arm
-config BR2_TARGET_GENERIC_GETTY_TTYUL0
-	bool "ttyUL0"
-	depends on BR2_powerpc
-config BR2_TARGET_GENERIC_GETTY_TTYUL1
-	bool "ttyUL1"
-	depends on BR2_powerpc
-config BR2_TARGET_GENERIC_GETTY_TTYUL2
-	bool "ttyUL2"
-	depends on BR2_powerpc
-config BR2_TARGET_GENERIC_GETTY_TTYUL3
-	bool "ttyUL3"
-	depends on BR2_powerpc
-config BR2_TARGET_GENERIC_GETTY_TTYPSC0
-	bool "ttyPSC0"
-	depends on BR2_powerpc
-config BR2_TARGET_GENERIC_GETTY_TTYPSC1
-	bool "ttyPSC1"
-	depends on BR2_powerpc
-config BR2_TARGET_GENERIC_GETTY_TTYPSC2
-	bool "ttyPSC2"
-	depends on BR2_powerpc
-config BR2_TARGET_GENERIC_GETTY_TTYPSC3
-	bool "ttyPSC3"
-	depends on BR2_powerpc
-config BR2_TARGET_GENERIC_GETTY_TTYCPM0
-	bool "ttyCPM0"
-	depends on BR2_powerpc
-config BR2_TARGET_GENERIC_GETTY_TTYCPM1
-	bool "ttyCPM1"
-	depends on BR2_powerpc
-config BR2_TARGET_GENERIC_GETTY_TTYCPM2
-	bool "ttyCPM2"
-	depends on BR2_powerpc
-config BR2_TARGET_GENERIC_GETTY_TTYCPM3
-	bool "ttyCPM3"
-	depends on BR2_powerpc
-endchoice
-
-config BR2_TARGET_GENERIC_GETTY_PORT
-	string
-	default "#ttyS0"	if BR2_TARGET_GENERIC_GETTY_NONE
-	default "ttyS0"		if BR2_TARGET_GENERIC_GETTY_TTYS0
-	default "ttyS1"		if BR2_TARGET_GENERIC_GETTY_TTYS1
-	default "ttyS2"		if BR2_TARGET_GENERIC_GETTY_TTYS2
-	default "ttyS3"		if BR2_TARGET_GENERIC_GETTY_TTYS3
-	default "ttyAMA0"	if BR2_TARGET_GENERIC_GETTY_TTYAMA0
-	default "ttyAMA1"	if BR2_TARGET_GENERIC_GETTY_TTYAMA1
-	default "ttyAMA2"	if BR2_TARGET_GENERIC_GETTY_TTYAMA2
-	default "ttyAMA3"	if BR2_TARGET_GENERIC_GETTY_TTYAMA3
-	default "ttySAC0"	if BR2_TARGET_GENERIC_GETTY_TTYSAC0
-	default "ttySAC1"	if BR2_TARGET_GENERIC_GETTY_TTYSAC1
-	default "ttySAC2"	if BR2_TARGET_GENERIC_GETTY_TTYSAC2
-	default "ttySAC3"	if BR2_TARGET_GENERIC_GETTY_TTYSAC3
-	default "ttymxc0"	if BR2_TARGET_GENERIC_GETTY_TTYMXC0
-	default "ttymxc1"	if BR2_TARGET_GENERIC_GETTY_TTYMXC1
-	default "ttymxc2"	if BR2_TARGET_GENERIC_GETTY_TTYMXC2
-	default "ttyUL0"	if BR2_TARGET_GENERIC_GETTY_TTYUL0
-	default "ttyUL1"	if BR2_TARGET_GENERIC_GETTY_TTYUL1
-	default "ttyUL2"	if BR2_TARGET_GENERIC_GETTY_TTYUL2
-	default "ttyUL3"	if BR2_TARGET_GENERIC_GETTY_TTYUL3
-	default "ttyPSC0"	if BR2_TARGET_GENERIC_GETTY_TTYPSC0
-	default "ttyPSC1"	if BR2_TARGET_GENERIC_GETTY_TTYPSC1
-	default "ttyPSC2"	if BR2_TARGET_GENERIC_GETTY_TTYPSC2
-	default "ttyPSC3"	if BR2_TARGET_GENERIC_GETTY_TTYPSC3
-	default "ttyCPM0"	if BR2_TARGET_GENERIC_GETTY_TTYCPM0
-	default "ttyCPM1"	if BR2_TARGET_GENERIC_GETTY_TTYCPM1
-	default "ttyCPM2"	if BR2_TARGET_GENERIC_GETTY_TTYCPM2
-	default "ttyCPM3"	if BR2_TARGET_GENERIC_GETTY_TTYCPM3
+	  Specify a port to run a getty (login prompt) on.
 
 choice
 	prompt "Baudrate to use"

             reply	other threads:[~2010-09-29 13:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-29 13:37 Yegor Yefremov [this message]
2010-11-22 17:49 ` [Buildroot] [PATCH] change getty port configuration Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CA3410A.8050603@visionsystems.de \
    --to=yegor_sub1@visionsystems.de \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox