From patchwork Fri Feb 26 13:29:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 11394 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 DCB13BD1F1 for ; Fri, 26 Feb 2021 13:29:17 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C1A8468A6F; Fri, 26 Feb 2021 14:29:15 +0100 (CET) Received: from relay12.mail.gandi.net (relay12.mail.gandi.net [217.70.178.232]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7A40A60106 for ; Fri, 26 Feb 2021 14:29:13 +0100 (CET) Received: from uno.LocalDomain (93-61-96-190.ip145.fastwebnet.it [93.61.96.190]) (Authenticated sender: jacopo@jmondi.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 4214320000F for ; Fri, 26 Feb 2021 13:29:13 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Fri, 26 Feb 2021 14:29:21 +0100 Message-Id: <20210226132932.165484-2-jacopo@jmondi.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210226132932.165484-1-jacopo@jmondi.org> References: <20210226132932.165484-1-jacopo@jmondi.org> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 01/12] meson: options: Add an option to select Android memory backend 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" The Android Camera3 HAL implementation interfaces with platform specific implementations of the memory management infrastructure. On regular Android systems it is usually a vendor specific implementation of the gralloc framework, on Chromium OS memory is managed through the system-specific libcbm implementation and so far the only supported backend was a generic implementation that relies on the Linux kernel primitives to access memory buffer. Define a combo option to select which memory backend to use and define the currently existing implementation as 'android_generic'. Signed-off-by: Jacopo Mondi --- meson_options.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meson_options.txt b/meson_options.txt index 22efb3235c19..34063172f4ba 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -10,6 +10,12 @@ option('cros', value : 'false', description : 'Compile libcamera with the cros Camera3 HAL interface (depends on android option)') +option('android_memory_backend', + type : 'combo', + choices : ['android_generic'], + value : 'android_generic', + description : 'Select the memory backend in use for the Android Camera3 HAL') + option('documentation', type : 'feature', description : 'Generate the project documentation')