summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2020-09-02 11:41:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-02 16:00:40 +0100
commit4f78fc65bb0c9bff05651d9e543bab3d75998f79 (patch)
tree6515a31cd6cb41878699ee8c586da2369d1030dd
parent996010f1b9ca98592e2c87e1adcb0c79b86517b7 (diff)
downloadopenembedded-core-contrib-4f78fc65bb0c9bff05651d9e543bab3d75998f79.tar.gz
openembedded-core-contrib-4f78fc65bb0c9bff05651d9e543bab3d75998f79.tar.bz2
openembedded-core-contrib-4f78fc65bb0c9bff05651d9e543bab3d75998f79.zip
insane: improve gnu-hash-style warning
Instead of showing a filename under packages-split, show the package name and filename inside the package. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/insane.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index c32bf25124..d7f8f919c3 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -443,7 +443,8 @@ def package_qa_hash_style(path, name, d, elf, messages):
if ("[mips32]" in line or "[mips64]" in line) and d.getVar('TCLIBC') == "musl":
sane = True
if has_syms and not sane:
- package_qa_add_message(messages, "ldflags", "No GNU_HASH in the ELF binary %s, didn't pass LDFLAGS?" % path)
+ path = package_qa_clean_path(path, d, name)
+ package_qa_add_message(messages, "ldflags", "File %s in package %s doesn't have GNU_HASH (didn't pass LDFLAGS?)" % (path, name))
QAPATHTEST[buildpaths] = "package_qa_check_buildpaths"