summaryrefslogtreecommitdiff
path: root/drivers/dfu/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dfu/Kconfig')
-rw-r--r--drivers/dfu/Kconfig14
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/dfu/Kconfig b/drivers/dfu/Kconfig
index fa27efbb405..51ab484c2a4 100644
--- a/drivers/dfu/Kconfig
+++ b/drivers/dfu/Kconfig
@@ -1,12 +1,22 @@
menu "DFU support"
-config USB_FUNCTION_DFU
+config DFU
+ bool
+ imply DFU_OVER_USB if USB_GADGET
+
+config DFU_OVER_USB
bool
select HASH
+ depends on USB_GADGET
+
+config DFU_OVER_TFTP
+ bool
+ depends on NET
-if CMD_DFU
+if DFU
config DFU_TFTP
bool "DFU via TFTP"
+ select DFU_OVER_TFTP
help
This option allows performing update of DFU-managed medium with data
sent via TFTP boot.