Skip to content

Commit 29f9540

Browse files
kasjerde-nordic
authored andcommitted
mynewt: Igore swap_scratch.c for single application slot
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 <[email protected]>
1 parent f08ace6 commit 29f9540

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

boot/bootutil/pkg.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pkg.deps:
4343

4444
pkg.ign_files.BOOTUTIL_SINGLE_APPLICATION_SLOT:
4545
- "loader.c"
46+
- "swap_scratch.c"
4647

4748
pkg.deps.BOOTUTIL_USE_MBED_TLS:
4849
- "@apache-mynewt-core/crypto/mbedtls"

boot/mynewt/pkg.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ pkg.deps:
3737

3838
pkg.ign_files.!BOOTUTIL_SINGLE_APPLICATION_SLOT:
3939
- "single_loader.c"
40+
pkg.ign_files.BOOTUTIL_SINGLE_APPLICATION_SLOT:
41+
- "swap_scratch.c"
4042

4143
pkg.deps.BOOTUTIL_NO_LOGGING:
4244
- "@apache-mynewt-core/sys/console/stub"

0 commit comments

Comments
 (0)