Add an option '-j' which takes the size of topswap boundary. This option serves both as a bool and a size for creating a second bootblock to be used with topswap feature in Intel CPUs. '-j' is also used in conjunction with add-master-header to update the location of cbfs master header in the second bootblock.
BUG=None BRANHC=None TEST=add bootblock entry to the image with -j option specifying different topswap sizes and also use the -j option for add-master-header.
Change-Id: I3e455dc8b7f54e55f2229491695cf4218d9cfef8
1dc188fad0 cbfstool: add an option for creating a topswap bootblock
util/cbfstool/cbfstool.c | 138 +++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 128 insertions(+), 10 deletions(-)
Upstream: review.coreboot.org