Instead of going through the locate then add-stage dance while linking romstage twice allow for adding romstage with --xip flags to perform the relocation while adding it into CBFS. The -P (page-size) and -a (alignment) parameters were added as well so one could specify the necessary parameters for x86 romstage.
BUG=chrome-os-partner:44827 BRANCH=None TEST=Built and booted on glados.
Change-Id: I585619886f257e35f00961a1574009a51c28ff2b
4be1674 cbfstool: add --xip support to add-stage for x86
util/cbfstool/Makefile | 1 +
util/cbfstool/Makefile.inc | 1 +
util/cbfstool/cbfs-mkstage.c | 169 +++++++++++++++++++++++++++++++++++++++---
util/cbfstool/cbfstool.c | 136 ++++++++++++++++++++-------------
util/cbfstool/common.h | 3 +
5 files changed, 251 insertions(+), 59 deletions(-)
Upstream: review.coreboot.org