aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2022-03-04 08:25:59 +0000
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-03-08 07:16:19 +0000
commitaa5a70f0baad0fdd82342e8df7f50acfbbf349f1 (patch)
tree43004132f6b298dc725f598fc02e898b7f816603
parentb1b08aa40f25b58401879cc93fc2211a6c0f68f3 (diff)
licenses: add SPDX license mapping to old license names
The common license files have been renamed to use SPDX names, but we still support some older yocto branches that use the old names. Add mapping to allow building with older yocto version after the recipes are updated to the new license names. This avoid warnings: No generic license file exists for: GPL-3.0-only in any provider Change-Id: Ib93baf9027442e69ab5bce294449bd203d9be2aa Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io> (cherry picked from commit f80f96848dfd0072c40448400898c5e0d5d16fe0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--conf/layer.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/conf/layer.conf b/conf/layer.conf
index c08dea9..a9a82e1 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -39,3 +39,8 @@ QT_GIT_PROJECT ?= "qt"
QT_GIT ?= "git://code.qt.io"
QT_GIT_PROTOCOL ?= "git"
QT_EDITION ?= "opensource"
+
+# License mapping back to old license files
+SPDXLICENSEMAP[GPL-3.0-only] = "GPL-3.0"
+SPDXLICENSEMAP[LGPL-3.0-only] = "LGPL-3.0"
+SPDXLICENSEMAP[GPL-2.0-or-later] = "GPL-2.0"