]> code.ossystems Code Review - openembedded-core.git/commit
qemuwrapper: use fallback in case the ELF binary is wrong
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Fri, 26 Apr 2013 08:03:58 +0000 (11:03 +0300)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 20 May 2013 15:06:12 +0000 (16:06 +0100)
commit4a9365a72ab45da33d31dc2f2575a58d20467c9e
treeab4f4185bf0d390aaf2f6f5af8fd2ccca3ecc6fc
parent03a1a14839064af6cb85bd534450f09d5b6b8f55
qemuwrapper: use fallback in case the ELF binary is wrong

This wrapper script is called mainly from intercept hooks and allarch
packages postinstalls. When multilib is used, the qemuwrapper script
points to the binary that matches the MACHINE architecture.

For example: if MACHINE=qemux86_64 and we activate multilib, then the
postinstalls for lib32 packages would call qemu-x86_64 with 32 bit
binaries and they would certainly fail.

This patch adds just a fallback method if the exit code of the previous
qemu call corresponds to "Invalid ELF image for this architecture"
error. This will allow us to have all postinstalls run on host.

(From OE-Core master rev: 0c6ddb84043f0f917543cdaf4814efc15cd0273f)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb