mirror of
https://git.yoctoproject.org/poky
synced 2026-05-04 22:39:49 +02:00
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>
20 lines
716 B
PHP
20 lines
716 B
PHP
# This .inc file contains functionality for automatically setting
|
|
# the the license of all plugins according to the GSTREAMER_GPL.
|
|
|
|
PACKAGESPLITFUNCS:append = " set_gstreamer_license "
|
|
|
|
python set_gstreamer_license () {
|
|
import oe.utils
|
|
pn = d.getVar('PN') + '-'
|
|
gpl_plugins_names = [pn+plugin for plugin in d.getVar('GSTREAMER_GPL').split()]
|
|
for pkg in oe.utils.packages_filter_out_system(d):
|
|
if pkg in gpl_plugins_names:
|
|
d.setVar('LICENSE:' + pkg, 'GPL-2.0-or-later')
|
|
else:
|
|
d.setVar('LICENSE:' + pkg, 'LGPL-2.1-or-later')
|
|
}
|
|
|
|
EXTRA_OEMESON += " \
|
|
${@bb.utils.contains_any('PACKAGECONFIG', "${GSTREAMER_GPL}", '-Dgpl=enabled', '-Dgpl=disabled', d)} \
|
|
"
|