the following patch was just integrated into master: commit 1ceb56af55fcc55187bffd62d2bd33b4f44601be Author: Alexandru Gagniuc mr.nuke.me@gmail.com Date: Wed Feb 5 01:10:08 2014 -0600
cbfstool: Deserialize CBFS master header when reading image
Rather than using [hn]to[nh] whenever accessing a member of the CBFS header, deserialize the header when opening the CBFS image. The header is no longer a pointer inside the CBFS buffer, but a separate struct, a copy of the original header in a host-friendly format. This kills more of the ntohl usage.
Change-Id: I5f8a5818b9d5a2d1152b1906249c4a5847d02bac Signed-off-by: Alexandru Gagniuc mr.nuke.me@gmail.com
See http://review.coreboot.org/5121 for details.
-gerrit