From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yegor Yefremov Date: Wed, 29 Sep 2010 15:37:14 +0200 Subject: [Buildroot] [PATCH] change getty port configuration Message-ID: <4CA3410A.8050603@visionsystems.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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 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"