From 29f9540db83c464ec185798811e0d2f45ec97aa8 Mon Sep 17 00:00:00 2001 From: Jerzy Kasenberg Date: Tue, 23 Apr 2024 11:24:31 +0200 Subject: [PATCH] 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 --- boot/bootutil/pkg.yml | 1 + boot/mynewt/pkg.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/boot/bootutil/pkg.yml b/boot/bootutil/pkg.yml index c4d044b8..e9197858 100644 --- a/boot/bootutil/pkg.yml +++ b/boot/bootutil/pkg.yml @@ -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" diff --git a/boot/mynewt/pkg.yml b/boot/mynewt/pkg.yml index 7e91c66b..e0b31327 100644 --- a/boot/mynewt/pkg.yml +++ b/boot/mynewt/pkg.yml @@ -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"