Patch Detail
Show a patch.
GET /api/patches/4034/?format=api
{ "id": 4034, "url": "https://patchwork.libcamera.org/api/patches/4034/?format=api", "web_url": "https://patchwork.libcamera.org/patch/4034/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20200612112422.915-1-scerveau@collabora.com>", "date": "2020-06-12T11:24:22", "name": "[libcamera-devel,v7] meson: detect kernel version", "commit_ref": "348e94debcf17aaf8ab020fda1d955cfd70f5f43", "pull_url": null, "state": "accepted", "archived": false, "hash": "ba7da6cb584b986a519dadd4b4411b42884bbd70", "submitter": { "id": 54, "url": "https://patchwork.libcamera.org/api/people/54/?format=api", "name": "Stéphane Cerveau", "email": "scerveau@collabora.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/4034/mbox/", "series": [ { "id": 997, "url": "https://patchwork.libcamera.org/api/series/997/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=997", "date": "2020-06-12T11:24:22", "name": "[libcamera-devel,v7] meson: detect kernel version", "version": 7, "mbox": "https://patchwork.libcamera.org/series/997/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/4034/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/4034/checks/", "tags": {}, "headers": { "Return-Path": "<scerveau@collabora.com>", "Received": [ "from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 142D560C4E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 12 Jun 2020 13:24:33 +0200 (CEST)", "from [127.0.0.1] (localhost [127.0.0.1])\n\t(Authenticated sender: scerveau) with ESMTPSA id 458BC2A53F6" ], "From": "=?utf-8?q?St=C3=A9phane_Cerveau?= <scerveau@collabora.com>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Fri, 12 Jun 2020 13:24:22 +0200", "Message-Id": "<20200612112422.915-1-scerveau@collabora.com>", "X-Mailer": "git-send-email 2.17.1", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v7] meson: detect kernel version", "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>", "X-List-Received-Date": "Fri, 12 Jun 2020 11:24:33 -0000" }, "content": "Add kernel version detection to warn user\nthat only >= 5.0.0 V4L API are supported in\nlibcamera.\n\nSigned-off-by: Stéphane Cerveau <scerveau@collabora.com>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\nReviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n meson.build | 11 +++++++++++\n 1 file changed, 11 insertions(+)", "diff": "diff --git a/meson.build b/meson.build\nindex e898782..ec54e68 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -105,6 +105,17 @@ if get_option('test')\n subdir('test')\n endif\n \n+if not meson.is_cross_build()\n+ kernel_version_req = '>= 5.0.0'\n+ kernel_version = run_command('uname', '-r').stdout().strip()\n+ if not kernel_version.version_compare(kernel_version_req)\n+ warning('The current running kernel version @0@ is too old to run libcamera.'\n+ .format(kernel_version))\n+ warning('If you intend to use libcamera on this machine, please upgrade to a kernel @0@.'\n+ .format(kernel_version_req))\n+ endif\n+endif\n+\n # Create a symlink from the build root to the source root. This is used when\n # running libcamera from the build directory to locate resources in the source\n # directory (such as IPA configuration files).\n", "prefixes": [ "libcamera-devel", "v7" ] }