diff --git a/boot/zephyr/Kconfig b/boot/zephyr/Kconfig index 13f5fc48..4fdd48f0 100644 --- a/boot/zephyr/Kconfig +++ b/boot/zephyr/Kconfig @@ -170,22 +170,9 @@ config ZEPHYR_TRY_MASS_ERASE This is not available for all targets. -config BOOT_HAVE_LOGGING - bool "MCUboot have logging enabled" - default y - select LOG - select LOG_IMMEDIATE - help - If y, enables logging on the serial port. The log level can - be defined by setting `CONFIG_MCUBOOT_LOG_LEVEL_*`. - If unsure, leave at the default value. - -if BOOT_HAVE_LOGGING module = MCUBOOT -module-dep = LOG -module-str = Log level for MCUBOOT application +module-str = MCUBoot bootloader source "subsys/logging/Kconfig.template.log_config" -endif menuconfig MCUBOOT_SERIAL bool "MCUboot serial recovery" diff --git a/boot/zephyr/prj.conf b/boot/zephyr/prj.conf index e4d851c7..23c462bf 100644 --- a/boot/zephyr/prj.conf +++ b/boot/zephyr/prj.conf @@ -39,5 +39,7 @@ CONFIG_MULTITHREADING=n # CONFIG_BT_CTLR is not set # CONFIG_I2C is not set +CONFIG_LOG=y +CONFIG_LOG_IMMEDIATE=y ### Ensure Zephyr logging changes don't use more resources CONFIG_LOG_DEFAULT_LEVEL=0