{"id":26425,"url":"https://patchwork.libcamera.org/api/patches/26425/?format=json","web_url":"https://patchwork.libcamera.org/patch/26425/","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":"<20260405191443.1209948-10-laurent.pinchart@ideasonboard.com>","date":"2026-04-05T19:14:41","name":"[09/11] libcamera: Add missing SPDX headers","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"9b16023d3e1cc8c5e3fd3e09e616bfbf2d5c27b0","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/26425/mbox/","series":[{"id":5866,"url":"https://patchwork.libcamera.org/api/series/5866/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5866","date":"2026-04-05T19:14:32","name":"libcamera: Fix missing license information","version":1,"mbox":"https://patchwork.libcamera.org/series/5866/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/26425/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/26425/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 88F25BEFBE\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSun,  5 Apr 2026 19:15:02 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 36FB862D85;\n\tSun,  5 Apr 2026 21:15:02 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 0A4B162D85\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun,  5 Apr 2026 21:15:00 +0200 (CEST)","from killaraus.ideasonboard.com\n\t(2001-14ba-703d-e500--2a1.rev.dnainternet.fi\n\t[IPv6:2001:14ba:703d:e500::2a1])\n\tby perceval.ideasonboard.com (Postfix) with UTF8SMTPSA id C439E1988\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun,  5 Apr 2026 21:13:33 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"fhbDd2hK\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1775416414;\n\tbh=J8xq2pL12/OlghaIx06YfAUHhJRr1VblGS5CWT+BIbM=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=fhbDd2hKahOHkTMCfDXiUKGiAcZsbc2yDk6mbWUH9HN5YVzqQmtvH9x+n4TP4Y19j\n\tdTZSyXOdslhtxTfVFaklPS5zd9wtIa713w6Tkp1TQaxHWCQEpb2xeb/mcDcjhzbcwa\n\tPPtWIeynz6GNm75vIh/YfgYxXNxu7PwmzQNsUOvY=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Subject":"[PATCH 09/11] libcamera: Add missing SPDX headers","Date":"Sun,  5 Apr 2026 22:14:41 +0300","Message-ID":"<20260405191443.1209948-10-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.52.0","In-Reply-To":"<20260405191443.1209948-1-laurent.pinchart@ideasonboard.com>","References":"<20260405191443.1209948-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","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>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Multiple files in libcamera are missing SPDX headers. Add them with the\nfollowing licenses:\n\n- CC-BY-SA-4.0 for documentation\n\n- CC0-1.0 for build system, development tool configuration files and\n  TODO lists, as we consider them non-copyrightable, and for example\n  configuration files to facilitate their use\n\n- BSD-2-Clause for a file copied from the Raspberry Pi tuning tool (and\n  add the corresponding copyright information)\n\nWhile at it, add a missing blank line to\nsrc/libcamera/pipeline/virtual/README.md.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n .b4-config                                      | 2 ++\n Documentation/mainpage.dox                      | 2 ++\n Documentation/thread-safety.dox                 | 2 ++\n src/libcamera/pipeline/virtual/README.md        | 3 +++\n src/libcamera/pipeline/virtual/data/meson.build | 2 ++\n src/libcamera/software_isp/TODO.md              | 2 ++\n utils/tuning/config-example.yaml                | 1 +\n utils/tuning/libtuning/ctt_colors.py            | 5 +++++\n utils/tuning/requirements.txt                   | 1 +\n 9 files changed, 20 insertions(+)","diff":"diff --git a/.b4-config b/.b4-config\nindex 371e3e9c2485..99d0361ce453 100644\n--- a/.b4-config\n+++ b/.b4-config\n@@ -1,2 +1,4 @@\n+# SPDX-License-Identifier: CC0-1.0\n+\n [b4]\n   send-series-to = libcamera-devel@lists.libcamera.org\ndiff --git a/Documentation/mainpage.dox b/Documentation/mainpage.dox\nindex 99e67e7ab13d..b651788ee918 100644\n--- a/Documentation/mainpage.dox\n+++ b/Documentation/mainpage.dox\n@@ -1,3 +1,5 @@\n+// SPDX-License-Identifier: CC-BY-SA-4.0\n+\n /**\n \\if internal\n \\mainpage libcamera internal API reference\ndiff --git a/Documentation/thread-safety.dox b/Documentation/thread-safety.dox\nindex df4c457c89d6..0bc02bfc071f 100644\n--- a/Documentation/thread-safety.dox\n+++ b/Documentation/thread-safety.dox\n@@ -1,3 +1,5 @@\n+// SPDX-License-Identifier: CC-BY-SA-4.0\n+\n /**\n  * \\page thread-safety Reentrancy and Thread-Safety\n  *\ndiff --git a/src/libcamera/pipeline/virtual/README.md b/src/libcamera/pipeline/virtual/README.md\nindex a9f39c15172b..0b2f03d8d719 100644\n--- a/src/libcamera/pipeline/virtual/README.md\n+++ b/src/libcamera/pipeline/virtual/README.md\n@@ -1,3 +1,5 @@\n+<!-- SPDX-License-Identifier: CC-BY-SA-4.0 -->\n+\n # Virtual Pipeline Handler\n \n Virtual pipeline handler emulates fake external camera(s) for testing.\n@@ -9,6 +11,7 @@ Virtual pipeline handler emulates fake external camera(s) for testing.\n   `share/libcamera/pipeline/virtual/virtual.yaml`.\n \n ### Config File Format\n+\n The config file contains the information about cameras' properties to register.\n The config file should be a yaml file with dictionary of the cameraIds\n associated with their properties as top level. The default value will be applied\ndiff --git a/src/libcamera/pipeline/virtual/data/meson.build b/src/libcamera/pipeline/virtual/data/meson.build\nindex ce63f9a27d43..0cade65bfa15 100644\n--- a/src/libcamera/pipeline/virtual/data/meson.build\n+++ b/src/libcamera/pipeline/virtual/data/meson.build\n@@ -1,3 +1,5 @@\n+# SPDX-License-Identifier: CC0-1.0\n+\n install_data('virtual.yaml',\n              install_dir : pipeline_data_dir / 'virtual',\n              install_tag : 'runtime',\ndiff --git a/src/libcamera/software_isp/TODO.md b/src/libcamera/software_isp/TODO.md\nindex 036cf2b7f9ce..0f27da2d243f 100644\n--- a/src/libcamera/software_isp/TODO.md\n+++ b/src/libcamera/software_isp/TODO.md\n@@ -1,3 +1,5 @@\n+<!-- SPDX-License-Identifier: CC0-1.0 -->\n+\n # Software ISP TODO list\n \n This file contains the TODO list for the software ISP.\ndiff --git a/utils/tuning/config-example.yaml b/utils/tuning/config-example.yaml\nindex 680f9213b269..0929d90ef747 100644\n--- a/utils/tuning/config-example.yaml\n+++ b/utils/tuning/config-example.yaml\n@@ -1,3 +1,4 @@\n+# SPDX-License-Identifier: CC0-1.0\n general:\n   disable: []\n   plot: []\ndiff --git a/utils/tuning/libtuning/ctt_colors.py b/utils/tuning/libtuning/ctt_colors.py\nindex cb4d236b04d7..7e9ba646fa5b 100644\n--- a/utils/tuning/libtuning/ctt_colors.py\n+++ b/utils/tuning/libtuning/ctt_colors.py\n@@ -1,4 +1,9 @@\n+# SPDX-License-Identifier: BSD-2-Clause\n+#\n+# Copyright (C) 2023, Raspberry Pi Ltd\n+#\n # Program to convert from RGB to LAB color space\n+\n def RGB_to_LAB(RGB):  # where RGB is a 1x3 array.   e.g RGB = [100, 255, 230]\n     num = 0\n     XYZ = [0, 0, 0]\ndiff --git a/utils/tuning/requirements.txt b/utils/tuning/requirements.txt\nindex 3705769be7ff..8e14ce0911da 100644\n--- a/utils/tuning/requirements.txt\n+++ b/utils/tuning/requirements.txt\n@@ -1,3 +1,4 @@\n+# SPDX-License-Identifier: CC0-1.0\n coloredlogs\n matplotlib\n numpy\n","prefixes":["09/11"]}