diff options
author | Ross Burton <ross.burton@intel.com> | 2019-11-11 12:45:12 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-14 13:20:59 +0000 |
commit | 3aed62d68741101ff5ac0a1276cc789d224bdfdb (patch) | |
tree | f374783cd1af097bb3bd6a120e511a7154d4508d /meta/classes/insane.bbclass | |
parent | bdbf1a1575a73785028776e88b31599bb42afd4c (diff) | |
download | poky-3aed62d68741101ff5ac0a1276cc789d224bdfdb.tar.gz |
insane: improve textrel warning message
Clean the displayed path so it clearly shows the package name and path in that
package.
(From OE-Core rev: 46bf5f0db164e88c2effdbf5437f4d0836e4aadd)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r-- | meta/classes/insane.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 9605ac2bae..f856cf6a2b 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -340,9 +340,11 @@ def package_qa_textrel(path, name, d, elf, messages): | |||
340 | for line in phdrs.split("\n"): | 340 | for line in phdrs.split("\n"): |
341 | if textrel_re.match(line): | 341 | if textrel_re.match(line): |
342 | sane = False | 342 | sane = False |
343 | break | ||
343 | 344 | ||
344 | if not sane: | 345 | if not sane: |
345 | package_qa_add_message(messages, "textrel", "ELF binary '%s' has relocations in .text" % path) | 346 | path = package_qa_clean_path(path, d, name) |
347 | package_qa_add_message(messages, "textrel", "%s: ELF binary %s has relocations in .text" % (name, path)) | ||
346 | 348 | ||
347 | QAPATHTEST[ldflags] = "package_qa_hash_style" | 349 | QAPATHTEST[ldflags] = "package_qa_hash_style" |
348 | def package_qa_hash_style(path, name, d, elf, messages): | 350 | def package_qa_hash_style(path, name, d, elf, messages): |