doc: build: snippets: Add sysbuild usage
Adds an example on how to use a snippet with sysbuild Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
parent
06fd7389bd
commit
fed62cd2f3
1 changed files with 23 additions and 0 deletions
23
doc/build/snippets/writing.rst
vendored
23
doc/build/snippets/writing.rst
vendored
|
|
@ -31,6 +31,15 @@ this:
|
|||
EXTRA_DTC_OVERLAY_FILE: foo.overlay
|
||||
EXTRA_CONF_FILE: foo.conf
|
||||
|
||||
In addition, snippets can also be applied to sysbuild configuration like so:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
name: foo
|
||||
append:
|
||||
SB_EXTRA_CONF_FILE: sb.conf
|
||||
EXTRA_CONF_FILE: app.conf
|
||||
|
||||
Namespacing
|
||||
***********
|
||||
|
||||
|
|
@ -156,6 +165,20 @@ This :file:`snippet.yml` adds :file:`foo.conf` to the build:
|
|||
The path to :file:`foo.conf` is relative to the directory containing
|
||||
:file:`snippet.yml`.
|
||||
|
||||
Sysbuild ``.conf`` files
|
||||
************************
|
||||
|
||||
This :file:`snippet.yml` adds :file:`foo.conf` to the sysbuild configuration:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
name: foo
|
||||
append:
|
||||
SB_EXTRA_CONF_FILE: foo.conf
|
||||
|
||||
The path to :file:`foo.conf` is relative to the directory containing
|
||||
:file:`snippet.yml`.
|
||||
|
||||
``DTS_EXTRA_CPPFLAGS``
|
||||
**********************
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue