diff options
author | Saul Wold <Saul.Wold@windriver.com> | 2022-02-23 17:26:59 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-02 18:43:25 +0000 |
commit | d6449581c998a24145e527c571b3baf90a9f2518 (patch) | |
tree | f20a0fd2e91dd9fb294e5243f28b1533fc8ec21c /meta/classes/multilib.bbclass | |
parent | 9ead8e762e977d41b0107553b4827f9a7edc252f (diff) | |
download | poky-d6449581c998a24145e527c571b3baf90a9f2518.tar.gz |
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.
(From OE-Core rev: 0d19c45ba6cf43518f380ca5afe9753a2eda0691)
Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/multilib.bbclass')
-rw-r--r-- | meta/classes/multilib.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass index 1ad654f546..5859ca8d21 100644 --- a/meta/classes/multilib.bbclass +++ b/meta/classes/multilib.bbclass | |||
@@ -75,12 +75,12 @@ python multilib_virtclass_handler () { | |||
75 | e.data.setVar("PN", variant + "-" + e.data.getVar("PN", False)) | 75 | e.data.setVar("PN", variant + "-" + e.data.getVar("PN", False)) |
76 | e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + override) | 76 | e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + override) |
77 | 77 | ||
78 | # Expand WHITELIST_GPL-3.0 with multilib prefix | 78 | # Expand INCOMPATIBLE_LICENSE_EXCEPTIONS with multilib prefix |
79 | pkgs = e.data.getVar("WHITELIST_GPL-3.0") | 79 | pkgs = e.data.getVar("INCOMPATIBLE_LICENSE_EXCEPTIONS") |
80 | if pkgs: | 80 | if pkgs: |
81 | for pkg in pkgs.split(): | 81 | for pkg in pkgs.split(): |
82 | pkgs += " " + variant + "-" + pkg | 82 | pkgs += " " + variant + "-" + pkg |
83 | e.data.setVar("WHITELIST_GPL-3.0", pkgs) | 83 | e.data.setVar("INCOMPATIBLE_LICENSE_EXCEPTIONS", pkgs) |
84 | 84 | ||
85 | # DEFAULTTUNE can change TARGET_ARCH override so expand this now before update_data | 85 | # DEFAULTTUNE can change TARGET_ARCH override so expand this now before update_data |
86 | newtune = e.data.getVar("DEFAULTTUNE:" + "virtclass-multilib-" + variant, False) | 86 | newtune = e.data.getVar("DEFAULTTUNE:" + "virtclass-multilib-" + variant, False) |