zephyr: add default LOG and MULTITHREADING values in kconfig
Add Log processing configuration synchronous as default
if multithreading is disabled.
Additionally Kconfig makes MULTITHREADING default
if USB is selected.
Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
diff --git a/boot/zephyr/Kconfig b/boot/zephyr/Kconfig
index dacaf3a..d8f72a3 100644
--- a/boot/zephyr/Kconfig
+++ b/boot/zephyr/Kconfig
@@ -353,9 +353,13 @@
# it to n here. Otherwise, having it on by default makes the most
# hardware work.
config MULTITHREADING
+ default y if BOOT_SERIAL_CDC_ACM #usb driver requires MULTITHREADING
default n if SOC_FAMILY_NRF
default y
+config LOG_IMMEDIATE
+ default n if MULTITHREADING
+
config UPDATEABLE_IMAGE_NUMBER
int "Number of updateable images"
default 1
diff --git a/boot/zephyr/prj.conf b/boot/zephyr/prj.conf
index 808d317..e075591 100644
--- a/boot/zephyr/prj.conf
+++ b/boot/zephyr/prj.conf
@@ -45,6 +45,5 @@
# 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