summaryrefslogtreecommitdiffstats
path: root/meta/classes/license.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/license.bbclass')
-rw-r--r--meta/classes/license.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 358c716a80..bcea0b3cb5 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -281,6 +281,12 @@ def expand_wildcard_licenses(d, wildcard_licenses):
281 wildcards from SPDXLICENSEMAP flags and AVAILABLE_LICENSES. 281 wildcards from SPDXLICENSEMAP flags and AVAILABLE_LICENSES.
282 """ 282 """
283 import fnmatch 283 import fnmatch
284
285 # Assume if we're passed "GPLv3" or "*GPLv3" it means -or-later as well
286 for lic in wildcard_licenses[:]:
287 if not lic.endswith(("-or-later", "-only", "*")):
288 wildcard_licenses.append(lic + "+")
289
284 licenses = wildcard_licenses[:] 290 licenses = wildcard_licenses[:]
285 spdxmapkeys = d.getVarFlags('SPDXLICENSEMAP').keys() 291 spdxmapkeys = d.getVarFlags('SPDXLICENSEMAP').keys()
286 for wld_lic in wildcard_licenses: 292 for wld_lic in wildcard_licenses: