]> code.ossystems Code Review - openembedded-core.git/commit
insane.bbclass: Fix ELF bitsize comparison
authorMark Hatle <mark.hatle@windriver.com>
Tue, 1 Mar 2011 18:42:28 +0000 (12:42 -0600)
committerSaul Wold <sgw@linux.intel.com>
Wed, 2 Mar 2011 17:48:53 +0000 (09:48 -0800)
commit17dae13fabe2932a47ecc86fcafb1d177226513f
tree086c230e019e031c1adada1f9f651038352b645c
parentb909f12a92c86fd2fe9348eeec455e2c9ef71f1a
insane.bbclass: Fix ELF bitsize comparison

Fix the way the ELF size is compared to ensure that incorrectly
sized ELF binaries are captured during the file scan.

lib/oe/qa.py is changed to accept a bitsize as a parameter.  Instead
of previously defining true/false, it now takes "0" undefined, "32"
32-bit, and "64" 64-bit as the size argument.  This allows us to
preserve existing behavior of only loading one ELF type, while
allowing the function to be able to discover the size on it's own.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
meta/classes/insane.bbclass
meta/lib/oe/qa.py