diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2012-01-10 17:33:31 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-17 14:53:15 +0000 |
commit | 8f44e9030b9671bd5083ddc2f412ee455f8aacc7 (patch) | |
tree | 061e0ecf02bc1623892f706f02eb1358f91a4e7f /meta/classes | |
parent | dd04a42df4080e137fff5093c221ba8aa71b8e95 (diff) | |
download | poky-8f44e9030b9671bd5083ddc2f412ee455f8aacc7.tar.gz |
insane.bbclass: fix elf.arch not matching error for x32 kernel
For x32 the user space is 32bit and the kernel is 64bit.
So the elf.arch for vmlinuz is x86_64 and not x86. This commit
fixes this QA error thrown for x32 kernel.
| ERROR: QA Issue: Architecture did not match (62 to 3) on
/work/qemux86_64-poky-linux-gnux32/linux-korg-3.1+git1+e2bf8464ddbf5da24d3d320cded5691828a91a0b-r1/packages-split/kernel-vmlinux/boot/vmlinux-3.1.0-yocto-standard-01628-ge2bf846
(From OE-Core rev: 74686edafa241839d3880e06740ee7450ff94fd8)
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/insane.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 8d6b11c1cf..ce21496f99 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -331,7 +331,8 @@ def package_qa_check_arch(path,name,d, elf, messages): | |||
331 | = package_qa_get_machine_dict()[target_os][target_arch] | 331 | = package_qa_get_machine_dict()[target_os][target_arch] |
332 | 332 | ||
333 | # Check the architecture and endiannes of the binary | 333 | # Check the architecture and endiannes of the binary |
334 | if not machine == elf.machine(): | 334 | if not ((machine == elf.machine()) or \ |
335 | ("virtual/kernel" in provides) and (target_os == "linux-gnux32")): | ||
335 | messages.append("Architecture did not match (%d to %d) on %s" % \ | 336 | messages.append("Architecture did not match (%d to %d) on %s" % \ |
336 | (machine, elf.machine(), package_qa_clean_path(path,d))) | 337 | (machine, elf.machine(), package_qa_clean_path(path,d))) |
337 | elif not ((bits == elf.abiSize()) or \ | 338 | elif not ((bits == elf.abiSize()) or \ |