Openembedded Core Discussions
 help / color / mirror / Atom feed
* SERIAL_CONSOLE versus SERIAL_CONSOLES?
@ 2016-10-17 11:57 Robert P. J. Day
  2016-10-17 13:50 ` Phil Blundell
  0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2016-10-17 11:57 UTC (permalink / raw)
  To: OE Core mailing list


  i am well aware that if one wants to define a single serial console,
then using the SERIAL_CONSOLE variable will work just fine, as in:

SERIAL_CONSOLE ?= "115200 ttyS0"

and if you want to define multiple possible consoles, use:

SERIAL_CONSOLES = "115200;ttyAMA0 115200;ttyAMA1"

  however, i just noticed in the default bitbake.conf:

SERIAL_CONSOLE ??= ""
SERIAL_CONSOLES ??= "${@d.getVar('SERIAL_CONSOLE', True).replace(' ', ';')}"

where SERIAL_CONSOLES is defined in terms of SERIAL_CONSOLE, which
suggests to me that, really, it's SERIAL_CONSOLES that will be used
for further configuration, is that right?

  for instance, i see in
meta/recipes-core/systemd/systemd-serialgetty.bb, the test:

  do_install() {
        if [ ! -z "${SERIAL_CONSOLES}" ] ; then
                default_baudrate=`echo "${SERIAL_CONSOLES}" | sed 's/\;.*//'

wherein, once upon a time, i would have thought, "hey, i'm not
assigning anything to SERIAL_CONSOLES so that doesn't apply to me."
when, of course, it *does* apply now that i read things properly.

  so is it a fair statement that, pedantically, i might as well just
define everything in terms of SERIAL_CONSOLES and think that way?

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] 3+ messages in thread

end of thread, other threads:[~2016-10-17 14:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-17 11:57 SERIAL_CONSOLE versus SERIAL_CONSOLES? Robert P. J. Day
2016-10-17 13:50 ` Phil Blundell
2016-10-17 14:02   ` 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