Browse Source

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>
pull/83421/head
Jamie McCrae 1 year ago committed by Benjamin Cabé
parent
commit
fed62cd2f3
  1. 23
      doc/build/snippets/writing.rst

23
doc/build/snippets/writing.rst vendored

@ -31,6 +31,15 @@ this: @@ -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: @@ -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…
Cancel
Save