Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update documentation for mfg create
Update for the documentation of mfg create command
to match the current implementation.

Signed-off-by: Stefan Diewald <[email protected]>
  • Loading branch information
dwld committed Apr 1, 2020
commit 96dd27ba76f6c400fa0e62e47d40747c2fef5a82
21 changes: 15 additions & 6 deletions docs/command_list/newt_mfg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Create the directory to hold the mfg packages.

$ mkdir -p mfgs/rb_blinky_rsa

The ``rb_blinky_rsa`` package needs a pkg.yml file. In addition it is needs a mfg.yml file to specify the two constituent targets. An example of each file is shown below.
The ``rb_blinky_rsa`` package needs a pkg.yml file. In addition, it needs a mfg.yml file to specify the two constituent targets. An example of each file is shown below.

.. code-block:: console

Expand All @@ -87,16 +87,25 @@ The ``rb_blinky_rsa`` package needs a pkg.yml file. In addition it is needs a mf
.. code-block:: console

$ more mfgs/rb_blinky_rsa/mfg.yml
mfg.bootloader: 'targets/rb_boot'
mfg.images:
- 'targets/rb_blinky'
mfg.bsp: "@apache-mynewt-core/hw/bsp/rb-nano2"
mfg.targets:
- rb_boot:
name: "targets/rb_boot"
area: FLASH_AREA_BOOTLOADER
offset: 0x0
- rb_blinky:
name: "targets/rb_blinky"
area: FLASH_AREA_IMAGE_0
offset: 0x0
mfg.meta:
area: FLASH_AREA_BOOTLOADER

Build the bootloader and app images.

.. code-block:: console

$ newt build rb_boot
$ newt create-image rb_blinky 0.0.1
$ newt build rb_boot && newt create-image rb_boot 0.0.1
$ newt build rb_blink && newt create-image rb_blinky 0.0.1

Run the ``newt mfg create`` command to collect all the manufacturing snapshot files.

Expand Down