qt: add patch fixing build failure on ARMv8 in 32-bit mode
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 8 Sep 2017 07:35:07 +0000 (09:35 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 8 Sep 2017 09:18:19 +0000 (11:18 +0200)
commit95389fe98c882f70cbbd25dc1c7ea1480991acef
tree10456bc1eba1137386aeee3539fc5670b5ef000b
parentf77fb7b585b76b9c544b21fc3bf080660a54cb7b
qt: add patch fixing build failure on ARMv8 in 32-bit mode

The Qt package currently fails to build on ARMv8 cores in 32-bit mode
(for example, if you select ARM and then Cortex-A53), because the ARM
atomic operation implementation in Qt checks if we're on ARMv7, then
on ARMv6, and otherwise falls back to an ARMv5 implementation. The
latter uses the swp instruction, which doesn't exist on ARMv8, causing
a build failure.

To solve this, we simply add a patch that uses the ARMv7 atomic
operations for ARMv8-A.

There is no autobuilder reference because we don't have any ARMv8
32-bit configuration in the autobuilders.

Cc: <ivychend@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/qt/0013-src-corelib-arch-qatomic_arm.h-fix-build-on-ARMv8-32.patch [new file with mode: 0644]