boot: zephyr: Add fallback to USB DFU
Allow bootloader to fallback to USB DFU if no application is present,
that can be booted from. Similar to config BOOT_SERIAL_NO_APPLICATION.
Signed-off-by: Fabian Pflug <fabian.pflug@gumulka.eu>
diff --git a/boot/zephyr/Kconfig b/boot/zephyr/Kconfig
index 64e23ac..9ec442d 100644
--- a/boot/zephyr/Kconfig
+++ b/boot/zephyr/Kconfig
@@ -573,6 +573,12 @@
endif # BOOT_USB_DFU_GPIO
+config BOOT_USB_DFU_NO_APPLICATION
+ bool "Stay in bootloader if no application"
+ help
+ Allows for entering USB DFU recovery mode if there is no bootable
+ application that the bootloader can jump to.
+
config BOOT_USE_BENCH
bool "Enable benchmark code"
default n