{"id":18794,"url":"https://patchwork.libcamera.org/api/patches/18794/?format=json","web_url":"https://patchwork.libcamera.org/patch/18794/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20230706080058.6259-1-laurent.pinchart@ideasonboard.com>","date":"2023-07-06T08:00:58","name":"[libcamera-devel,v2] libcamera: Add option to configure udev support","commit_ref":"d314d3b98b86dec9a25ce7b829e72a790b7ead1b","pull_url":null,"state":"accepted","archived":false,"hash":"9b1f1c113fe289b89cde342e79051e339bf6532a","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/18794/mbox/","series":[{"id":3958,"url":"https://patchwork.libcamera.org/api/series/3958/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3958","date":"2023-07-06T08:00:58","name":"[libcamera-devel,v2] libcamera: Add option to configure udev support","version":2,"mbox":"https://patchwork.libcamera.org/series/3958/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/18794/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/18794/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 13B10BDC71\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu,  6 Jul 2023 08:01:03 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 6685A628C0;\n\tThu,  6 Jul 2023 10:01:02 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 1D92F61E33\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu,  6 Jul 2023 10:01:00 +0200 (CEST)","from pendragon.ideasonboard.com (85-160-25-222.reb.o2.cz\n\t[85.160.25.222])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 7CB7C6C8;\n\tThu,  6 Jul 2023 10:00:14 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1688630462;\n\tbh=CtKOkjfj7ilQXD0MzAhzMm+VHjOC4DNkRHClkfdxssc=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=rrfc2vWb6CssP8N7EQFl8vRvWLVnoi6tiAZ8GoHzGfPQrlkogWn5B50jMRm0IzSxp\n\tkbkNYV6KkbAFpVKn6PtcaviM7yyhmDyI+pPnXcdwuqfNHgVv18RZ8f4GYYeKqXM6hy\n\t9s+SR1Zp4EChmQff/lnygpcbH6QBQgv2cCm0m9TSQeL4/y1amjhwd0PmgBzjJzORXy\n\thfuCyTrFPIjhMHaEtJMwG64qPj0x/w3GRUBm4aiH6h5Qb7so8oVBAfPWvJ3n+2F1ap\n\tfgYignGHAN+IdnFest+Dq+dvftUCemSMQ7L/N5qvSiejuL4saWhP7RaahObjCEenhZ\n\t7OziaC56gN2bg==","v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1688630414;\n\tbh=CtKOkjfj7ilQXD0MzAhzMm+VHjOC4DNkRHClkfdxssc=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=DvvnNh0qlPg3wh8qNeHzHYqgLLWKaXr9Ggt4d7NPytWbyQ6QJJGMh6LD/QMDX8sjR\n\trOI3U1GAXI+CK+MK4K8AQPQxGLOcqlXcZgIM8JJXPmfkZcx0HHGELh0+6h784pK2bq\n\tPJEI4haOAW0mhXr880LcnmBFd4OMGXoxxFnM99c8="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"DvvnNh0q\"; dkim-atps=neutral","To":"libcamera-devel@lists.libcamera.org","Date":"Thu,  6 Jul 2023 11:00:58 +0300","Message-Id":"<20230706080058.6259-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.39.3","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v2] libcamera: Add option to configure\n\tudev support","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"libcamera uses udev to support hotplug (and unplug) detection. This is\nan optional feature, which gets selected automatically if udev is\navailable. Users may however want to build libcamera without hotplug\ndetection, even if udev is available on the system. Add a new feature\noption to control udev support. The default value is auto, which retains\nthe existing behaviour.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\nChanges since v1:\n\n- Add configuration summary for hotplug\n---\n meson.build               | 1 +\n meson_options.txt         | 5 +++++\n src/libcamera/meson.build | 2 +-\n 3 files changed, 7 insertions(+), 1 deletion(-)\n\n\nbase-commit: d06ed87d49ca3d734fd1c2f1409280abb499c625\nprerequisite-patch-id: 03020483e75d365fa1661922fc66b2f16ea11a04","diff":"diff --git a/meson.build b/meson.build\nindex 29777529a0d9..363de459e537 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -261,6 +261,7 @@ py_mod.find_installation('python3', modules : py_modules)\n summary({\n             'Enabled pipelines': pipelines,\n             'Enabled IPA modules': enabled_ipa_names,\n+            'Hotplug support': libudev.found(),\n             'Tracing support': tracing_enabled,\n             'Android support': android_enabled,\n             'GStreamer support': gst_enabled,\ndiff --git a/meson_options.txt b/meson_options.txt\nindex 4405b401d7d3..fad928af4b62 100644\n--- a/meson_options.txt\n+++ b/meson_options.txt\n@@ -66,6 +66,11 @@ option('tracing',\n         value : 'auto',\n         description : 'Enable tracing (based on lttng)')\n \n+option('udev',\n+       type : 'feature',\n+       value : 'auto',\n+       description : 'Enable udev support for hotplug')\n+\n option('v4l2',\n         type : 'boolean',\n         value : false,\ndiff --git a/src/libcamera/meson.build b/src/libcamera/meson.build\nindex 38fbb41e7d6c..b24f82965764 100644\n--- a/src/libcamera/meson.build\n+++ b/src/libcamera/meson.build\n@@ -76,7 +76,7 @@ libdl = null_dep\n if not cc.has_function('dlopen')\n     libdl = cc.find_library('dl')\n endif\n-libudev = dependency('libudev', required : false)\n+libudev = dependency('libudev', required : get_option('udev'))\n libyaml = dependency('yaml-0.1', required : false)\n \n # Use one of gnutls or libcrypto (provided by OpenSSL), trying gnutls first.\n","prefixes":["libcamera-devel","v2"]}