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 <jerzy.kasenberg@codecoup.pl>
This commit is contained in:
Jerzy Kasenberg 2024-04-23 11:24:31 +02:00 committed by Dominik Ermel
parent f08ace635a
commit 29f9540db8
2 changed files with 3 additions and 0 deletions

View File

@ -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"

View File

@ -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"