imx-usb-loader: fix build with older gcc
authorBaruch Siach <baruch@tkos.co.il>
Tue, 19 Jun 2018 14:44:41 +0000 (17:44 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 19 Jun 2018 20:50:24 +0000 (22:50 +0200)
commitb05f8f43968153af197ba0e635c8afa6856665ba
treebb74f09032148ae350f9b752b1d7e12ff131004e
parent6c5a22079d7e20f26038e3f7cdd8ead1a7b6d5d7
imx-usb-loader: fix build with older gcc

Since the last version bump imx-usb-loader uses __builtin_bswap16 which
is not universally available in gcc older than version 4.8. Add a patch
switching to a local 16-bit bytes swap implementation.

Should fix:
http://autobuild.buildroot.net/results/a63/a63b593b7ef3b6d32e755afe42b77d47dbf0276e/
http://autobuild.buildroot.net/results/48c/48c95cfc65f99fa02be81a11303ba8999f57091a/
http://autobuild.buildroot.net/results/c9d/c9d4f99b49ddb9b2ce08fce7672dd7c70cf62912/

Cc: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/imx-usb-loader/0001-portable.h-fix-build-with-gcc-older-than-4.8.patch [new file with mode: 0644]