summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass25
1 files changed, 8 insertions, 17 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index e066dc986f..ab8715e597 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -499,28 +499,21 @@ python () {
499 499
500 whitelist = [] 500 whitelist = []
501 incompatwl = [] 501 incompatwl = []
502 htincompatwl = []
503 for lic in bad_licenses: 502 for lic in bad_licenses:
504 spdx_license = return_spdx(d, lic) 503 spdx_license = return_spdx(d, lic)
505 for w in ["HOSTTOOLS_WHITELIST_", "LGPLv2_WHITELIST_", "WHITELIST_"]: 504 for w in ["LGPLv2_WHITELIST_", "WHITELIST_"]:
506 whitelist.extend((d.getVar(w + lic, True) or "").split()) 505 whitelist.extend((d.getVar(w + lic, True) or "").split())
507 if spdx_license: 506 if spdx_license:
508 whitelist.extend((d.getVar(w + spdx_license, True) or "").split()) 507 whitelist.extend((d.getVar(w + spdx_license, True) or "").split())
509 ''' 508 '''
510 We need to track what we are whitelisting and why. If pn is 509 We need to track what we are whitelisting and why. If pn is
511 incompatible and is not HOSTTOOLS_WHITELIST_ we need to be 510 incompatible we need to be able to note that the image that
512 able to note that the image that is created may infact 511 is created may infact contain incompatible licenses despite
513 contain incompatible licenses despite INCOMPATIBLE_LICENSE 512 INCOMPATIBLE_LICENSE being set.
514 being set.
515 ''' 513 '''
516 if "HOSTTOOLS" in w: 514 incompatwl.extend((d.getVar(w + lic, True) or "").split())
517 htincompatwl.extend((d.getVar(w + lic, True) or "").split()) 515 if spdx_license:
518 if spdx_license: 516 incompatwl.extend((d.getVar(w + spdx_license, True) or "").split())
519 htincompatwl.extend((d.getVar(w + spdx_license, True) or "").split())
520 else:
521 incompatwl.extend((d.getVar(w + lic, True) or "").split())
522 if spdx_license:
523 incompatwl.extend((d.getVar(w + spdx_license, True) or "").split())
524 517
525 if not pn in whitelist: 518 if not pn in whitelist:
526 recipe_license = d.getVar('LICENSE', True) 519 recipe_license = d.getVar('LICENSE', True)
@@ -546,8 +539,6 @@ python () {
546 elif pn in whitelist: 539 elif pn in whitelist:
547 if pn in incompatwl: 540 if pn in incompatwl:
548 bb.note("INCLUDING " + pn + " as buildable despite INCOMPATIBLE_LICENSE because it has been whitelisted") 541 bb.note("INCLUDING " + pn + " as buildable despite INCOMPATIBLE_LICENSE because it has been whitelisted")
549 elif pn in htincompatwl:
550 bb.note("INCLUDING " + pn + " as buildable despite INCOMPATIBLE_LICENSE because it has been whitelisted for HOSTTOOLS")
551 542
552 needsrcrev = False 543 needsrcrev = False
553 srcuri = d.getVar('SRC_URI', True) 544 srcuri = d.getVar('SRC_URI', True)