[Buildroot] [PATCH 1/4] Added new menu item to specify a custom port for /etc/inittab

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Sep 28 17:26:29 UTC 2010


Hello,

Would people cry/complain if instead of the following patch we simply
replace the TARGET_GENERIC_GETTY_PORT parameter by a single free-form
text-field ?

Thomas

On Mon, 27 Sep 2010 10:53:36 +0200
Yegor Yefremov <yegor_sub1 at visionsystems.de> wrote:

> Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
> 
> ---
>  target/generic/Config.in |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
> 
> diff --git a/target/generic/Config.in b/target/generic/Config.in
> index 54ff1d6..286b0a3 100644
> --- a/target/generic/Config.in
> +++ b/target/generic/Config.in
> @@ -102,8 +102,16 @@ config BR2_TARGET_GENERIC_GETTY_TTYCPM2
>  config BR2_TARGET_GENERIC_GETTY_TTYCPM3
>  	bool "ttyCPM3"
>  	depends on BR2_powerpc
> +config BR2_TARGET_GENERIC_GETTY_CUSTOM
> +	bool "Select custom port"
> +
>  endchoice
>  
> +config BR2_TARGET_GENERIC_GETTY_CUSTOM_PORT
> +	string "Port"
> +	depends on BR2_TARGET_GENERIC_GETTY_CUSTOM
> +	default ""
> +
>  config BR2_TARGET_GENERIC_GETTY_PORT
>  	string
>  	default "#ttyS0"	if BR2_TARGET_GENERIC_GETTY_NONE
> @@ -134,6 +142,7 @@ config BR2_TARGET_GENERIC_GETTY_PORT
>  	default "ttyCPM1"	if BR2_TARGET_GENERIC_GETTY_TTYCPM1
>  	default "ttyCPM2"	if BR2_TARGET_GENERIC_GETTY_TTYCPM2
>  	default "ttyCPM3"	if BR2_TARGET_GENERIC_GETTY_TTYCPM3
> +	default $(BR2_TARGET_GENERIC_GETTY_CUSTOM_PORT) if BR2_TARGET_GENERIC_GETTY_CUSTOM
>  
>  choice
>  	prompt "Baudrate to use"
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot


-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com


More information about the buildroot mailing list