summaryrefslogtreecommitdiffstats
path: root/meta
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 13:20:59 +0000
commit3aed62d68741101ff5ac0a1276cc789d224bdfdb (patch)
treef374783cd1af097bb3bd6a120e511a7154d4508d /meta
parentbdbf1a1575a73785028776e88b31599bb42afd4c (diff)
downloadpoky-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')
-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):
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
347QAPATHTEST[ldflags] = "package_qa_hash_style" 349QAPATHTEST[ldflags] = "package_qa_hash_style"
348def package_qa_hash_style(path, name, d, elf, messages): 350def package_qa_hash_style(path, name, d, elf, messages):