diff options
| author | Saul Wold <Saul.Wold@windriver.com> | 2022-02-21 10:36:13 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-21 23:37:27 +0000 |
| commit | 0b46552625959b829d7f2712b642ef52003e5534 (patch) | |
| tree | 14d683ba1ca85aed9f273a908006763dd014de61 /meta/classes | |
| parent | 2b22c16376abdd66ae4319a2561cc0fad56ec5e8 (diff) | |
| download | poky-0b46552625959b829d7f2712b642ef52003e5534.tar.gz | |
meta: Rename LICENSE_FLAGS variable
(From OE-Core rev: 5c5b3bc563059ba728dc9724656cc69669f8e25f)
Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/base.bbclass | 4 | ||||
| -rw-r--r-- | meta/classes/license.bbclass | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 87a4cb5fc7..be820ddb2c 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -542,9 +542,9 @@ python () { | |||
| 542 | unmatched_license_flags = check_license_flags(d) | 542 | unmatched_license_flags = check_license_flags(d) |
| 543 | if unmatched_license_flags: | 543 | if unmatched_license_flags: |
| 544 | if len(unmatched_license_flags) == 1: | 544 | if len(unmatched_license_flags) == 1: |
| 545 | message = "because it has a restricted license '{0}'. Which is not whitelisted in LICENSE_FLAGS_WHITELIST".format(unmatched_license_flags[0]) | 545 | message = "because it has a restricted license '{0}'. Which is not whitelisted in LICENSE_FLAGS_ACCEPTED".format(unmatched_license_flags[0]) |
| 546 | else: | 546 | else: |
| 547 | message = "because it has restricted licenses {0}. Which are not whitelisted in LICENSE_FLAGS_WHITELIST".format( | 547 | message = "because it has restricted licenses {0}. Which are not whitelisted in LICENSE_FLAGS_ACCEPTED".format( |
| 548 | ", ".join("'{0}'".format(f) for f in unmatched_license_flags)) | 548 | ", ".join("'{0}'".format(f) for f in unmatched_license_flags)) |
| 549 | bb.debug(1, "Skipping %s %s" % (pn, message)) | 549 | bb.debug(1, "Skipping %s %s" % (pn, message)) |
| 550 | raise bb.parse.SkipRecipe(message) | 550 | raise bb.parse.SkipRecipe(message) |
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index d5480d87e2..dd1e07ee37 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass | |||
| @@ -392,7 +392,7 @@ def check_license_flags(d): | |||
| 392 | 392 | ||
| 393 | license_flags = d.getVar('LICENSE_FLAGS') | 393 | license_flags = d.getVar('LICENSE_FLAGS') |
| 394 | if license_flags: | 394 | if license_flags: |
| 395 | whitelist = d.getVar('LICENSE_FLAGS_WHITELIST') | 395 | whitelist = d.getVar('LICENSE_FLAGS_ACCEPTED') |
| 396 | if not whitelist: | 396 | if not whitelist: |
| 397 | return license_flags.split() | 397 | return license_flags.split() |
| 398 | unmatched_flags = all_license_flags_match(license_flags, whitelist) | 398 | unmatched_flags = all_license_flags_match(license_flags, whitelist) |
