Skip to content

Commit d9c2ba1

Browse files
nordicjmde-nordic
authored andcommitted
boot: bootutil: Add missing swap offset file and fix RAM load
The swap offset source file was missed from being added to the bootuil CMake file, in addition the RAM load one was wrongly using zephyr-specific Kconfigs to check if it should be included Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
1 parent 9c45fb7 commit d9c2ba1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎boot/bootutil/CMakeLists.txt‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,8 @@ target_sources(bootutil
3535
src/loader.c
3636
src/swap_misc.c
3737
src/swap_move.c
38+
src/swap_offset.c
3839
src/swap_scratch.c
40+
src/ram_load.c
3941
src/tlv.c
4042
)
41-
if(CONFIG_BOOT_RAM_LOAD)
42-
target_sources(bootutil
43-
PRIVATE
44-
src/ram_load.c
45-
)
46-
endif()

‎boot/bootutil/src/ram_load.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141

4242
#include "mcuboot_config/mcuboot_config.h"
4343

44+
#ifdef MCUBOOT_RAM_LOAD
45+
4446
BOOT_LOG_MODULE_DECLARE(mcuboot);
4547

4648
#ifndef MULTIPLE_EXECUTABLE_RAM_REGIONS
@@ -433,3 +435,5 @@ int boot_load_image_from_flash_to_sram(struct boot_loader_state *state,
433435

434436
return boot_load_image_to_sram(state);
435437
}
438+
439+
#endif

0 commit comments

Comments
 (0)