Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Cc: Matthew McClintock <msm@freescale.com>, philb@gnu.org
Subject: Re: [PATCH v2] Introduce new SERIAL_CONSOLES to add multiple consoles for your MACHINE
Date: Thu, 10 Nov 2011 09:21:23 -0800	[thread overview]
Message-ID: <4EBC0813.2090607@linux.intel.com> (raw)
In-Reply-To: <1320441941-30850-1-git-send-email-msm@freescale.com>

On 11/04/2011 02:25 PM, Matthew McClintock wrote:
> Just define additional serial consoles like so:
>
> SERIAL_CONSOLES="115200;ttyS0 115200;ttyS1 ... 115200;ttySN"
>
> Also be sure to remove SERIAL_CONSOLE (lacking the S) from your
> machine as they can conflict.
>
> Signed-off-by: Matthew McClintock<msm@freescale.com>
> ---
> v2: handle case where SERIAL_CONSOLES is not defined
>
>   .../sysvinit/sysvinit-inittab_2.88dsf.bb           |   12 ++++++++++++
>   1 files changed, 12 insertions(+), 0 deletions(-)
>
> diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
> index ba60c74..adab262 100644
> --- a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
> +++ b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
> @@ -25,6 +25,18 @@ do_install() {
>       if [ ! -z "${SERIAL_CONSOLE}" ]; then
>           echo "S:2345:respawn:${base_sbindir}/getty ${SERIAL_CONSOLE}">>  ${D}${sysconfdir}/inittab
>       fi
> +
> +    idx=0
> +    tmp="${SERIAL_CONSOLES}"
> +    if [ "x" != "x$tmp" ]; then
> +	for i in $tmp
> +	do
> +	    j=`echo ${i} | sed s/\;/\ /g`
> +	    echo "${idx}:2345:respawn:${base_sbindir}/getty ${j}">>  ${D}${sysconfdir}/inittab
> +	    idx=`expr $idx + 1`
> +	done
> +    fi
> +
>       if [ "${USE_VT}" = "1" ]; then
>           cat<<EOF>>${D}${sysconfdir}/inittab
>   # ${base_sbindir}/getty invocations for the runlevels.

Merged into OE-Core

Thanks
	Sau!



      parent reply	other threads:[~2011-11-10 17:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-04 21:07 [PATCH] Introduce new SERIAL_CONSOLES to add multiple consoles for your MACHINE Matthew McClintock
2011-11-04 21:15 ` Phil Blundell
2011-11-04 21:25   ` [PATCH v2] " Matthew McClintock
2011-11-04 21:34     ` Phil Blundell
2011-11-04 22:12       ` McClintock Matthew-B29882
2011-11-07 23:03       ` McClintock Matthew-B29882
2011-11-08 19:36         ` McClintock Matthew-B29882
2011-11-08 20:47           ` Phil Blundell
2011-11-08 20:50             ` McClintock Matthew-B29882
2011-11-08 21:06               ` Saul Wold
2011-11-11  1:06               ` Chris Larson
2011-11-10 17:21     ` Saul Wold [this message]

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=4EBC0813.2090607@linux.intel.com \
    --to=sgw@linux.intel.com \
    --cc=msm@freescale.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=philb@gnu.org \
    /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