coreboot-kgpe-d16/util/cbfstool
Aaron Durbin 8a0cb8de65 cbfstool: check potential microcode update earlier
The update-fit command takes in a parameter for number of slots
in the FIT table. It then processes the microcobe blob in cbfs
adding those entries to the FIT table. However, the tracking of
the number of mircocode updates was incremented before validating
the update. Therefore, move the sanity checking before an increment
of the number of updates.

Change-Id: Ie8290f53316b251e500b88829fdcf9b5735c1b0e
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/50319
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: http://review.coreboot.org/4161
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2013-11-25 23:24:57 +01:00
..
lzma Fix whitespace leaked into tree 2013-09-17 21:04:35 +02:00
EXAMPLE cbfstool: Update example file. 2013-02-04 11:12:15 +01:00
Makefile Add a (b)zImage parser to cbfstool 2013-08-31 08:58:34 +02:00
Makefile.inc Add a (b)zImage parser to cbfstool 2013-08-31 08:58:34 +02:00
cbfs-mkpayload.c Add a (b)zImage parser to cbfstool 2013-08-31 08:58:34 +02:00
cbfs-mkstage.c cbfstool: cbfs-mkstage.c: Free `buffer` on error path 2013-04-12 20:22:39 +02:00
cbfs-payload-linux.c Add a (b)zImage parser to cbfstool 2013-08-31 08:58:34 +02:00
cbfs.h cbfstool: Use cbfs_image API for "print" command. 2013-02-05 22:25:13 +01:00
cbfs_image.c Correct spelling of shadow, setting and memory 2013-08-16 22:25:56 +02:00
cbfs_image.h cbfstool locate: Implement alignment switch --align/-a 2013-03-20 05:47:32 +01:00
cbfstool.c Add a (b)zImage parser to cbfstool 2013-08-31 08:58:34 +02: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 cbfstool: Add buffer management API. 2013-02-05 22:24:45 +01:00
common.h Add a (b)zImage parser to cbfstool 2013-08-31 08:58:34 +02:00
compress.c cbfstool: Replace C++ code with C code 2013-04-03 02:35:28 +02:00
elf.h cbfstool: add a constant for the aarch64 2013-11-18 16:58:58 +01:00
fit.c cbfstool: check potential microcode update earlier 2013-11-25 23:24:57 +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
swab.h Various fixes to cbfstool. 2011-10-24 20:29:29 +02:00