aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorMikko Gronoff <mikko.gronoff@qt.io>2022-05-09 13:17:03 +0300
committerMikko Gronoff <mikko.gronoff@qt.io>2022-05-09 11:05:30 +0000
commit14bc95859b685df7d73914acf6bb943647aeda7b (patch)
tree1451c1f577a8bc95bc322714fceb23dabb1a4ac8 /conf
parentd7e0c0d01a0bd47b1e743352d502c2635ca129c9 (diff)
licenses: add SPDX license mapping to old license names
Adapt the same approach as in meta-qt6 layer commit f80f96848dfd0072c40448400898c5e0d5d16fe0: The common license files have been renamed to use SPDX names by recent upstream merge but poky (dunfell branch) still use the old names. Add mapping to old licenses to avoid avoid warnings such as: "The license listed GPL-3.0-only was not in the licenses collected for recipe" Change-Id: I081a22a5f99765b7521b6724e3d5d098b750032f Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Diffstat (limited to 'conf')
-rw-r--r--conf/layer.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/conf/layer.conf b/conf/layer.conf
index 0bb1324a..2ae9b742 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -41,3 +41,9 @@ QT_GIT_PROTOCOL ?= "git"
# Default to commercially licensed Qt LTS
QT_EDITION ?= "commercial"
+
+# License mapping back to old license files
+SPDXLICENSEMAP[GPL-3.0-only] = "GPL-3.0"
+SPDXLICENSEMAP[LGPL-2.1-only] = "LGPLv2.1"
+SPDXLICENSEMAP[LGPL-3.0-only] = "LGPL-3.0"
+SPDXLICENSEMAP[GPL-2.0-or-later] = "GPL-2.0"