Openembedded Core Discussions
 help / color / mirror / Atom feed
* question about SERIAL_CONSOLES vs SERIAL_CONSOLE
@ 2015-02-24 23:18 Robert P. J. Day
  0 siblings, 0 replies; only message in thread
From: Robert P. J. Day @ 2015-02-24 23:18 UTC (permalink / raw)
  To: OE Core mailing list


  given that SERIAL_CONSOLE is officially deprecated, i was going to
submit a patch that switched them all over to SERIAL_CONSOLES, but i'm
not sure what this is doing in
meta/recipes-core/systemd/systemd-serialgetty.bb:

... snip ...
SERIAL_CONSOLE ?= "115200 ttyS0"

SRC_URI = "file://serial-getty@.service"

do_install() {
        if [ ! -z "${SERIAL_CONSOLES}" ] ; then
                default_baudrate=`echo "${SERIAL_CONSOLES}" | sed 's/\;.*//'`
                install -d ${D}${systemd_unitdir}/system/
                install -d ${D}${sysconfdir}/systemd/system/getty.target.wants/
                install -m 0644 ${WORKDIR}/serial-getty@.service ${D}${systemd_unitdir}/system/
                sed -i -e s/\@BAUDRATE\@/$default_baudrate/g ${D}${systemd_unitdir}/system/serial-getty@.service

                tmp="${SERIAL_CONSOLES}"
                for entry in $tmp ; do
... snip ...

  so, SERIAL_CONSOLE is initially set, but all further references are
to SERIAL_CONSOLES. so, is that initial setting of SERIAL_CONSOLE even
doing anything?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-24 23:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24 23:18 question about SERIAL_CONSOLES vs SERIAL_CONSOLE Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox