coreboot-kgpe-d16/util
Bruce Griffith 3a2310e05c AMD Steppe Eagle: Add 32-bit Fletcher's Checksum computation
The AMD Platform Security Processor (PSP) requires a Fletcher's
Checksum at the end of the PSP directory.  This code implements
a Fletcher's Checksum by reading bytes from stdin and writes the
bytes back to stdout with a checksum inserted into the byte stream
at the appropriate offset.

This utility is used on PSP binaries during coreboot build.

Include a runtime debug option such that the command:

	fletcher --print <file.bin >file_with_cksum.bin

will print out the computed checksum value for debugging.  The
compile-time debug option is retained that allows -DDEBUG to
be added to the compilation line.  This option has the same
effect as "--print".

Change-Id: I506a479d8204ca4f8267d53aa152ac4b473dbc75
Signed-off-by: Bruce Griffith <Bruce.Griffith@se-eng.com>
Reviewed-on: http://review.coreboot.org/6676
Reviewed-by: WANG Siyuan <wangsiyuanbuaa@gmail.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Zheng Bao <zheng.bao@amd.com>
2014-08-30 00:28:06 +02:00
..
abuild abuild: make build directory configurable with a variable 2014-05-23 08:35:31 +02:00
acpi
amdtools
arm_boot_tools/mksunxiboot util: replace fseek/ftell/rewind with fstat 2014-08-12 11:53:24 +02:00
board_status board-status: be protocol agnostic on upload 2014-08-12 11:52:49 +02:00
cbfstool rmodtool: correct final memory size calculation 2014-08-27 03:20:27 +02:00
cbmem cbmem: Terminate the cbmem console at the cursor position. 2014-07-30 11:49:45 +02:00
crossgcc crossgcc: Support OSX 10.9 built-in tar utility program. 2014-04-29 21:23:10 +02:00
dtd_parser
dumpmmcr
ectool
fletcher AMD Steppe Eagle: Add 32-bit Fletcher's Checksum computation 2014-08-30 00:28:06 +02:00
genprof util/genprof: improve handling of command line arguments 2014-08-12 09:02:44 +02:00
getpir
gitconfig
i915tool util/i915tool: close the file also when fread() returned an error 2014-07-30 13:16:53 +02:00
ifdfake
ifdtool ifdtool: Provide bounds on string parser 2014-08-10 18:50:30 +02:00
inteltool util/inteltool: fix typo 2014-08-26 10:08:30 +02:00
k8resdump
kconfig kconfig: update to follow upstream more closely 2014-05-07 19:39:28 +02:00
lbtdump lbtdump: Dump forwarded tables. 2014-03-09 21:19:29 +01:00
lint board-info: Output errors to stdout like make lint-stable expects 2014-08-18 09:09:22 +02:00
mkelfImage
mptable
msrtool
nvramtool nvramtool: plug some memory leaks 2014-08-12 22:15:20 +02:00
optionlist
resetcf
romcc util: replace fseek/ftell/rewind with fstat 2014-08-12 11:53:24 +02:00
runfw
sconfig sconfig: improve argument parsing 2014-08-04 20:57:12 +02:00
showdevicetree
spkmodem_recv
superiotool util/superiotool: Add initial support for Fintek F71869ED. 2014-03-27 10:15:28 +01:00
vgabios
viatool
xcompile xcompile: always use -march=i686 2014-08-25 23:33:20 +02:00