Return-Path: X-Greylist: delayed 3141 seconds by postgrey-1.34 at layers.openembedded.org; Mon, 04 Jul 2016 09:18:55 UTC Received: from ocean.emcraft.com (ocean.emcraft.com [185.75.190.205]) by mail.openembedded.org (Postfix) with ESMTP id 80B2460119 for ; Mon, 4 Jul 2016 09:18:55 +0000 (UTC) Received: from sergmir.emcraft.com ([172.17.0.19] helo=sergmir.localdomain) by ocean.emcraft.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1bJzD6-00033l-Ja; Mon, 04 Jul 2016 11:26:32 +0300 From: Sergei Miroshnichenko To: openembedded-core@lists.openembedded.org Date: Mon, 4 Jul 2016 11:25:47 +0300 Message-Id: <1467620748-20129-1-git-send-email-sergeimir@emcraft.com> X-Mailer: git-send-email 2.1.0 Cc: WolfgangDenkwd@denx.de, Alexander Dyachenko , Roger Meier , Sergei Miroshnichenko Subject: [PATCH v2 0/1] license: Add support for SPDX 2.0 operators X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2016 09:18:59 -0000 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