switch-coreboot/util
Ronald G. Minnich b5adeee1cc cbfstool: add code to serialize the header using the new xdr functions
This change adds a header serialization function. Programmers can thus just
set up a header as needed, without worrying about forgetting if and how to
use the [hn]to[hn]* functions.

In the long term, we will work to remove swab.h, i.e. we need to get to the
point where programmers don't have to try to remember [hn]to[nh]* and where
it goes. To date, even the best programmers we have have made an error with
those functions, and those errors have persisted for 6 or 7 years now. It's
very easy to make that mistake.

BUG=None
TEST=Build a peppy image and verify that it's bit for bit the same. All
     chromebooks use this code and build and boot correctly.
BRANCH=None

Change-Id: I0f9b8e7cac5f52d0ea330ba948650fa0803aa0d5
Signed-off-by: Ronald G. Minnich <rminnich@google.com>
Reviewed-on: https://chromium-review.googlesource.com/181552
Reviewed-by: Ronald Minnich <rminnich@chromium.org>
Commit-Queue: Ronald Minnich <rminnich@chromium.org>
Tested-by: Ronald Minnich <rminnich@chromium.org>
Reviewed-on: http://review.coreboot.org/5100
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2014-02-02 23:48:18 +01:00
..
abuild
acpi
amdtools
arm_boot_tools/mksunxiboot cpu/allwinner/a10: Provide utility to make a bootable image 2014-01-13 04:03:00 +01:00
board_status board_status.sh: Replace [[ with [. 2014-01-21 03:17:13 +01:00
cbfstool cbfstool: add code to serialize the header using the new xdr functions 2014-02-02 23:48:18 +01:00
cbmem util/cbmem/Makfile: Add rule junit.xml for Jenkins 2014-01-11 17:40:38 +01:00
crossgcc
dtd_parser
dumpmmcr
ectool
genprof
getpir
gitconfig
i915tool
ifdfake
ifdtool
inteltool utils: Install man pages as non-executable (chmod 644) 2014-01-31 20:14:58 +01:00
k8resdump
kconfig
lbtdump
lint lint: check label style only on changed files 2014-01-11 10:56:54 +01:00
mkelfImage
mptable
msrtool
nvramtool utils: Install man pages as non-executable (chmod 644) 2014-01-31 20:14:58 +01:00
optionlist
resetcf
romcc
runfw
sconfig sconfig: don't "const" structs twice 2014-01-20 12:59:27 +01:00
showdevicetree
spkmodem_recv
superiotool utils: Install man pages as non-executable (chmod 644) 2014-01-31 20:14:58 +01:00
vgabios
viatool
xcompile util/xcompile/xcompile: set up for aarch64 2013-11-10 04:41:30 +01:00