blob: f042037fcdb20fffc9d6d44bd9024a9a2daedb06 [file] [log] [blame]
Fabio Utzigd3ab5212017-07-21 14:15:48 -03001Running mynewt apps with mcuboot
2################################
3
4Due to small differences between Mynewt's bundled bootloader and **mcuboot**,
5when building an app that will be run with **mcuboot** as the bootloader and
6which at the same time requires to use **newtmgr** to manage images, **mcuboot**
7must be added as a new dependency for this app.
8
9First 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
22Then update your app's ``pkg.yml`` adding the extra dependency:
23
24.. code-block:: yaml
25
26 pkg.deps:
27 - "@mcuboot/boot/bootutil"
28
29Also remove any dependency on ``boot/bootutil`` (mynewt's bundled bootloader)
30which might exist.
31
32To configure **mcuboot** check all the options available in
33``boot/mynewt/mcuboot_config/syscfg.yml``.