[OE-core] [PATCH v2 0/1] license: Add support for SPDX 2.0 operators
Sergei Miroshnichenko
sergeimir at emcraft.com
Mon Jul 4 08:25:47 UTC 2016
Composite SPDX license expressions can be constructed using "OR",
"AND" and "WITH" operators: map them to "|" and "&" operators
accordingly.
Recognize long form license identifiers: "[DocumentRef-XXX:][LicenseRef-]YYY".
Tested on the following expressions:
LICENSE = "Artistic-1.0"
LICENSE = "LicenseRef-Artistic-1.0 AND NASA-1.3"
LICENSE = "(LicenseRef-Artistic-1.0 WITH GPL-3.0-with-GCC-exception)
OR (DocumentRef-spdx-tool-1.2:LicenseRef-NASA-1.3 AND GPL-2.0+)"
Reference:
https://spdx.org/sites/spdx/files/SPDX-2.0.pdf Appendix IV: SPDX License Expression
Sergei Miroshnichenko (1):
license: Add support for SPDX 2.0 operators
meta/classes/license.bbclass | 17 ++++++++++-------
meta/lib/oe/license.py | 21 ++++++++++++++++-----
2 files changed, 26 insertions(+), 12 deletions(-)
--
2.1.0
More information about the Openembedded-core
mailing list