Skip to content

Commit

Permalink
docs: Mention add_intermediate and provide an example
Browse files Browse the repository at this point in the history
This is a useful feature, so add a note about it.

Change-Id: If29f6480f878bdaf877dc208cc4861b884e10840
Signed-off-by: Simon Glass <[email protected]>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77342
Tested-by: build bot (Jenkins) <[email protected]>
Reviewed-by: Patrick Georgi <[email protected]>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77465
Tested-by: Patrick Georgi <[email protected]>
Reviewed-by: Martin L Roth <[email protected]>
  • Loading branch information
sjg20 authored and martinlroth committed Aug 26, 2023
1 parent f40f4a6 commit d7c88c2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Documentation/getting_started/build_system.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7c88c2

Please sign in to comment.