libgpiod: set per-package license assignments

libgpiod 2.x has more complex licensing than its 1.x counterpart, with
multiple licenses applying to different parts of the project. Because
the recipe has no per-package LICENSE statement, a user installing just
the library (LGPL-2.1-or-later) might be led to believe it is also
subject to GPL-2.0-or-later and the other aggregate licenses, which do
not apply to that package.

Thus, to make it clear which licenses apply to which parts of the
project, split the recipe-wide LICENSE into per-package values so that
each generated package reports its actual license instead of the
aggregate expression.

Additionally, the CC0-1.0 license has been added to the recipe to cover
the 90-gpio.rules file

Signed-off-by: Ricardo Simoes <ricardo.simoes@pt.bosch.com>
Signed-off-by: Mark Jonas <mark.jonas@de.bosch.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Ricardo Simoes authored and Khem Raj committed 2026-09-29 09:57:20 -07:00
1 parent 6da21f3a21
commit 01ec9c3353
1 file changed
+13 -1
@@ -2,11 +2,23 @@ require libgpiod.inc
inherit meson systemd update-rc.d useradd gobject-introspection
LICENSE = "CC-BY-SA-4.0 AND GPL-2.0-or-later AND LGPL-2.1-or-later"
LICENSE = "CC-BY-SA-4.0 AND CC0-1.0 AND GPL-2.0-or-later AND LGPL-2.1-or-later"
LICENSE:${PN} = "LGPL-2.1-or-later"
LICENSE:${PN}-cli = "GPL-2.0-or-later"
LICENSE:${PN}-gpiosim = "LGPL-2.1-or-later"
LICENSE:${PN}-glib = "LGPL-2.1-or-later"
LICENSE:${PN}-manager = "GPL-2.0-or-later"
LICENSE:${PN}-manager-cfg = "CC-BY-SA-4.0 AND CC0-1.0"
LICENSE:${PN}-tools = "GPL-2.0-or-later"
LICENSE:libgpiodbus = "LGPL-2.1-or-later"
LICENSE:libgpiodcxx = "LGPL-2.1-or-later"
LICENSE:libgpiotools = "LGPL-2.1-or-later"
LIC_FILES_CHKSUM = " \
file://LICENSES/GPL-2.0-or-later.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
file://LICENSES/LGPL-2.1-or-later.txt;md5=4b54a1fd55a448865a0b32d41598759d \
file://LICENSES/CC-BY-SA-4.0.txt;md5=fba3b94d88bfb9b81369b869a1e9a20f \
file://LICENSES/CC0-1.0.txt;md5=65d3616852dbf7b1a6d4b53b00626032 \
"
FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}-2.x:"