ron minnich uploaded patch set #5 to this change.

View Change

add transforms

Transforms transform coreboot ROM images to add or remove capabilities.
They let us test out new ideas for coreboot while not impacting
the coreboot source in any way.

So, for example, should we want an image with a rampayload, we can
run the normal build process and then transform the resulting rom image
as needed.

We can implement a postcar stage which loads a ram payload directly,
and do so in a way which has no impact on the coreboot source.

This not only lets us change the output of the build process, it can be implemented
without changing the coreboot source. Further, since the transform Makefile depends
on the presence of a coreboot.rom in the directory, we can avoid the build step
if we're just trying to transform a ROM we read from a FLASH part. Just flashrom
-r the image, drop it into coreboot.rom in this directory, and no build
will be attempted.

This example represents the first steps of building a rampayload transform.

Transforms should have zero impact on the $(top)/src tree, since they
are intended to be able to be used on prebuilt images.

Currently the payloader works as a payload but fails as a stage with
the cryptic message:
CBFS: Locating 'fallback/postcar'
CBFS: Found @ offset 14bc0 size 1008c
Decompressing stage fallback/postcar @ 0x07f85fc0 (349968 bytes)
Failed to load after CAR program.

There is a bit more work to figuring out how to make it an rmod.

Change-Id: I27c5686000f79e287adce3f0fa7b608683a9bfce
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
---
M payloads/Kconfig
M payloads/Makefile.inc
A payloads/payloader/Makefile
A payloads/payloader/i386.c
A payloads/payloader/payloader.c
A payloads/payloader/payloader.h
A transforms/README
A transforms/rampayload/Makefile
8 files changed, 188 insertions(+), 3 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/91/37391/5

To view, visit change 37391. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I27c5686000f79e287adce3f0fa7b608683a9bfce
Gerrit-Change-Number: 37391
Gerrit-PatchSet: 5
Gerrit-Owner: ron minnich <rminnich@gmail.com>
Gerrit-Reviewer: Jeremy Soller <jeremy@system76.com>
Gerrit-Reviewer: Lean Sheng Tan <lean.sheng.tan@intel.com>
Gerrit-Reviewer: Martin Roth <martinroth@google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik@intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich@gmail.com>
Gerrit-MessageType: newpatchset