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)
commit1a73b2d0892465e999ddc4aa319895f196e8c8d3
treed118019e39e5db1950d4ec3ba9e11a427e1e6b61
parent9a3c805584b6adf3fa4f0db5c127a056b0c6d667
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>
tools/firmware-utils/src/mksercommfw.c