tools: firmware-utils: mksercommfw build on Darwin
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Thu, 8 Nov 2018 21:35:17 +0000 (21:35 +0000)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:48:12 +0000 (17:48 +0100)
commit7288a3477dc772cde322c887b888ef2ae5953ce8
tree5db665aa48b75e1ea2fc3ce60d1907036be71d8b
parent793ab8b9b844b9b729b37444c58dad6e6530dd90
tools: firmware-utils: mksercommfw build on Darwin

asm/byteorder.h & hence __cpu_to_be32() doesn't exist on Darwin

Shamelessly copy some byte swap functions from oseama.c

Acked-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
(backported from 1a73b2d0892465e999ddc4aa319895f196e8c8d3)
tools/firmware-utils/src/mksercommfw.c