Skip to content

Commit

Permalink
mynewt: Igore swap_scratch.c for single application slot
Browse files Browse the repository at this point in the history
swap_scratch.c requires definition of SLOT1, in single application
slot build it's not needed and file would not be used anyway so
now it is removed from mynewt build

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
  • Loading branch information
kasjer authored and de-nordic committed May 23, 2024
1 parent f08ace6 commit 29f9540
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions boot/bootutil/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pkg.deps:

pkg.ign_files.BOOTUTIL_SINGLE_APPLICATION_SLOT:
- "loader.c"
- "swap_scratch.c"

pkg.deps.BOOTUTIL_USE_MBED_TLS:
- "@apache-mynewt-core/crypto/mbedtls"
Expand Down
2 changes: 2 additions & 0 deletions boot/mynewt/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ pkg.deps:

pkg.ign_files.!BOOTUTIL_SINGLE_APPLICATION_SLOT:
- "single_loader.c"
pkg.ign_files.BOOTUTIL_SINGLE_APPLICATION_SLOT:
- "swap_scratch.c"

pkg.deps.BOOTUTIL_NO_LOGGING:
- "@apache-mynewt-core/sys/console/stub"
Expand Down

0 comments on commit 29f9540

Please sign in to comment.