[0/2] Add CrOS into enum LoggingTarget
mbox series

Message ID 20241014081738.772258-1-chenghaoyang@chromium.org
Headers show
Series
  • Add CrOS into enum LoggingTarget
Related show

Message

Harvey Yang Oct. 14, 2024, 8:13 a.m. UTC
Hi folks,

As CrOS needs log both for stderr and syslog, we need another value in
enum LoggingTarget. This series of patches adds logTargetCros.

I believe there are quite some approaches to fulfill the requirement.
Please take a look, thanks.

This passes gitlab pipeline:
https://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1289467

BR,
Harvey

Han-Lin Chen (2):
  libcamera: add OS_CHROMEOS when the android_platform is cros
  libcamera: log: add logTargetCros for ChromeOS logs

 include/libcamera/logging.h |  1 +
 meson.build                 |  4 +++
 src/libcamera/base/log.cpp  | 61 +++++++++++++++++++++++++++++++------
 3 files changed, 57 insertions(+), 9 deletions(-)