From 871e4e9bb150ab4fc21a3c9a6f6a58595014b34a Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Wed, 24 Aug 2022 04:25:26 +0500 Subject: [PATCH] common-license: remove old non-spdx license mapping Signed-off-by: Christopher Larson --- classes/common-license.bbclass | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/classes/common-license.bbclass b/classes/common-license.bbclass index 3e5fcfa..f3889f1 100644 --- a/classes/common-license.bbclass +++ b/classes/common-license.bbclass @@ -23,8 +23,6 @@ python () { checksums = set() for license in licenses: if license != 'CLOSED' and d.getVar('LIC_FILES_CHKSUM', False) == '${COMMON_LIC_CHKSUM}': - license = mapped_license(license, d) - ext_chksum_var = 'COMMON_LIC_CHKSUM_{0}'.format(license) if d.getVar(ext_chksum_var, True): checksums.add('${%s}' % ext_chksum_var) @@ -37,12 +35,3 @@ python () { bb.fatal('{0}: No available license checksum info for this license. Either set LIC_FILES_CHKSUM, or define:\n {1} = "{2}"'.format(d.getVar('PF', True), ext_chksum_var, chksum)) d.setVar('COMMON_LIC_CHKSUM', ' '.join(checksums)) } - -def mapped_license(license, d): - if license.endswith('+'): - license = license[:-1] - - mapped = d.getVarFlag('SPDXLICENSEMAP', license, False) - if mapped: - license = mapped - return license