summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorMatthew McClintock <msm@freescale.com>2011-11-04 16:07:52 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-10 11:51:16 +0000
commit7dec9be56bed73bbd8cbc42360620c64f1fed882 (patch)
tree94f735ed83484b5f8268e53f7888d9cfa8d7816d /meta/recipes-core
parent2203a31dcbc89cc8226c483f5d18cf451725792c (diff)
downloadpoky-7dec9be56bed73bbd8cbc42360620c64f1fed882.tar.gz
Introduce new SERIAL_CONSOLES to add multiple consoles for your MACHINE
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. (From OE-Core rev: a61b5e980d45df4dc2c83dd13996b0563fddf803) Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb10
1 files changed, 10 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 ba60c74412..3a716d7d7a 100644
--- a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
+++ b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
@@ -25,6 +25,16 @@ do_install() {
25 if [ ! -z "${SERIAL_CONSOLE}" ]; then 25 if [ ! -z "${SERIAL_CONSOLE}" ]; then
26 echo "S:2345:respawn:${base_sbindir}/getty ${SERIAL_CONSOLE}" >> ${D}${sysconfdir}/inittab 26 echo "S:2345:respawn:${base_sbindir}/getty ${SERIAL_CONSOLE}" >> ${D}${sysconfdir}/inittab
27 fi 27 fi
28
29 idx=0
30 tmp="${SERIAL_CONSOLES}"
31 for i in $tmp
32 do
33 j=`echo ${i} | sed s/\;/\ /g`
34 echo "${idx}:2345:respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab
35 idx=`expr $idx + 1`
36 done
37
28 if [ "${USE_VT}" = "1" ]; then 38 if [ "${USE_VT}" = "1" ]; then
29 cat <<EOF >>${D}${sysconfdir}/inittab 39 cat <<EOF >>${D}${sysconfdir}/inittab
30# ${base_sbindir}/getty invocations for the runlevels. 40# ${base_sbindir}/getty invocations for the runlevels.