ttf-console: Add syslog-handler to obmc-console

Add syslog-handler to allow enable the obmc-console-server log the
console data to syslog when syslogid is configured for the console.

This syslog-handler following obmc-console handler structure register as
another console data ringbuffer consumer like log-handler. Log the data
line by line, filtering out non-printable data. Break the line longer than
1K into multiple syslog message.

To mitigate the risk of potential delay of Megapede support ttf-console
feature, prepare this backup plan:
Support log the host serial console stream to syslog.

Tested:
The mvt19-n1 reboot console log can get from syslog dashboard:
http://dashboards/platforms_gbmc_devtools_plx_syslog_gbmc_syslog?p=TABLE_TYPE:20240518&p=HOSTNAME:mvt19-nfd11&f=program:eq:ttf-console-log

All build success:
http://fusion2/ci/kokoro/prod%3Agbmc%2Ffirmware-build%2Ffirmware%2Fredacted_gbmc_platforms/activity/72a9e8df-2a5f-412e-bee7-76007c8d1373

Google-Bug-Id: 340958958
Change-Id: I9c68cd47c9e2ad595346dee018cec43c180b7fab
Signed-off-by: Dan Zhang <zhdaniel@google.com>
(cherry picked from commit 4742f91800454f694eb863b2a28da0f5cd43a90d)
2 files changed
tree: 36580595d7861241faa0191e92f4a5d3136e454b
  1. classes/
  2. conf/
  3. dynamic-layers/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. recipes-tpm1/
  13. LICENSE
  14. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.