Various fixes to cbfstool.
authorStefan Reinauer <reinauer@chromium.org>
Fri, 21 Oct 2011 21:24:57 +0000 (14:24 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Mon, 24 Oct 2011 18:29:29 +0000 (20:29 +0200)
commita1e4824f73602a411826b27160a8818049ce0f97
tree777dcf31f4eddaaf0c68078814bd27fb63f03524
parent3c976791b06c75e8983266b3551f133d89924376
Various fixes to cbfstool.

- add ntohll and htonll (as coreboot parses 64bit fields now)
- use the same byte swapping code across platforms
- detect endianess early
- fix lots of warnings
- Don't override CFLAGS in Makefile

Change-Id: Iaea02ff7a31ab6a95fd47858d0efd9af764a3e5f
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/313
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
util/cbfstool/Makefile
util/cbfstool/cbfs-mkpayload.c
util/cbfstool/cbfs-mkstage.c
util/cbfstool/cbfs.h
util/cbfstool/cbfstool.c
util/cbfstool/common.c
util/cbfstool/common.h
util/cbfstool/swab.h [new file with mode: 0644]