Skip to content

Commit 15aa6ef

Browse files
mnkputzig
authored andcommitted
zephyr: remove BOOT_HAVE_LOGGING Kconfig option
This commit removes the non-standard BOOT_HAVE_LOGGING Kconfig option. Instead the standard LOG / MCUBOOT_LOG_LEVEL can be used to control logging. Signed-off-by: Piotr Mienkowski <[email protected]>
1 parent 520c727 commit 15aa6ef

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

boot/zephyr/Kconfig

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -170,22 +170,9 @@ config ZEPHYR_TRY_MASS_ERASE
170170

171171
This is not available for all targets.
172172

173-
config BOOT_HAVE_LOGGING
174-
bool "MCUboot have logging enabled"
175-
default y
176-
select LOG
177-
select LOG_IMMEDIATE
178-
help
179-
If y, enables logging on the serial port. The log level can
180-
be defined by setting `CONFIG_MCUBOOT_LOG_LEVEL_*`.
181-
If unsure, leave at the default value.
182-
183-
if BOOT_HAVE_LOGGING
184173
module = MCUBOOT
185-
module-dep = LOG
186-
module-str = Log level for MCUBOOT application
174+
module-str = MCUBoot bootloader
187175
source "subsys/logging/Kconfig.template.log_config"
188-
endif
189176

190177
menuconfig MCUBOOT_SERIAL
191178
bool "MCUboot serial recovery"

boot/zephyr/prj.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,7 @@ CONFIG_MULTITHREADING=n
3939
# CONFIG_BT_CTLR is not set
4040
# CONFIG_I2C is not set
4141

42+
CONFIG_LOG=y
43+
CONFIG_LOG_IMMEDIATE=y
4244
### Ensure Zephyr logging changes don't use more resources
4345
CONFIG_LOG_DEFAULT_LEVEL=0

0 commit comments

Comments
 (0)