Skip to content

Commit d30ad1a

Browse files
nordicjmrlubos
authored andcommitted
samples: nrf_compress: mcuboot_update: Add boot message
Adds an optional boot message to aid in testing this sample Signed-off-by: Jamie McCrae <[email protected]>
1 parent 7803e78 commit d30ad1a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
config OUTPUT_BOOT_MESSAGE
8+
bool "Output message on boot"
9+
help
10+
Will output a dummy message on boot, this is to allow for generating a different image
11+
that can be used to test the compressed firmware update.
12+
13+
source "Kconfig.zephyr"

samples/nrf_compress/mcuboot_update/src/hook.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ static int setup_slot_hook(void)
8282
mgmt_callback_register(&image_slot_callback);
8383
k_work_init(&slot_output_work, slot_output_handler);
8484

85+
#if defined(CONFIG_OUTPUT_BOOT_MESSAGE)
86+
LOG_INF("Dummy message indicating new firmware is running...");
87+
#endif
88+
8589
return 0;
8690
}
8791

0 commit comments

Comments
 (0)