Use canonical_license when doing evaluation of license expresion since INCOMPATIBLE_LICENSE are already canonized.
[YOCTO #8080] Signed-off-by: Aníbal Limón <[email protected]> --- meta/classes/license.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index b62910b..9a8066c 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass @@ -359,7 +359,8 @@ def incompatible_license(d, dont_want_licenses, package=None): # Handles an "or" or two license sets provided by # flattened_licenses(), pick one that works if possible. def choose_lic_set(a, b): - return a if all(license_ok(lic) for lic in a) else b + return a if all(license_ok(canonical_license(d, lic)) for lic in a) \ + else b try: licenses = oe.license.flattened_licenses(license, choose_lic_set) -- 1.9.1 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
