0f44d33536
Clean up the screaming mess of configuration options that DFU is. It was impossible to configure DFU such that TFTP is enabled and USB is not, this patch fixes that and assures that DFU TFTP and DFU USB can be enabled separatelly and that the correct pieces of code are compiled in. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Lukasz Majewski <lukma@denx.de>
50 lines
968 B
Plaintext
50 lines
968 B
Plaintext
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 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.
|
|
|
|
Detailed description of this feature can be found at ./doc/README.dfutftp
|
|
|
|
config DFU_MMC
|
|
bool "MMC back end for DFU"
|
|
help
|
|
This option enables using DFU to read and write to MMC based storage.
|
|
|
|
config DFU_NAND
|
|
bool "NAND back end for DFU"
|
|
help
|
|
This option enables using DFU to read and write to NAND based
|
|
storage.
|
|
|
|
config DFU_RAM
|
|
bool "RAM back end for DFU"
|
|
help
|
|
This option enables using DFU to read and write RAM on the target.
|
|
|
|
config DFU_SF
|
|
bool "SPI flash back end for DFU"
|
|
help
|
|
This option enables using DFU to read and write to SPI flash based
|
|
storage.
|
|
|
|
endif
|
|
endmenu
|