]> code.ossystems Code Review - openembedded-core.git/commit
base/license: Rework INCOMPATIBLE_LICENSE variable handling
authorSaul Wold <Saul.Wold@windriver.com>
Thu, 24 Feb 2022 01:26:59 +0000 (17:26 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 2 Mar 2022 18:41:52 +0000 (18:41 +0000)
commit0d19c45ba6cf43518f380ca5afe9753a2eda0691
tree2cca34691730b708ee46dfc85fd1eb74814823f4
parent6f2d85a7b7d94101f2ce67115166fa86c185650f
base/license: Rework INCOMPATIBLE_LICENSE variable handling

This re-writes the INCOMPATIBLE_LICENSE checking code to replace
the WHITELIST_<lic> with
INCOMPATIBLE_LICENSE_EXCEPTIONS = '<pkg>:<lic> <pkg>:<lic> ...'

This initial change leaves most of the code structure in place,
but the code in base.bbclass needs to be re-written to make
the check more consistent around packages (PKGS) and not recipe
names (PN). This also is taking into account the changes for SPDX
licenses.

The aim is to provide a mode consistent variable where the variable
name is known and can easily be queried.

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass
meta/classes/license_image.bbclass
meta/classes/multilib.bbclass
meta/conf/bitbake.conf
meta/lib/oe/license.py
meta/lib/oeqa/selftest/cases/incompatible_lic.py