ron minnich has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37391 )
Change subject: WIP: add transforms ......................................................................
WIP: add transforms
Transforms transform coreboot ROM images to add or remove capabilities.
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.
Change-Id: I27c5686000f79e287adce3f0fa7b608683a9bfce Signed-off-by: Ronald G. Minnich rminnich@gmail.com --- M 3rdparty/fsp A transforms/rampayload/Makefile 2 files changed, 7 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/91/37391/1
diff --git a/3rdparty/fsp b/3rdparty/fsp index 5996417..1d2b7e1 160000 --- a/3rdparty/fsp +++ b/3rdparty/fsp @@ -1 +1 @@ -Subproject commit 59964173e18950debcc6b8856c5c928935ce0b4f +Subproject commit 1d2b7e1a94c6a7c25a6fed1ac37caebf500f5f1a diff --git a/transforms/rampayload/Makefile b/transforms/rampayload/Makefile new file mode 100644 index 0000000..fb73b8e --- /dev/null +++ b/transforms/rampayload/Makefile @@ -0,0 +1,6 @@ +image: coreboot.rom + cbfstool coreboot.rom print + +coreboot.rom: + cd ../../ && make + cp ../../build/coreboot.rom .