summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2015-07-30 16:40:12 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-20 11:26:44 +0100
commitcd2c9acdbd75c83790e8144d2a834f5b5de35df0 (patch)
tree3479375c4ea62f0c9dbf8e5af246e6341179fe91 /meta
parent08f9fbbc97909698b56200aa9be5fe50b99a44b2 (diff)
downloadpoky-cd2c9acdbd75c83790e8144d2a834f5b5de35df0.tar.gz
license_class: Fix choose_lic_set into incompatible license
Use canonical_license when doing evaluation of license expresion since INCOMPATIBLE_LICENSE are already canonized. [YOCTO #8080] (From OE-Core rev: 64a4faf66f6d28acf575307079c1843a70efb71c) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/license.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index b62910bf26..9a8066cdbb 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -359,7 +359,8 @@ def incompatible_license(d, dont_want_licenses, package=None):
359 # Handles an "or" or two license sets provided by 359 # Handles an "or" or two license sets provided by
360 # flattened_licenses(), pick one that works if possible. 360 # flattened_licenses(), pick one that works if possible.
361 def choose_lic_set(a, b): 361 def choose_lic_set(a, b):
362 return a if all(license_ok(lic) for lic in a) else b 362 return a if all(license_ok(canonical_license(d, lic)) for lic in a) \
363 else b
363 364
364 try: 365 try:
365 licenses = oe.license.flattened_licenses(license, choose_lic_set) 366 licenses = oe.license.flattened_licenses(license, choose_lic_set)