]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
insane.bbclass: fix package_qa_check_arch() for mips64-o32 rbt/mips
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 14 Oct 2016 05:48:29 +0000 (22:48 -0700)
committerRobert Yang <liezhi.yang@windriver.com>
Fri, 14 Oct 2016 09:59:56 +0000 (02:59 -0700)
commitd38506d21e4dc09a2bcc97661642b67d2fff1cf2
tree515cb47e4bb35e4fd8164be091fb8e9772840063
parentfc39e759f11507fa80ed2274f7ed9a6e66de6e39
insane.bbclass: fix package_qa_check_arch() for mips64-o32

Fixed:
MACHINE = "qemumips64"
DEFAULTTUNE = "mips64-o32"

$ bitbake linux-yocto
ERROR: linux-yocto-4.8+gitAUTOINC+03bf3dd731_674818dad5-r0 do_package_qa: QA Issue: Bit size did not match (32 to 64) linux-yocto on
    /work/qemumips64-poky-linux/linux-yocto/4.8+gitAUTOINC+03bf3dd731_674818dad5-r0/packages-split/kernel-module-parport/lib/modules/4.8.0-yocto-standard/kernel/drivers/parport/parport.ko [arch]

The mips64-n32 works since it would set ABIEXTENSION to "n32" so that
TARGET_OS is linux-gnun32, and it will skip the check, but "mips64-o32"
doesn't set ABIEXTENSION to "o32", "n32" or "32", so the error happend.

Skip the check if mips64.*32 matches DEFAULTTUNE can fix the problem.
Another way to fix the problem is define ABIEXTENSION to "o32" or "32"
for mips64-o32, but that may make things confused since "o32" is purely
32 bit.

[YOCTO #10305]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/classes/insane.bbclass