diff options
| author | Saul Wold <Saul.Wold@windriver.com> | 2022-03-09 09:40:52 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-10 08:00:28 +0000 |
| commit | d9e500f83d0223925ca2595c77c8fb45eab10f7c (patch) | |
| tree | 5b8fc1787ced86daebd7a7e26dd3bd69f9d5551b /meta/classes/insane.bbclass | |
| parent | 8827a3ed80ec8f0adcf4b778f88cb8f9f051262b (diff) | |
| download | poky-d9e500f83d0223925ca2595c77c8fb45eab10f7c.tar.gz | |
meta/scripts: Improve internal variable naming
Update internal variable names to improve the terms used.
(From OE-Core rev: f408068e5d7998ae165f3002e51bc54b380b8099)
Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
| -rw-r--r-- | meta/classes/insane.bbclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 270b7860c7..0deebdb148 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
| @@ -441,7 +441,8 @@ def package_qa_hash_style(path, name, d, elf, messages): | |||
| 441 | QAPATHTEST[buildpaths] = "package_qa_check_buildpaths" | 441 | QAPATHTEST[buildpaths] = "package_qa_check_buildpaths" |
| 442 | def package_qa_check_buildpaths(path, name, d, elf, messages): | 442 | def package_qa_check_buildpaths(path, name, d, elf, messages): |
| 443 | """ | 443 | """ |
| 444 | Check for build paths inside target files and error if not found in the whitelist | 444 | Check for build paths inside target files and error if paths are not |
| 445 | explicitly ignored. | ||
| 445 | """ | 446 | """ |
| 446 | # Ignore .debug files, not interesting | 447 | # Ignore .debug files, not interesting |
| 447 | if path.find(".debug") != -1: | 448 | if path.find(".debug") != -1: |
| @@ -1283,8 +1284,8 @@ Rerun configure task after fixing this.""" | |||
| 1283 | options = set() | 1284 | options = set() |
| 1284 | for line in output.splitlines(): | 1285 | for line in output.splitlines(): |
| 1285 | options |= set(line.partition(flag)[2].split()) | 1286 | options |= set(line.partition(flag)[2].split()) |
| 1286 | whitelist = set(d.getVar("UNKNOWN_CONFIGURE_OPT_IGNORE").split()) | 1287 | ignore_opts = set(d.getVar("UNKNOWN_CONFIGURE_OPT_IGNORE").split()) |
| 1287 | options -= whitelist | 1288 | options -= ignore_opts |
| 1288 | if options: | 1289 | if options: |
| 1289 | pn = d.getVar('PN') | 1290 | pn = d.getVar('PN') |
| 1290 | error_msg = pn + ": configure was passed unrecognised options: " + " ".join(options) | 1291 | error_msg = pn + ": configure was passed unrecognised options: " + " ".join(options) |
