]> git.sur5r.net Git - u-boot/blobdiff - drivers/dfu/Kconfig
dfu: Rename _FUNCTION_DFU to DFU_OVER_
[u-boot] / drivers / dfu / Kconfig
index 56a98f5273cea7103e30dcce6f8ceef56055a575..51ab484c2a4953194b3d36e59e262ad24048eba1 100644 (file)
@@ -1,11 +1,22 @@
 menu "DFU support"
 
-config USB_FUNCTION_DFU
+config DFU
        bool
+       imply DFU_OVER_USB if USB_GADGET
 
-if CMD_DFU
+config DFU_OVER_USB
+       bool
+       select HASH
+       depends on USB_GADGET
+
+config DFU_OVER_TFTP
+       bool
+       depends on NET
+
+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.