diff options
author | Jose Quaresma <quaresma.jose@gmail.com> | 2022-03-07 22:12:48 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-08 09:44:28 +0000 |
commit | 3ec1f30ebba498566d4b266168e1faf182a38fb8 (patch) | |
tree | 8eb092d4d483b3abca225ce3d5f8c66040e75243 /meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc | |
parent | bcd7e29a3b754a3e5cdc7f0db56b89d0c6369c8e (diff) | |
download | poky-3ec1f30ebba498566d4b266168e1faf182a38fb8.tar.gz |
gstreamer1.0-plugins-bad/ugly: use the GPL-2.0-or-later only when it is in use
Since all gstreamer modules uses LGPLv2.1 with exceptions
for some plugins in bad and ugly modules that has GPLv2+.
For the GPLv2+ this patch set this license only for each plugin
that is affected by by that, using the new GSTREAMER_GPL.
CC: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
(From OE-Core rev: 25ea8753e2d1dc4e1aa01b4800da532ca1aecec7)
Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc')
-rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc new file mode 100644 index 0000000000..6638f13540 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-license.inc | |||
@@ -0,0 +1,19 @@ | |||
1 | # This .inc file contains functionality for automatically setting | ||
2 | # the the license of all plugins according to the GSTREAMER_GPL. | ||
3 | |||
4 | PACKAGESPLITFUNCS:append = " set_gstreamer_license " | ||
5 | |||
6 | python set_gstreamer_license () { | ||
7 | import oe.utils | ||
8 | pn = d.getVar('PN') + '-' | ||
9 | gpl_plugins_names = [pn+plugin for plugin in d.getVar('GSTREAMER_GPL').split()] | ||
10 | for pkg in oe.utils.packages_filter_out_system(d): | ||
11 | if pkg in gpl_plugins_names: | ||
12 | d.setVar('LICENSE:' + pkg, 'GPL-2.0-or-later') | ||
13 | else: | ||
14 | d.setVar('LICENSE:' + pkg, 'LGPL-2.1-or-later') | ||
15 | } | ||
16 | |||
17 | EXTRA_OEMESON += " \ | ||
18 | ${@bb.utils.contains_any('PACKAGECONFIG', "${GSTREAMER_GPL}", '-Dgpl=enabled', '-Dgpl=disabled', d)} \ | ||
19 | " | ||