From patchwork Mon Oct 14 08:13:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harvey Yang X-Patchwork-Id: 21609 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 8352DC32F4 for ; Mon, 14 Oct 2024 08:17:48 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 362BC6537C; Mon, 14 Oct 2024 10:17:47 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="UMkv7jaP"; dkim-atps=neutral Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0626C65369 for ; Mon, 14 Oct 2024 10:17:44 +0200 (CEST) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-20ce65c8e13so6694455ad.1 for ; Mon, 14 Oct 2024 01:17:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1728893863; x=1729498663; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DmfcVAulZlcbsLVFC+tfdJDrCBzv3cZ5MwroIgNRgrM=; b=UMkv7jaPXUV3lCyCXhQRqXrADE2OBpLfkCY9+SWDXkFBPPomCHniGk39ndsLKnGcgn klibZpB8sOKoS4UStBpRzr9RAAFW+L8kyeVmgmwoBEl40BLnlKo6ZTNYTRysNNwvb1uy mRnubgWYWkmv7oWuDCeUi5qj74OCpPUYuT1dw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728893863; x=1729498663; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DmfcVAulZlcbsLVFC+tfdJDrCBzv3cZ5MwroIgNRgrM=; b=W/4eA1wWrFKh5ZT9cJiR+NgCXkaRlVTnfbRwRt9uJ+CG1OwjIbuwHJT2EvmV2+f/EH zJ3YpSXGTIl1B5MONxcVptXKTvn17TLdlvkhCmZ98MdXGFyW9NCHSDipSbBupc/4Gqrk KGTTuwHtnJAYPh//byRSc4ocdj4qaEompmaIibXLpZydhEICOXwF99jyPX4zgo9uO2fy 9gwrWYQwEwTq/0rcT6VgD1UgY2qNszSnJGJgXQZLKm4O3vX5eSvkvVHFZ0TaEbRp4Z6k nG0YPoyjKXJEr72ZJZyuoxS/mQ0tDCBukcqvSsnLSc1viZWYQxZcOUr6BNBnaPgdTAMW Malg== X-Gm-Message-State: AOJu0Yw5pzaHV5R02axRYFs8PRSGCDeq8iEnwQqxsgcSIM/nG4J/tEXj GJn8agaPMDR2J5XqHfQTtJM2hhPJwdakFZMiWjeguIc2ETLRA2moVsHDKNIAelUIbqKZEqxvg/I = X-Google-Smtp-Source: AGHT+IFDffJaq7fjcobFYTyFs2PP/TFqA1cYGOC3WPZ2qZ9cdRuXpfhQqcC0GooB979aPZet+kHIQw== X-Received: by 2002:a17:903:24b:b0:20c:7bee:a7d3 with SMTP id d9443c01a7336-20ca16d2d99mr119928985ad.50.1728893863062; Mon, 14 Oct 2024 01:17:43 -0700 (PDT) Received: from chenghaoyang-low.c.googlers.com.com (199.211.81.34.bc.googleusercontent.com. [34.81.211.199]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c8c21da63sm61077735ad.235.2024.10.14.01.17.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2024 01:17:42 -0700 (PDT) From: Harvey Yang To: libcamera-devel@lists.libcamera.org Cc: Harvey Yang Subject: [PATCH 0/2] Add CrOS into enum LoggingTarget Date: Mon, 14 Oct 2024 08:13:53 +0000 Message-ID: <20241014081738.772258-1-chenghaoyang@chromium.org> X-Mailer: git-send-email 2.47.0.rc1.288.g06298d1525-goog MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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(-)