cbfstool: relocate FSP blobs on cbfstool add

Hardware / Coreboot - Aaron Durbin [chromium.org] - 2 October 2015 07:17 UTC

When adding an FSP blob relocate it to its final destination. This allows FSP to not be hard coded in the cbfs. In order for the include paths to work correctly w/ the edk 2 headers we need to supply a neutered ProcessorBind.h to match up with the tool environment such that one can get the UEFI Platform Initialization type definitions.

BUG=chrome-os-partner:44827 BRANCH=None TEST=Built glados and booted. Also added FSP with -b and manually adjusted location in fsp cache-as-ram. Booted as well.

Change-Id: I830d93578fdf745a51195109cf18d94a83ee8cd3

8a414a0 cbfstool: relocate FSP blobs on cbfstool add
util/cbfstool/Makefile.inc | 10 ++++
util/cbfstool/ProcessorBind.h | 103 +++++++++++++++++++++++++++++++++++++++++
util/cbfstool/cbfstool.c | 46 +++++++++++++++++-
3 files changed, 158 insertions(+), 1 deletion(-)

Upstream: review.coreboot.org


  • Share