Skip to content

Commit a513b8e

Browse files
gmarullnvlsianpu
authored andcommitted
boot:zephyr: CONFIG_LOG_MINIMAL converted to CONFIG_LOG_MODE_MINIMAL
CONFIG_LOG_MINIMAL was replaced by CONFIG_LOG_MODE_MINIMAL since zephyrproject-rtos/zephyr#31404 PR was merged. CONFIG_LOG_MINIMAL is still emitted as legacy property, but can't be assigned so prj.conf was fixed. Signed-off-by: Gerard Marull-Paretas <[email protected]> Signed-off-by: Andrzej Puzdrowski <[email protected]>
1 parent d12a8da commit a513b8e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

boot/zephyr/main.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,14 @@ const struct boot_uart_funcs boot_funcs = {
5151
#include <arm_cleanup.h>
5252
#endif
5353

54+
/* CONFIG_LOG_MINIMAL is the legacy Kconfig property,
55+
* replaced by CONFIG_LOG_MODE_MINIMAL.
56+
*/
57+
#define ZEPHYR_LOG_MODE_MINIMAL (defined(CONFIG_LOG_MODE_MINIMAL) ||\
58+
defined(CONFIG_LOG_MINIMAL))
59+
5460
#if defined(CONFIG_LOG) && !defined(CONFIG_LOG_IMMEDIATE) && \
55-
!defined(CONFIG_LOG_MINIMAL)
61+
!ZEPHYR_LOG_MODE_MINIMAL
5662
#ifdef CONFIG_LOG_PROCESS_THREAD
5763
#warning "The log internal thread for log processing can't transfer the log"\
5864
"well for MCUBoot."
@@ -259,7 +265,7 @@ static void do_boot(struct boot_rsp *rsp)
259265
#endif
260266

261267
#if defined(CONFIG_LOG) && !defined(CONFIG_LOG_IMMEDIATE) &&\
262-
!defined(CONFIG_LOG_PROCESS_THREAD) && !defined(CONFIG_LOG_MINIMAL)
268+
!defined(CONFIG_LOG_PROCESS_THREAD) && !ZEPHYR_LOG_MODE_MINIMAL
263269
/* The log internal thread for log processing can't transfer log well as has too
264270
* low priority.
265271
* Dedicated thread for log processing below uses highest application

boot/zephyr/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ CONFIG_FLASH=y
3131
# CONFIG_I2C is not set
3232

3333
CONFIG_LOG=y
34-
CONFIG_LOG_MINIMAL=y
34+
CONFIG_LOG_MODE_MINIMAL=y # former CONFIG_MODE_MINIMAL
3535
### Ensure Zephyr logging changes don't use more resources
3636
CONFIG_LOG_DEFAULT_LEVEL=0
3737
### Decrease footprint by ~4 KB in comparison to CBPRINTF_COMPLETE=y

0 commit comments

Comments
 (0)