Fabio Utzig | d3ab521 | 2017-07-21 14:15:48 -0300 | [diff] [blame] | 1 | Running mynewt apps with mcuboot |
| 2 | ################################ |
| 3 | |
| 4 | Due to small differences between Mynewt's bundled bootloader and **mcuboot**, |
| 5 | when building an app that will be run with **mcuboot** as the bootloader and |
| 6 | which at the same time requires to use **newtmgr** to manage images, **mcuboot** |
| 7 | must be added as a new dependency for this app. |
| 8 | |
| 9 | First you need to add the repo to your ``project.yml``: |
| 10 | |
| 11 | .. code-block:: yaml |
| 12 | |
| 13 | project.repositories: |
| 14 | - mcuboot |
| 15 | |
| 16 | repository.mcuboot: |
| 17 | type: github |
| 18 | vers: 0-dev |
| 19 | user: runtimeco |
| 20 | repo: mcuboot |
| 21 | |
| 22 | Then update your app's ``pkg.yml`` adding the extra dependency: |
| 23 | |
| 24 | .. code-block:: yaml |
| 25 | |
| 26 | pkg.deps: |
| 27 | - "@mcuboot/boot/bootutil" |
| 28 | |
| 29 | Also remove any dependency on ``boot/bootutil`` (mynewt's bundled bootloader) |
| 30 | which might exist. |
| 31 | |
| 32 | To configure **mcuboot** check all the options available in |
| 33 | ``boot/mynewt/mcuboot_config/syscfg.yml``. |