[U-Boot] [PATCH v2 1/2] Fix compilation error if CONFIG_USB is disabled

Matthias Brugger mbrugger at suse.com
Tue Apr 16 10:43:13 UTC 2019



On 11/04/2019 07:23, akaher wrote:
> There are compilation errors, if CONFIG_CMD_USB is enabled
> and CONFIG_USB is disabled.
> 
> CONFIG_CMD_USB depends upon CONFIG_USB, so CONFIG_CMD_USB
> should not be enabled if CONFIG_USB is disabled.
> 
> Signed-off-by: Ajay Kaher <akaher at vmware.com>
> 

Reviewed-by: Matthias Brugger <mbrugger at suse.com>

> ---
>  cmd/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/cmd/Kconfig b/cmd/Kconfig
> index 4bcc5c4557..96e665a1c9 100644
> --- a/cmd/Kconfig
> +++ b/cmd/Kconfig
> @@ -1059,6 +1059,7 @@ config CMD_UNIVERSE
>  config CMD_USB
>  	bool "usb"
>  	select HAVE_BLOCK_DEVICE
> +	depends on USB
>  	help
>  	  USB support.
>  
> 


More information about the U-Boot mailing list