diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2014-12-15 16:55:10 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-19 17:54:14 +0000 |
commit | 3587653a8d8abc7cfed6a5c6ecfa72bee283e451 (patch) | |
tree | a09489adb6e9eab93aa418f036eff84b5e983f25 /meta/classes/base.bbclass | |
parent | 5db535a91edea439c14e75726acd23e64bb1e2ea (diff) | |
download | openembedded-core-3587653a8d8abc7cfed6a5c6ecfa72bee283e451.tar.gz openembedded-core-3587653a8d8abc7cfed6a5c6ecfa72bee283e451.tar.bz2 openembedded-core-3587653a8d8abc7cfed6a5c6ecfa72bee283e451.zip |
base/license.bbclass: expand wildcards in INCOMPATIBLE_LICENSE
The whitelist processing in code in base.bbclass does not play well with
wildcards in INCOMPATIBLE_LICENSES. The code expects bad_licenses to
contain actual license names, not wildcards.
Add incompatible_license_contains to replace bb.utils.contains(
"INCOMPATIBLE_LICENSE", **, **, **, d)
[YOCTO #5592]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index de81a7d687..06cfe260ac 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -443,7 +443,7 @@ python () { check_license = False if check_license and bad_licenses: - bad_licenses = map(lambda l: canonical_license(d, l), bad_licenses) + bad_licenses = expand_wildcard_licenses(d, bad_licenses) whitelist = [] for lic in bad_licenses: |