[OE-core] [PATCH v2] Introduce new SERIAL_CONSOLES to add multiple consoles for your MACHINE

McClintock Matthew-B29882 B29882 at freescale.com
Tue Nov 8 19:36:23 UTC 2011


On Mon, Nov 7, 2011 at 5:03 PM, Matthew McClintock <msm at freescale.com> wrote:
> I don't get it. I think the first version was still OK. The first
> version is pasted below.
>
>> +    idx=0
>> +    tmp="${SERIAL_CONSOLES}" <- If it's not defined this will catch it.
>> +    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
>
> See my inline comment above, but if SERIAL_CONSOLES is not defined
> tmp="" and the for loop won't execute. Not sure if there is a more
> standard way to do this though.

ping..

-M




More information about the Openembedded-core mailing list