[PATCH v2 1/2] cmd: Add dependency for ums command

Heinrich Schuchardt xypron.glpk at gmx.de
Wed Jun 9 00:04:21 CEST 2021


On 6/4/21 6:51 PM, Patrick Delaunay wrote:
> Add the missing dependency for the command ums:
> - CONFIG_BLK: call of blk_* functions in usb_mass_storage.c
> - CONFIG_USB_GADGET: required to select CONFIG_USB_FUNCTION_MASS_STORAGE
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>

Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

> ---
>
> Changes in v2:
> - NEW: Add dependency for ums command
>
>   cmd/Kconfig | 5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/cmd/Kconfig b/cmd/Kconfig
> index f962bb7141..a9fb4eead2 100644
> --- a/cmd/Kconfig
> +++ b/cmd/Kconfig
> @@ -1346,8 +1346,11 @@ config CMD_ROCKUSB
>   config CMD_USB_MASS_STORAGE
>   	bool "UMS usb mass storage"
>   	select USB_FUNCTION_MASS_STORAGE
> +	depends on BLK && USB_GADGET
>   	help
> -	  USB mass storage support
> +	  Enables the command "ums" and the USB mass storage support to the
> +	  export a block device: U-Boot, the USB device, acts as a simple
> +	  external hard drive plugged on the host USB port.
>
>   config CMD_PVBLOCK
>   	bool "Xen para-virtualized block device"
>



More information about the U-Boot mailing list