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)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Fri, 9 Nov 2018 13:27:03 +0000 (13:27 +0000)
commita974fa45ca7c5f57e0604070e43f1173a7300ed2
tree834b22508651b764b98a74000006afaace141c58
parent3becff6ed255ba1a644c5a314602b25c13bdab13
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>
src/mksercommfw.c