aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/insane.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-11-11 12:45:12 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-14 12:55:56 +0000
commit46bf5f0db164e88c2effdbf5437f4d0836e4aadd (patch)
tree475d4f48f2b2cc0e5f0e7397192ff9e2bf7c1b37 /meta/classes/insane.bbclass
parent70354028811c874434fe1a54cbdd9a4d2c267350 (diff)
downloadopenembedded-core-contrib-46bf5f0db164e88c2effdbf5437f4d0836e4aadd.tar.gz
openembedded-core-contrib-46bf5f0db164e88c2effdbf5437f4d0836e4aadd.tar.bz2
openembedded-core-contrib-46bf5f0db164e88c2effdbf5437f4d0836e4aadd.zip
insane: improve textrel warning message
Clean the displayed path so it clearly shows the package name and path in that package. 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.bbclass4
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):
for line in phdrs.split("\n"):
if textrel_re.match(line):
sane = False
+ break
if not sane:
- package_qa_add_message(messages, "textrel", "ELF binary '%s' has relocations in .text" % path)
+ path = package_qa_clean_path(path, d, name)
+ package_qa_add_message(messages, "textrel", "%s: ELF binary %s has relocations in .text" % (name, path))
QAPATHTEST[ldflags] = "package_qa_hash_style"
def package_qa_hash_style(path, name, d, elf, messages):