Patchwork [1/5] insane.bbclass: support to skip unsafe references in binaries qa check.

login
register
mail settings
Submitter Hongxu Jia
Date Nov. 4, 2013, 9:56 a.m.
Message ID <a30574d20eb4326e399f5ee7a7ee51bc9bee0d42.1383558655.git.hongxu.jia@windriver.com>
Download mbox | patch
Permalink /patch/61087/
State New
Headers show

Comments

Hongxu Jia - Nov. 4, 2013, 9:56 a.m.
Add a variable to support skipping the unsafe references in binaries qa check.

[YOCTO #5142]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/classes/insane.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index eb440c2..20bbab0 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -318,6 +318,10 @@  def package_qa_check_unsafe_references_in_binaries(path, name, d, elf, messages)
 	if elf:
 		import subprocess as sub
 		pn = d.getVar('PN', True)
+		# Skip for any packages with unsafe-ref-bin in INSANE_SKIP
+		if 'unsafe-ref-bin' in (d.getVar('INSANE_SKIP_' + pn, True) or "").split():
+			bb.note("Package %s skipping unsafe references in binaries QA test" % (pn))
+			return
 
 		exec_prefix = d.getVar('exec_prefix', True)
 		sysroot_path = d.getVar('STAGING_DIR_TARGET', True)