summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2022-02-27 19:21:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-01 23:44:59 +0000
commit68d1a56e987ee530620bdf245ddf1812f8cf6d39 (patch)
tree24197a3306fa5fc65571001e28c081a53188651f /scripts
parent949aa76210b4de3eaab79d006af982ce8a44b29d (diff)
downloadpoky-68d1a56e987ee530620bdf245ddf1812f8cf6d39.tar.gz
recipetool: Use SPDX license identifiers
There are still a couple of cases where the license may be set as, e.g., "GPL" or "GPL-2.0" since there is not enough information to decide the actual SPDX license. It is then assumed that the developer will have to correct the information. (From OE-Core rev: e7df51f8d2361e9fe2d67669d2e17f0a5d01004e) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/recipetool/create.py12
-rw-r--r--scripts/lib/recipetool/create_buildsys_python.py22
-rw-r--r--scripts/lib/recipetool/licenses.csv66
3 files changed, 50 insertions, 50 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index 4cf6a5a95c..0b5d5466ba 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -1080,7 +1080,7 @@ def crunch_license(licfile):
1080 1080
1081 # common licenses 1081 # common licenses
1082 crunched_md5sums['89f3bf322f30a1dcfe952e09945842f0'] = 'Apache-2.0' 1082 crunched_md5sums['89f3bf322f30a1dcfe952e09945842f0'] = 'Apache-2.0'
1083 crunched_md5sums['13b6fe3075f8f42f2270a748965bf3a1'] = 'BSD-0-Clause' 1083 crunched_md5sums['13b6fe3075f8f42f2270a748965bf3a1'] = '0BSD'
1084 crunched_md5sums['ba87a7d7c20719c8df4b8beed9b78c43'] = 'BSD-2-Clause' 1084 crunched_md5sums['ba87a7d7c20719c8df4b8beed9b78c43'] = 'BSD-2-Clause'
1085 crunched_md5sums['7f8892c03b72de419c27be4ebfa253f8'] = 'BSD-3-Clause' 1085 crunched_md5sums['7f8892c03b72de419c27be4ebfa253f8'] = 'BSD-3-Clause'
1086 crunched_md5sums['21128c0790b23a8a9f9e260d5f6b3619'] = 'BSL-1.0' 1086 crunched_md5sums['21128c0790b23a8a9f9e260d5f6b3619'] = 'BSL-1.0'
@@ -1108,15 +1108,15 @@ def crunch_license(licfile):
1108 # https://github.com/waffle-gl/waffle/blob/master/LICENSE.txt 1108 # https://github.com/waffle-gl/waffle/blob/master/LICENSE.txt
1109 crunched_md5sums['50fab24ce589d69af8964fdbfe414c60'] = 'BSD-2-Clause' 1109 crunched_md5sums['50fab24ce589d69af8964fdbfe414c60'] = 'BSD-2-Clause'
1110 # https://github.com/spigwitmer/fakeds1963s/blob/master/LICENSE 1110 # https://github.com/spigwitmer/fakeds1963s/blob/master/LICENSE
1111 crunched_md5sums['88a4355858a1433fea99fae34a44da88'] = 'GPLv2' 1111 crunched_md5sums['88a4355858a1433fea99fae34a44da88'] = 'GPL-2.0'
1112 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt 1112 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
1113 crunched_md5sums['063b5c3ebb5f3aa4c85a2ed18a31fbe7'] = 'GPLv2' 1113 crunched_md5sums['063b5c3ebb5f3aa4c85a2ed18a31fbe7'] = 'GPL-2.0'
1114 # https://github.com/FFmpeg/FFmpeg/blob/master/COPYING.LGPLv2.1 1114 # https://github.com/FFmpeg/FFmpeg/blob/master/COPYING.LGPLv2.1
1115 crunched_md5sums['7f5202f4d44ed15dcd4915f5210417d8'] = 'LGPLv2.1' 1115 crunched_md5sums['7f5202f4d44ed15dcd4915f5210417d8'] = 'LGPL-2.1'
1116 # unixODBC-2.3.4 COPYING 1116 # unixODBC-2.3.4 COPYING
1117 crunched_md5sums['3debde09238a8c8e1f6a847e1ec9055b'] = 'LGPLv2.1' 1117 crunched_md5sums['3debde09238a8c8e1f6a847e1ec9055b'] = 'LGPL-2.1'
1118 # https://github.com/FFmpeg/FFmpeg/blob/master/COPYING.LGPLv3 1118 # https://github.com/FFmpeg/FFmpeg/blob/master/COPYING.LGPLv3
1119 crunched_md5sums['f90c613c51aa35da4d79dd55fc724ceb'] = 'LGPLv3' 1119 crunched_md5sums['f90c613c51aa35da4d79dd55fc724ceb'] = 'LGPL-3.0'
1120 # https://raw.githubusercontent.com/eclipse/mosquitto/v1.4.14/epl-v10 1120 # https://raw.githubusercontent.com/eclipse/mosquitto/v1.4.14/epl-v10
1121 crunched_md5sums['efe2cb9a35826992b9df68224e3c2628'] = 'EPL-1.0' 1121 crunched_md5sums['efe2cb9a35826992b9df68224e3c2628'] = 'EPL-1.0'
1122 1122
diff --git a/scripts/lib/recipetool/create_buildsys_python.py b/scripts/lib/recipetool/create_buildsys_python.py
index 2a2c6ab6b6..f4f51c88b4 100644
--- a/scripts/lib/recipetool/create_buildsys_python.py
+++ b/scripts/lib/recipetool/create_buildsys_python.py
@@ -112,18 +112,18 @@ class PythonRecipeHandler(RecipeHandler):
112 'License :: OSI Approved :: European Union Public Licence 1.0 (EUPL 1.0)': 'EUPL-1.0', 112 'License :: OSI Approved :: European Union Public Licence 1.0 (EUPL 1.0)': 'EUPL-1.0',
113 'License :: OSI Approved :: European Union Public Licence 1.1 (EUPL 1.1)': 'EUPL-1.1', 113 'License :: OSI Approved :: European Union Public Licence 1.1 (EUPL 1.1)': 'EUPL-1.1',
114 'License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)': 'EUPL-1.2', 114 'License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)': 'EUPL-1.2',
115 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)': 'AGPL-3.0+', 115 'License :: OSI Approved :: GNU Affero General Public License v3': 'AGPL-3.0-only',
116 'License :: OSI Approved :: GNU Affero General Public License v3': 'AGPL-3.0', 116 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)': 'AGPL-3.0-or-later',
117 'License :: OSI Approved :: GNU Free Documentation License (FDL)': 'GFDL', 117 'License :: OSI Approved :: GNU Free Documentation License (FDL)': 'GFDL',
118 'License :: OSI Approved :: GNU General Public License (GPL)': 'GPL', 118 'License :: OSI Approved :: GNU General Public License (GPL)': 'GPL',
119 'License :: OSI Approved :: GNU General Public License v2 (GPLv2)': 'GPL-2.0', 119 'License :: OSI Approved :: GNU General Public License v2 (GPLv2)': 'GPL-2.0-only',
120 'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)': 'GPL-2.0+', 120 'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)': 'GPL-2.0-or-later',
121 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)': 'GPL-3.0', 121 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)': 'GPL-3.0-only',
122 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)': 'GPL-3.0+', 122 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)': 'GPL-3.0-or-later',
123 'License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)': 'LGPL-2.0', 123 'License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)': 'LGPL-2.0-only',
124 'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)': 'LGPL-2.0+', 124 'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)': 'LGPL-2.0-or-later',
125 'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)': 'LGPL-3.0', 125 'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)': 'LGPL-3.0-only',
126 'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)': 'LGPL-3.0+', 126 'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)': 'LGPL-3.0-or-later',
127 'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)': 'LGPL', 127 'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)': 'LGPL',
128 'License :: OSI Approved :: Historical Permission Notice and Disclaimer (HPND)': 'HPND', 128 'License :: OSI Approved :: Historical Permission Notice and Disclaimer (HPND)': 'HPND',
129 'License :: OSI Approved :: IBM Public License': 'IPL', 129 'License :: OSI Approved :: IBM Public License': 'IPL',
@@ -144,7 +144,7 @@ class PythonRecipeHandler(RecipeHandler):
144 'License :: OSI Approved :: Open Software License 3.0 (OSL-3.0)': 'OSL-3.0', 144 'License :: OSI Approved :: Open Software License 3.0 (OSL-3.0)': 'OSL-3.0',
145 'License :: OSI Approved :: PostgreSQL License': 'PostgreSQL', 145 'License :: OSI Approved :: PostgreSQL License': 'PostgreSQL',
146 'License :: OSI Approved :: Python License (CNRI Python License)': 'CNRI-Python', 146 'License :: OSI Approved :: Python License (CNRI Python License)': 'CNRI-Python',
147 'License :: OSI Approved :: Python Software Foundation License': 'PSF', 147 'License :: OSI Approved :: Python Software Foundation License': 'PSF-2.0',
148 'License :: OSI Approved :: Qt Public License (QPL)': 'QPL', 148 'License :: OSI Approved :: Qt Public License (QPL)': 'QPL',
149 'License :: OSI Approved :: Ricoh Source Code Public License': 'RSCPL', 149 'License :: OSI Approved :: Ricoh Source Code Public License': 'RSCPL',
150 'License :: OSI Approved :: SIL Open Font License 1.1 (OFL-1.1)': 'OFL-1.1', 150 'License :: OSI Approved :: SIL Open Font License 1.1 (OFL-1.1)': 'OFL-1.1',
diff --git a/scripts/lib/recipetool/licenses.csv b/scripts/lib/recipetool/licenses.csv
index 0d3fb0607b..2a8fdfac05 100644
--- a/scripts/lib/recipetool/licenses.csv
+++ b/scripts/lib/recipetool/licenses.csv
@@ -1,37 +1,37 @@
10636e73ff0215e8d672dc4c32c317bb3,GPLv2 10636e73ff0215e8d672dc4c32c317bb3,GPL-2.0
212f884d2ae1ff87c09e5b7ccc2c4ca7e,GPLv2 212f884d2ae1ff87c09e5b7ccc2c4ca7e,GPL-2.0
318810669f13b87348459e611d31ab760,GPLv2 318810669f13b87348459e611d31ab760,GPL-2.0
4252890d9eee26aab7b432e8b8a616475,LGPLv2 4252890d9eee26aab7b432e8b8a616475,LGPL-2.0
52d5025d4aa3495befef8f17206a5b0a1,LGPLv2.1 52d5025d4aa3495befef8f17206a5b0a1,LGPL-2.1
63214f080875748938ba060314b4f727d,LGPLv2 63214f080875748938ba060314b4f727d,LGPL-2.0
7385c55653886acac3821999a3ccd17b3,Artistic-1.0 | GPL-2.0 7385c55653886acac3821999a3ccd17b3,Artistic-1.0 | GPL-2.0
8393a5ca445f6965873eca0259a17f833,GPLv2 8393a5ca445f6965873eca0259a17f833,GPL-2.0
93b83ef96387f14655fc854ddc3c6bd57,Apache-2.0 93b83ef96387f14655fc854ddc3c6bd57,Apache-2.0
103bf50002aefd002f49e7bb854063f7e7,LGPLv2 103bf50002aefd002f49e7bb854063f7e7,LGPL-2.0
114325afd396febcb659c36b49533135d4,GPLv2 114325afd396febcb659c36b49533135d4,GPL-2.0
124fbd65380cdd255951079008b364516c,LGPLv2.1 124fbd65380cdd255951079008b364516c,LGPL-2.1
1354c7042be62e169199200bc6477f04d1,BSD-3-Clause 1354c7042be62e169199200bc6477f04d1,BSD-3-Clause
1455ca817ccb7d5b5b66355690e9abc605,LGPLv2 1455ca817ccb7d5b5b66355690e9abc605,LGPL-2.0
1559530bdf33659b29e73d4adb9f9f6552,GPLv2 1559530bdf33659b29e73d4adb9f9f6552,GPL-2.0
165f30f0716dfdd0d91eb439ebec522ec2,LGPLv2 165f30f0716dfdd0d91eb439ebec522ec2,LGPL-2.0
176a6a8e020838b23406c81b19c1d46df6,LGPLv3 176a6a8e020838b23406c81b19c1d46df6,LGPL-3
18751419260aa954499f7abaabaa882bbe,GPLv2 18751419260aa954499f7abaabaa882bbe,GPL-2.0
197fbc338309ac38fefcd64b04bb903e34,LGPLv2.1 197fbc338309ac38fefcd64b04bb903e34,LGPL-2.1
208ca43cbc842c2336e835926c2166c28b,GPLv2 208ca43cbc842c2336e835926c2166c28b,GPL-2.0
2194d55d512a9ba36caa9b7df079bae19f,GPLv2 2194d55d512a9ba36caa9b7df079bae19f,GPL-2.0
229ac2e7cff1ddaf48b6eab6028f23ef88,GPLv2 229ac2e7cff1ddaf48b6eab6028f23ef88,GPL-2.0
239f604d8a4f8e74f4f5140845a21b6674,LGPLv2 239f604d8a4f8e74f4f5140845a21b6674,LGPL-2.0
24a6f89e2100d9b6cdffcea4f398e37343,LGPLv2.1 24a6f89e2100d9b6cdffcea4f398e37343,LGPL-2.1
25b234ee4d69f5fce4486a80fdaf4a4263,GPLv2 25b234ee4d69f5fce4486a80fdaf4a4263,GPL-2.0
26bbb461211a33b134d42ed5ee802b37ff,LGPLv2.1 26bbb461211a33b134d42ed5ee802b37ff,LGPL-2.1
27bfe1f75d606912a4111c90743d6c7325,MPL-1.1 27bfe1f75d606912a4111c90743d6c7325,MPL-1.1
28c93c0550bd3173f4504b2cbd8991e50b,GPLv2 28c93c0550bd3173f4504b2cbd8991e50b,GPL-2.0
29d32239bcb673463ab874e80d47fae504,GPLv3 29d32239bcb673463ab874e80d47fae504,GPL-3.0
30d7810fab7487fb0aad327b76f1be7cd7,GPLv2 30d7810fab7487fb0aad327b76f1be7cd7,GPL-2.0
31d8045f3b8f929c1cb29a1e3fd737b499,LGPLv2.1 31d8045f3b8f929c1cb29a1e3fd737b499,LGPL-2.1
32db979804f025cf55aabec7129cb671ed,LGPLv2 32db979804f025cf55aabec7129cb671ed,LGPL-2.0
33eb723b61539feef013de476e68b5c50a,GPLv2 33eb723b61539feef013de476e68b5c50a,GPL-2.0
34ebb5c50ab7cab4baeffba14977030c07,GPLv2 34ebb5c50ab7cab4baeffba14977030c07,GPL-2.0
35f27defe1e96c2e1ecd4e0c9be8967949,GPLv3 35f27defe1e96c2e1ecd4e0c9be8967949,GPL-3.0
36fad9b3332be894bab9bc501572864b29,LGPLv2.1 36fad9b3332be894bab9bc501572864b29,LGPL-2.1
37fbc093901857fcd118f065f900982c24,LGPLv2.1 37fbc093901857fcd118f065f900982c24,LGPL-2.1