]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/dfu/Kconfig
dfu: Fix up the Kconfig mess
[people/ms/u-boot.git] / drivers / dfu / Kconfig
index fa27efbb405398435797e08b7e607b5ea4d9a065..b077444059a67d7801d5e2a3338df21b72628b21 100644 (file)
@@ -1,12 +1,22 @@
 menu "DFU support"
 
+config DFU
+       bool
+       imply USB_FUNCTION_DFU if USB_GADGET
+
 config USB_FUNCTION_DFU
        bool
        select HASH
+       depends on USB_GADGET
+
+config TFTP_FUNCTION_DFU
+       bool
+       depends on NET
 
-if CMD_DFU
+if DFU
 config DFU_TFTP
        bool "DFU via TFTP"
+       select TFTP_FUNCTION_DFU
        help
          This option allows performing update of DFU-managed medium with data
          sent via TFTP boot.