usb: fastboot: drop CONFIG_COMMAND_SUPPORT dependency
fastboot can run without command support. In this case we cannot execute oem commands. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
8228f9e1fd
commit
b1374a6d97
|
@ -44,7 +44,6 @@ config USB_GADGET_SERIAL
|
|||
config USB_GADGET_FASTBOOT
|
||||
bool
|
||||
select BANNER
|
||||
depends on COMMAND_SUPPORT
|
||||
prompt "Android Fastboot support"
|
||||
|
||||
endif
|
||||
|
|
|
@ -872,6 +872,11 @@ static void cb_oem_exec(struct usb_ep *ep, struct usb_request *req, const char *
|
|||
struct f_fastboot *f_fb = req->context;
|
||||
int ret;
|
||||
|
||||
if (!IS_ENABLED(CONFIG_COMMAND)) {
|
||||
fastboot_tx_print(f_fb, "FAILno command support available");
|
||||
return;
|
||||
}
|
||||
|
||||
ret = run_command(cmd);
|
||||
if (ret < 0)
|
||||
fastboot_tx_print(f_fb, "FAIL%s", strerror(-ret));
|
||||
|
|
Loading…
Reference in New Issue