]> code.ossystems Code Review - openembedded-core.git/commit
insane: Rationalise phdrs-based QA checks
authorPhil Blundell <philb@gnu.org>
Mon, 1 Oct 2012 17:29:23 +0000 (18:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Oct 2012 11:03:29 +0000 (12:03 +0100)
commitbf19eeb9f65e91bf2b5d89e7c0b099c55d7c15ff
tree97d0b0ae29fa4da0d306dc72c7771c541cc6016b
parentd05e63c6c936a9ff209efd1341401ef7cd2ec0c1
insane: Rationalise phdrs-based QA checks

Various different QA checks are based on essentially the same data from
the ELF program headers.  Calling objdump to extract it repeatedly is
inefficient, particularly if the shell is involved.  Instead, let's
cache the output from objdump inside the qa.elf object and allow it to
be reused by multiple tests.

Also, using objdump instead of scanelf to check for bad RPATHs (in the
same way that the useless-rpaths check was doing already) allows the
dependency on pax-utils-native to be dropped.

Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/insane.bbclass
meta/lib/oe/qa.py