From: Matthias Brugger Date: Tue, 16 Apr 2019 12:43:13 +0200 Subject: [U-Boot] [PATCH v2 1/2] Fix compilation error if CONFIG_USB is disabled In-Reply-To: <20190411052351.1901-3-akaher@vmware.com> References: <20190411052351.1901-1-akaher@vmware.com> <20190411052351.1901-3-akaher@vmware.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Reviewed-by: Matthias Brugger > --- > 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. > >