summaryrefslogtreecommitdiffstats
path: root/Documentation/getting_started
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-08-21 12:23:10 -0600
committerMartin L Roth <gaumless@gmail.com>2023-08-26 20:57:11 +0000
commitd7c88c2308d6806caef93d34a44a15b96d7f7128 (patch)
treea76eea8d8936b23941a4b8c91ac58230e384be2f /Documentation/getting_started
parentf40f4a6e23575275d6b8b31d245a9fe02daad83e (diff)
downloadcoreboot-d7c88c2308d6806caef93d34a44a15b96d7f7128.tar.gz
coreboot-d7c88c2308d6806caef93d34a44a15b96d7f7128.tar.bz2
coreboot-d7c88c2308d6806caef93d34a44a15b96d7f7128.zip
docs: Mention add_intermediate and provide an example
This is a useful feature, so add a note about it. Change-Id: If29f6480f878bdaf877dc208cc4861b884e10840 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/77342 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <patrick@coreboot.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/77465 Tested-by: Patrick Georgi <patrick@coreboot.org> Reviewed-by: Martin L Roth <gaumless@gmail.com>
Diffstat (limited to 'Documentation/getting_started')
-rw-r--r--Documentation/getting_started/build_system.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/getting_started/build_system.md b/Documentation/getting_started/build_system.md
index 787c833d2b50..4013bc605736 100644
--- a/Documentation/getting_started/build_system.md
+++ b/Documentation/getting_started/build_system.md
@@ -62,6 +62,23 @@ supported options are:
`position` and `align` are mutually exclusive.
+### Adding Makefile fragments
+
+You can use the `add_intermediate` helper to add new post-processing steps for
+the final `coreboot.rom` image. For example you can add new files to CBFS by
+adding something like this to `site-local/Makefile.inc`
+
+```
+$(call add_intermediate, add_mrc_data)
+ $(CBFSTOOL) $< write -r RW_MRC_CACHE -f site-local/my-mrc-recording.bin
+```
+
+Note that the second line must start with a tab, not spaces.
+
+```eval_rst
+See also :doc:`../tutorial/managing_local_additions`.
+```
+
#### FMAP region support
With the addition of FMAP flash partitioning support to coreboot, there was a
need to extend the specification of files to provide more precise control