coreboot-kgpe-d16/util/cbfstool
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
..
lzma cbfstool/lzma: Avoid use of typedef with structs and enums 2014-01-29 20:06:26 +01:00
cbfs-mkpayload.c Add section header parsing and use it in the mk-payload step 2014-02-02 20:18:55 +01:00
cbfs-mkstage.c Add section header parsing and use it in the mk-payload step 2014-02-02 20:18:55 +01:00
cbfs-payload-linux.c Add a (b)zImage parser to cbfstool 2013-08-31 08:58:34 +02:00
cbfs.h Add section header parsing and use it in the mk-payload step 2014-02-02 20:18:55 +01:00
cbfs_image.c cbfstool: add code to serialize the header using the new xdr functions 2014-02-02 23:48:18 +01:00
cbfs_image.h cbfstool: add code to serialize the header using the new xdr functions 2014-02-02 23:48:18 +01:00
cbfstool.c Add section header parsing and use it in the mk-payload step 2014-02-02 20:18:55 +01:00
coff.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
common.c Add section header parsing and use it in the mk-payload step 2014-02-02 20:18:55 +01:00
common.h Add section header parsing and use it in the mk-payload step 2014-02-02 20:18:55 +01:00
compress.c cbfs: fix issues with word size and endianness. 2014-01-29 20:03:44 +01:00
elf.h cbfstool: add a constant for the aarch64 2013-11-18 16:58:58 +01:00
elfheaders.c Add section header parsing and use it in the mk-payload step 2014-02-02 20:18:55 +01:00
EXAMPLE cbfstool: Update example file. 2013-02-04 11:12:15 +01:00
fit.c Add section header parsing and use it in the mk-payload step 2014-02-02 20:18:55 +01:00
fit.h cbfstool: Add update-fit command 2013-03-27 01:25:12 +01:00
fv.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
linux.h Add a (b)zImage parser to cbfstool 2013-08-31 08:58:34 +02:00
linux_trampoline.c Add a (b)zImage parser to cbfstool 2013-08-31 08:58:34 +02:00
Makefile Add section header parsing and use it in the mk-payload step 2014-02-02 20:18:55 +01:00
Makefile.inc Add section header parsing and use it in the mk-payload step 2014-02-02 20:18:55 +01:00
swab.h Various fixes to cbfstool. 2011-10-24 20:29:29 +02:00
xdr.c cbfs: fix issues with word size and endianness. 2014-01-29 20:03:44 +01:00