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:13:49 +0000 (12:13 +0100)
commit1bac0f364e9f087cfb8271203fb5b2543b65afc0
treebd6f59c054a1390646fff542ba40abc5bf90f297
parent8b6a9aa7c6394e8a4c3576cf0d5800bef1d5dbb9
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.

(From OE-Core rev: bf19eeb9f65e91bf2b5d89e7c0b099c55d7c15ff)

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