@@ -1,37 +1,78 @@
+008c22318c8ea65928bf730ddd0273e3,BSD-3-Clause
+02d4002e9171d41a8fad93aa7faf3956,BSD-3-Clause
0636e73ff0215e8d672dc4c32c317bb3,GPL-2.0-only
+063b5c3ebb5f3aa4c85a2ed18a31fbe7,GPL-2.0-only
+0a97f8e4cbaf889d6fa51f84b89a79f6,ISC
+0ceb9ff3b27d3a8cf451ca3785d73c71,BSD-3-Clause & MIT
+0dd48ae8103725bd7b401261520cdfbb,BSD-3-Clause
+0e46634a01bfef056892949acaea85b1,BSD-3-Clause
+1034431802e57486b393d00c5d262b8a,Apache-2.0
12f884d2ae1ff87c09e5b7ccc2c4ca7e,GPL-2.0-only
18810669f13b87348459e611d31ab760,GPL-2.0-only
+19cbd64715b51267a47bf3750cc6a8a5,Apache-2.0
+201414b6610203caed355323b1ab3116,BSD-3-Clause
252890d9eee26aab7b432e8b8a616475,LGPL-2.0-only
+2b8c039b2b9a25f0feb4410c4542d346,BSD-2-Clause
2d5025d4aa3495befef8f17206a5b0a1,LGPL-2.1-only
3214f080875748938ba060314b4f727d,LGPL-2.0-only
385c55653886acac3821999a3ccd17b3,Artistic-1.0 | GPL-2.0-only
393a5ca445f6965873eca0259a17f833,GPL-2.0-only
3b83ef96387f14655fc854ddc3c6bd57,Apache-2.0
3bf50002aefd002f49e7bb854063f7e7,LGPL-2.0-only
+3debde09238a8c8e1f6a847e1ec9055b,LGPL-2.1-only
4325afd396febcb659c36b49533135d4,GPL-2.0-only
+4c641f2d995c47f5cb08bdb4b5b6ea05,BSD-2-Clause
+4ee4feb2b545c2231749e5c54ace343e,BSD-3-Clause
4fbd65380cdd255951079008b364516c,LGPL-2.1-only
+50fab24ce589d69af8964fdbfe414c60,BSD-2-Clause
54c7042be62e169199200bc6477f04d1,BSD-3-Clause
55ca817ccb7d5b5b66355690e9abc605,LGPL-2.0-only
59530bdf33659b29e73d4adb9f9f6552,GPL-2.0-only
+5d4950ecb7b26d2c5e4e7b4e0dd74707,BSD-3-Clause
5f30f0716dfdd0d91eb439ebec522ec2,LGPL-2.0-only
6a6a8e020838b23406c81b19c1d46df6,LGPL-3.0-only
+721f23a96ff4161ca3a5f071bbe18108,MIT
+7364d1e4653d3584181e9d22d81f275f,CC0-1.0
751419260aa954499f7abaabaa882bbe,GPL-2.0-only
+75512892d6f59dddb6d1c7e191957e9c,Zlib
+75605e6bdd564791ab698fca65c94a4f,Unlicense
+7998cb338f82d15c0eff93b7004d272a,BSD-3-Clause
+7f5202f4d44ed15dcd4915f5210417d8,LGPL-2.1-only
7fbc338309ac38fefcd64b04bb903e34,LGPL-2.1-only
+80fa7b56a28e8c902e6af194003220a5,BSD-2-Clause
+85d8a977ee9d7c5ab4ac03c9b95431c4,MIT-0
+88a4355858a1433fea99fae34a44da88,GPL-2.0-only
+8bd23871802951c9ad63855151204c2c,BSD-2-Clause
8ca43cbc842c2336e835926c2166c28b,GPL-2.0-only
+939cce1ec101726fa754e698ac871622,BSD-3-Clause
94d55d512a9ba36caa9b7df079bae19f,GPL-2.0-only
9ac2e7cff1ddaf48b6eab6028f23ef88,GPL-2.0-only
9f604d8a4f8e74f4f5140845a21b6674,LGPL-2.0-only
+a39327c997c20da0937955192d86232d,BSD-3-Clause
+a54a1a6a39e7f9dbb4a23a42f5c7fd1c,Apache-2.0
+a651bb3d8b1c412632e28823bb432b40,BSD-3-Clause
a6f89e2100d9b6cdffcea4f398e37343,LGPL-2.1-only
+ad4e9d34a2e966dfe9837f18de03266d,GFDL-1.1-only
b234ee4d69f5fce4486a80fdaf4a4263,GPL-2.0-only
+b27575459e02221ccef97ec0bfd457ae,Apache-2.0
+b376d29a53c9573006b9970709231431,MIT
+b5f72aef53d3b2b432702c30b0215666,BSD-3-Clause
+b66384e7137e41a9b1904ef4d39703b6,Apache-2.0
bbb461211a33b134d42ed5ee802b37ff,LGPL-2.1-only
bfe1f75d606912a4111c90743d6c7325,MPL-1.1-only
c93c0550bd3173f4504b2cbd8991e50b,GPL-2.0-only
+d014fb11a34eb67dc717fdcfc97e60ed,GFDL-1.2-only
+d0b68be4a2dc957aaf09144970bc6696,MIT
d32239bcb673463ab874e80d47fae504,GPL-3.0-only
d7810fab7487fb0aad327b76f1be7cd7,GPL-2.0-only
d8045f3b8f929c1cb29a1e3fd737b499,LGPL-2.1-only
db979804f025cf55aabec7129cb671ed,LGPL-2.0-only
+e020ca655b06c112def28e597ab844f1,GFDL-1.3-only
+e659f77bfd9002659e112d0d3d59b2c1,BSD-2-Clause
eb723b61539feef013de476e68b5c50a,GPL-2.0-only
ebb5c50ab7cab4baeffba14977030c07,GPL-2.0-only
+efe2cb9a35826992b9df68224e3c2628,EPL-1.0
f27defe1e96c2e1ecd4e0c9be8967949,GPL-3.0-only
+f90c613c51aa35da4d79dd55fc724ceb,LGPL-3.0-only
fad9b3332be894bab9bc501572864b29,LGPL-2.1-only
fbc093901857fcd118f065f900982c24,LGPL-2.1-only
@@ -54,65 +54,6 @@ def crunch_known_licenses(d):
crunched_md5sums = {}
- # common licenses
- crunched_md5sums['ad4e9d34a2e966dfe9837f18de03266d'] = 'GFDL-1.1-only'
- crunched_md5sums['d014fb11a34eb67dc717fdcfc97e60ed'] = 'GFDL-1.2-only'
- crunched_md5sums['e020ca655b06c112def28e597ab844f1'] = 'GFDL-1.3-only'
-
- # The following two were gleaned from the "forever" npm package
- crunched_md5sums['0a97f8e4cbaf889d6fa51f84b89a79f6'] = 'ISC'
- # https://github.com/waffle-gl/waffle/blob/master/LICENSE.txt
- crunched_md5sums['50fab24ce589d69af8964fdbfe414c60'] = 'BSD-2-Clause'
- # https://github.com/spigwitmer/fakeds1963s/blob/master/LICENSE
- crunched_md5sums['88a4355858a1433fea99fae34a44da88'] = 'GPL-2.0-only'
- # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
- crunched_md5sums['063b5c3ebb5f3aa4c85a2ed18a31fbe7'] = 'GPL-2.0-only'
- # https://github.com/FFmpeg/FFmpeg/blob/master/COPYING.LGPLv2.1
- crunched_md5sums['7f5202f4d44ed15dcd4915f5210417d8'] = 'LGPL-2.1-only'
- # unixODBC-2.3.4 COPYING
- crunched_md5sums['3debde09238a8c8e1f6a847e1ec9055b'] = 'LGPL-2.1-only'
- # https://github.com/FFmpeg/FFmpeg/blob/master/COPYING.LGPLv3
- crunched_md5sums['f90c613c51aa35da4d79dd55fc724ceb'] = 'LGPL-3.0-only'
- # https://raw.githubusercontent.com/eclipse/mosquitto/v1.4.14/epl-v10
- crunched_md5sums['efe2cb9a35826992b9df68224e3c2628'] = 'EPL-1.0'
-
- # https://raw.githubusercontent.com/jquery/esprima/3.1.3/LICENSE.BSD
- crunched_md5sums['80fa7b56a28e8c902e6af194003220a5'] = 'BSD-2-Clause'
- # https://raw.githubusercontent.com/npm/npm-install-checks/master/LICENSE
- crunched_md5sums['e659f77bfd9002659e112d0d3d59b2c1'] = 'BSD-2-Clause'
- # https://raw.githubusercontent.com/silverwind/default-gateway/4.2.0/LICENSE
- crunched_md5sums['4c641f2d995c47f5cb08bdb4b5b6ea05'] = 'BSD-2-Clause'
- # https://raw.githubusercontent.com/tad-lispy/node-damerau-levenshtein/v1.0.5/LICENSE
- crunched_md5sums['2b8c039b2b9a25f0feb4410c4542d346'] = 'BSD-2-Clause'
- # https://raw.githubusercontent.com/terser/terser/v3.17.0/LICENSE
- crunched_md5sums['8bd23871802951c9ad63855151204c2c'] = 'BSD-2-Clause'
- # https://raw.githubusercontent.com/alexei/sprintf.js/1.0.3/LICENSE
- crunched_md5sums['008c22318c8ea65928bf730ddd0273e3'] = 'BSD-3-Clause'
- # https://raw.githubusercontent.com/Caligatio/jsSHA/v3.2.0/LICENSE
- crunched_md5sums['0e46634a01bfef056892949acaea85b1'] = 'BSD-3-Clause'
- # https://raw.githubusercontent.com/d3/d3-path/v1.0.9/LICENSE
- crunched_md5sums['b5f72aef53d3b2b432702c30b0215666'] = 'BSD-3-Clause'
- # https://raw.githubusercontent.com/feross/ieee754/v1.1.13/LICENSE
- crunched_md5sums['a39327c997c20da0937955192d86232d'] = 'BSD-3-Clause'
- # https://raw.githubusercontent.com/joyent/node-extsprintf/v1.3.0/LICENSE
- crunched_md5sums['721f23a96ff4161ca3a5f071bbe18108'] = 'MIT'
- # https://raw.githubusercontent.com/pvorb/clone/v0.2.0/LICENSE
- crunched_md5sums['b376d29a53c9573006b9970709231431'] = 'MIT'
- # https://raw.githubusercontent.com/andris9/encoding/v0.1.12/LICENSE
- crunched_md5sums['85d8a977ee9d7c5ab4ac03c9b95431c4'] = 'MIT-0'
- # https://raw.githubusercontent.com/faye/websocket-driver-node/0.7.3/LICENSE.md
- crunched_md5sums['b66384e7137e41a9b1904ef4d39703b6'] = 'Apache-2.0'
- # https://raw.githubusercontent.com/less/less.js/v4.1.1/LICENSE
- crunched_md5sums['b27575459e02221ccef97ec0bfd457ae'] = 'Apache-2.0'
- # https://raw.githubusercontent.com/microsoft/TypeScript/v3.5.3/LICENSE.txt
- crunched_md5sums['a54a1a6a39e7f9dbb4a23a42f5c7fd1c'] = 'Apache-2.0'
- # https://raw.githubusercontent.com/request/request/v2.87.0/LICENSE
- crunched_md5sums['1034431802e57486b393d00c5d262b8a'] = 'Apache-2.0'
- # https://raw.githubusercontent.com/dchest/tweetnacl-js/v0.14.5/LICENSE
- crunched_md5sums['75605e6bdd564791ab698fca65c94a4f'] = 'Unlicense'
- # https://raw.githubusercontent.com/stackgl/gl-mat3/v2.0.0/LICENSE.md
- crunched_md5sums['75512892d6f59dddb6d1c7e191957e9c'] = 'Zlib'
-
commonlicdir = d.getVar('COMMON_LICENSE_DIR')
for fn in sorted(os.listdir(commonlicdir)):
md5value, lictext = crunch_license(os.path.join(commonlicdir, fn))
There are two locations where mappings of checksums to license names are: the license-hashes.csv file and a hard-coded set of assignments in the code. There's no need for two, so remove the assignments and move the hashes into the CSV file. Signed-off-by: Ross Burton <ross.burton@arm.com> --- meta/files/license-hashes.csv | 41 ++++++++++++++++++++++++ meta/lib/oe/license_finder.py | 59 ----------------------------------- 2 files changed, 41 insertions(+), 59 deletions(-)